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 \
54 python3-cffi-backend \
65 software-properties-common \
78 && ln -s -f /usr/lib/x86_64-linux-gnu/libc.a /usr/lib/x86_64-linux-gnu/liblibc.a \
79 && curl -fsSL https://get.docker.com | sh \
80 && rm -rf /var/lib/apt/lists/*
83 RUN chown root:syslog /var/log \
84 && chmod 755 /etc/default
86 # Create directory structure
87 RUN mkdir -p /tmp/dumps \
88 && mkdir -p /var/cache/vpp/python \
89 && mkdir -p /var/run/sshd \
90 && mkdir -p /var/log/vpp
99 robotframework==5.0.1 \
103 ansible-core==2.12.7 \
109 hdrhistogram==0.6.1 \
114 sphinx-rtd-theme==0.5.2 \
115 sphinxcontrib-applehelp==1.0.2 \
116 sphinxcontrib-devhelp==1.0.2 \
117 sphinxcontrib-htmlhelp==2.0.0 \
118 sphinxcontrib-jsmath==1.0.1 \
119 sphinxcontrib-programoutput==0.17 \
120 sphinxcontrib-qthelp==1.0.3 \
121 sphinxcontrib-robotdoc==0.11.0 \
122 sphinxcontrib-serializinghtml==1.1.5 \
125 rfc3339-validator==0.1.4 \
134 cryptography==36.0.2 \
149 python-dateutil==2.8.2 \
155 snowballstemmer==2.2.0 \
159 RUN groupadd -g 1000 testuser \
160 && useradd -rm -d /home/testuser -s /bin/bash -g testuser -G sudo -u 1000 testuser \
161 && echo 'testuser:Csit1234' | chpasswd
163 RUN echo 'root:Csit1234' | chpasswd \
164 && sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \
165 && echo "export VISIBLE=now" >> /etc/profile
167 RUN service ssh start