FROM ubuntu:18.04 MAINTAINER ETSI STF 525 LABEL description="STF525 Docker Image" ENV TERM=linux ENV HOSTNAME docker-titan-STF525 ARG ssh_pub_key RUN echo "docker-titan-STF525" > /etc/hostname \ && DEBIAN_FRONTEND=noninteractive apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y \ && DEBIAN_FRONTEND=noninteractive apt-get install software-properties-common -y \ && DEBIAN_FRONTEND=noninteractive add-apt-repository ppa:linuxuprising/java -y \ && DEBIAN_FRONTEND=noninteractive apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get --allow-unauthenticated install -y \ autoconf \ bison \ build-essential \ cmake \ curl \ dos2unix \ doxygen \ emacs \ expect \ flex \ g++-8 \ gcc-8 \ gdb \ git-core \ gnutls-bin \ graphviz \ 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 \ tzdata \ valgrind \ vim \ vsftpd \ xutils-dev \ tree \ unzip \ wget \ xsltproc \ && 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 \ && cd /home/etsi \ && echo "" >> /home/etsi/.bashrc \ && echo "export HOME=/home/etsi" >> /home/etsi/.bashrc \ && echo "export LD_LIBRARY_PATH=/home/etsi/dev/etsi_its/lib:$LD_LIBRARY_PATH" >> /home/etsi/.bashrc \ && echo "export PATH=/home/etsi/bin:$PATH" >> /home/etsi/.bashrc \ && echo "cd /home/etsi" >> /home/etsi/.bashrc \ && echo ". ./devenv.bash" >> /home/etsi/.bashrc \ && . /home/etsi/.bashrc \ && mkdir -p .ssh bin lib include tmp frameworks docs man dev \ && chown etsi:etsi .ssh bin lib include tmp frameworks docs man dev USER etsi ADD id_rsa* /home/etsi/.ssh/ RUN cd /home/etsi/dev \ && svn co --username svnusers --password svnusers --non-interactive --trust-server-cert https://oldforge.etsi.org/svn/ITS/branches/STF525 ./STF525_Its \ && cd /home/etsi/dev/STF525_Its/scripts \ && chmod 775 *.bash devenv.bash.* \ && cd /home/etsi \ && ln -sf /home/etsi/dev/STF525_Its/scripts/devenv.bash.ubuntu /home/etsi/devenv.bash \ && ls -ltr /home/etsi \ && export HOME=/home/etsi \ && cd /home/etsi/frameworks \ && git clone https://github.com/vlm/asn1c.git asn1c \ && cd asn1c \ && test -f configure || autoreconf -iv \ && ./configure \ && make && sudo make install \ && 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 \ && . /home/etsi/devenv.bash \ && cd /home/etsi/dev/STF525_Its/scripts \ && ./build_titan.bash \ && . /home/etsi/devenv.bash \ && ./update_its_project.bash \ && cd ${HOME}/dev/etsi_its/src/TestCodec/objs \ && ../bin/testcodec_generate_makefile.bash \ && ../bin/run_all.bash CMD ["/bin/bash"] # That's all Floks