Dockerfile 2.96 KB
Newer Older
garciay's avatar
garciay committed
1
FROM ubuntu:18.04
garciay's avatar
garciay committed
2

garciay's avatar
garciay committed
3
MAINTAINER ETSI STF 525
garciay's avatar
garciay committed
4
5
6
7
8
9
10
11
12

LABEL description="STF525 Docker Image"

ENV TERM=linux
ENV HOSTNAME docker-titan-STF525

ARG USERNAME
ARG PASSWORD

garciay's avatar
garciay committed
13
RUN echo "docker-titan-STF525" > /etc/hostname \
garciay's avatar
garciay committed
14
15
    && DEBIAN_FRONTEND=noninteractive apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y \
garciay's avatar
garciay committed
16
    && DEBIAN_FRONTEND=noninteractive apt-get install software-properties-common -y \
garciay's avatar
garciay committed
17
18
    && DEBIAN_FRONTEND=noninteractive add-apt-repository ppa:linuxuprising/java -y \
    && DEBIAN_FRONTEND=noninteractive apt-get update \
garciay's avatar
garciay committed
19
    && DEBIAN_FRONTEND=noninteractive apt-get --allow-unauthenticated install -y \
garciay's avatar
garciay committed
20
21
22
23
24
25
26
27
28
      autoconf \
      bison \
      build-essential \
      cmake \
      curl \
      doxygen \
      emacs \
      expect \
      flex \
garciay's avatar
garciay committed
29
30
      g++-8 \
      gcc-8 \
garciay's avatar
garciay committed
31
32
33
      gdb \ 
      git-core \
      gnutls-bin \
garciay's avatar
garciay committed
34
      graphviz \
garciay's avatar
garciay committed
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
      libglib2.0-dev \
      libpcap-dev \
      libgcrypt-dev \
      libncurses5-dev \
      libssl-dev \
      libtool-bin \
      libtool \
      libwireshark-dev \
      libxml2-dev \
      lsof \
      ntp \
      pkg-config \
      qt5-default \
      qtmultimedia5-dev \
      libqt5svg5-dev \
      subversion \
      sudo \
      sshpass \
      tcpdump \
      texlive-font-utils \
      tshark \
      valgrind \
      vsftpd \
      xutils-dev \ 
      tree \
      unzip \
      wget \
    && DEBIAN_FRONTEND=noninteractive apt-get autoremove --purge -y \
    && DEBIAN_FRONTEND=noninteractive apt-get autoclean \
    && useradd --create-home --shell /bin/bash etsi \
    && echo "etsi:etsi" | chpasswd \
    && adduser etsi sudo \
garciay's avatar
garciay committed
67
68
69
70
71
72
73
74
75
76
    && echo "" >> /etc/profile \
    && echo "export HOME=/home/etsi" >> /etc/profile \
    && echo "export LD_LIBRARY_PATH=/home/etsi/TriesAndDelete/etsi_its/lib:$LD_LIBRARY_PATH" >> /etc/profile \
    && echo "export PATH=/home/etsi/bin:$PATH" >> /etc/profile \
    && echo "cd /home/etsi" >> /etc/profile \
    && echo ". ./devenv.bash" >> /etc/profile 

USER etsi

RUN cd /home/etsi \
garciay's avatar
garciay committed
77
78
79
80
    && mkdir -p bin lib include tmp frameworks docs dev \
    && cd /home/etsi/dev \
    && svn co --username $USERNAME --password $PASSWORD --non-interactive https://oldforge.etsi.org/svn/ITS/branches/STF525 ./STF525_Its \
    && cd /home/etsi/dev/STF525_Its/scripts \
garciay's avatar
garciay committed
81
    && chmod 775 *.bash devenv.bash.* \
garciay's avatar
garciay committed
82
    && cd /home/etsi \
garciay's avatar
garciay committed
83
    && ln -sf /home/etsi/dev/STF525_Its/scripts/devenv.bash.ubuntu /home/etsi/devenv.bash \
garciay's avatar
garciay committed
84
    && ls -ltr /home/etsi \
garciay's avatar
garciay committed
85
86
87
88
89
    && export HOME=/home/etsi \
    && cd /home/etsi/frameworks \
    && wget 'http://ftp.halifax.rwth-aachen.de/eclipse//technology/epp/downloads/release/oxygen/2/eclipse-cpp-oxygen-2-linux-gtk-x86_64.tar.gz' -Oeclipse-cpp-oxygen-2-linux-gtk-x86_64.tar.gz \
    && tar -zxvf ./eclipse-cpp-oxygen-2-linux-gtk-x86_64.tar.gz \
    && rm -f ./eclipse-cpp-oxygen-2-linux-gtk-x86_64.tar.gz \
garciay's avatar
garciay committed
90
91
92
93
    && . /home/etsi/devenv.bash \
    && cd /home/etsi/dev/STF525_Its/scripts \
    && ./build_titan.bash \
    && ./update_its_project.bash 
garciay's avatar
garciay committed
94
95
96
97
98


CMD ["/bin/bash"]

# That's all Floks