3 # Setup the environment
4 ENV DEBIAN_FRONTEND=noninteractive
7 RUN apt-get update -qq \
8 && apt-get install -y \
11 && sed -i 's/# \(en_US\.UTF-8 .*\)/\1/' /etc/locale.gen \
12 && locale-gen en_US.UTF-8 \
13 && dpkg-reconfigure --frontend=noninteractive locales \
14 && update-locale LANG=en_US.UTF-8 \
15 && TZ=Etc/UTC && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
16 && rm -r /var/lib/apt/lists/*
17 ENV LANG="en_US.UTF-8" LANGUAGE="en_US" LC_ALL="en_US.UTF-8"
19 # Install packages and Docker
20 RUN apt-get -q update \
21 && apt-get install -y -qq \
53 python3-cffi-backend \
63 software-properties-common \
75 && ln -s -f /usr/lib/x86_64-linux-gnu/libc.a /usr/lib/x86_64-linux-gnu/liblibc.a \
76 && curl -fsSL https://get.docker.com | sh \
77 && rm -rf /var/lib/apt/lists/*
80 RUN chown root:syslog /var/log \
81 && chmod 755 /etc/default
83 # Create directory structure
84 RUN mkdir -p /tmp/dumps \
85 && mkdir -p /var/cache/vpp/python \
86 && mkdir -p /var/run/sshd \
87 && mkdir -p /var/log/vpp
96 robotframework==5.0.1 \
100 ansible-core==2.12.7 \
106 hdrhistogram==0.6.1 \
111 sphinx-rtd-theme==0.5.2 \
112 sphinxcontrib-applehelp==1.0.2 \
113 sphinxcontrib-devhelp==1.0.2 \
114 sphinxcontrib-htmlhelp==2.0.0 \
115 sphinxcontrib-jsmath==1.0.1 \
116 sphinxcontrib-programoutput==0.17 \
117 sphinxcontrib-qthelp==1.0.3 \
118 sphinxcontrib-robotdoc==0.11.0 \
119 sphinxcontrib-serializinghtml==1.1.5 \
122 rfc3339-validator==0.1.4 \
131 cryptography==36.0.2 \
146 python-dateutil==2.8.2 \
152 snowballstemmer==2.2.0 \
156 RUN groupadd -g 1000 testuser \
157 && useradd -rm -d /home/testuser -s /bin/bash -g testuser -G sudo -u 1000 testuser \
158 && echo 'testuser:Csit1234' | chpasswd
160 RUN echo 'root:Csit1234' | chpasswd \
161 && sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \
162 && echo "export VISIBLE=now" >> /etc/profile
164 RUN service ssh start