Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
FROM ubuntu:20.04
LABEL ETSI CTI
LABEL description="STF Docker Ubuntu image"
ENV TERM=linux \
HOSTNAME=docker-STF
RUN echo "docker-STF-dev" > /etc/hostname \
&& DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
autoconf \
bison \
build-essential \
cmake \
curl \
dos2unix \
doxygen \
emacs \
expect \
flex \
g++-9 \
gcc-9 \
git \
gnutls-bin \
graphviz \
iputils-ping \
libedit2 \
libedit-dev \
libffi-dev \
libglib2.0-dev \
libgcrypt-dev \
libjsoncpp-dev \
libncurses5-dev \
libpcap-dev \
libssl-dev \
libtool-bin \
libtool \
libxml2-dev \
libxml2-utils \
libyaml-dev \
lsof \
ntp \
openssh-server \
pkg-config \
python3-dev \
python3-pip \
python3-setuptools \
sudo \
sshpass \
tcpdump \
texlive-font-utils \
texlive-latex-extra \
tzdata \
valgrind \
xutils-dev \
xsltproc \
&& DEBIAN_FRONTEND=noninteractive apt-get autoremove --purge -y \
&& DEBIAN_FRONTEND=noninteractive apt-get autoclean \
&& pip3 install --upgrade setuptools pip \
&& useradd --create-home --shell /bin/bash etsi \
&& echo "etsi:etsi" | chpasswd \
&& adduser etsi sudo \
&& echo "" >> /etc/profile \
&& echo 'export HOME=/home/etsi' >> /etc/profile \
&& echo 'export LD_LIBRARY_PATH=${HOME}/lib:$LD_LIBRARY_PATH' >> /etc/profile \
&& echo 'export PATH=${HOME}/bin:$PATH' >> /etc/profile \
&& echo 'cd ${HOME}' >> /etc/profile \
&& echo ". ./devenv.bash" >> /etc/profile \
&& cd /home/etsi \
&& echo "" >> ./.profile \
&& echo 'export HOME=/home/etsi' >> ./.profile \
&& echo 'export LD_LIBRARY_PATH=${HOME}/lib:$LD_LIBRARY_PATH' >> ./.profile \
&& echo 'export PATH=${HOME}/bin:$PATH' >> ./.profile \
&& echo 'cd ${HOME}' >> ./.profile \
&& echo ". ./devenv.bash" >> ./.profile \
&& mkdir -p bin lib include tmp frameworks docs man dev \
&& chown -R etsi:etsi *
EXPOSE 22
CMD ["/bin/bash"]
# That's all Floks