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