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 \
52 python3-cffi-backend \
60 software-properties-common \
72 && ln -s -f /usr/lib/x86_64-linux-gnu/libc.a /usr/lib/x86_64-linux-gnu/liblibc.a \
73 && curl -fsSL https://get.docker.com | sh \
74 && rm -rf /var/lib/apt/lists/*
77 RUN chown root:syslog /var/log \
78 && chmod 755 /etc/default
80 # Create directory structure
81 RUN mkdir -p /tmp/dumps \
82 && mkdir -p /var/cache/vpp/python \
83 && mkdir -p /var/run/sshd \
84 && mkdir -p /var/log/vpp
93 robotframework==5.0.1 \
97 ansible-core==2.12.7 \
103 hdrhistogram==0.6.1 \
108 sphinx-rtd-theme==0.5.2 \
109 sphinxcontrib-applehelp==1.0.2 \
110 sphinxcontrib-devhelp==1.0.2 \
111 sphinxcontrib-htmlhelp==2.0.0 \
112 sphinxcontrib-jsmath==1.0.1 \
113 sphinxcontrib-programoutput==0.17 \
114 sphinxcontrib-qthelp==1.0.3 \
115 sphinxcontrib-robotdoc==0.11.0 \
116 sphinxcontrib-serializinghtml==1.1.5 \
119 rfc3339-validator==0.1.4 \
128 cryptography==36.0.2 \
143 python-dateutil==2.8.2 \
149 snowballstemmer==2.2.0 \
153 RUN groupadd -g 1000 testuser \
154 && useradd -rm -d /home/testuser -s /bin/bash -g testuser -G sudo -u 1000 testuser \
155 && echo 'testuser:Csit1234' | chpasswd
157 RUN echo 'root:Csit1234' | chpasswd \
158 && sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \
159 && echo "export VISIBLE=now" >> /etc/profile
161 RUN service ssh start