Commit 94f04acd authored by Garcia's avatar Garcia
Browse files

Update Dockerfile

parent 0cf05b55
Loading
Loading
Loading
Loading
+10 −9
Original line number Diff line number Diff line
FROM ubuntu:18.04

MAINTAINER ETSI STF 525
MAINTAINER ETSI STF 549

LABEL description="STF525 Docker Image"
LABEL description="STF549 Docker Image"

ENV TERM=linux
ENV HOSTNAME docker-titan-STF525
ENV HOSTNAME docker-titan-STF549

ARG ssh_pub_key

RUN echo "docker-titan-STF525" > /etc/hostname \
RUN echo "docker-titan-STF549" > /etc/hostname \
    && echo "root:etsi" | chpasswd \
    && DEBIAN_FRONTEND=noninteractive apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y \
@@ -81,11 +81,12 @@ RUN cd /home/etsi \
    && echo "$ssh_pub_key" > /home/etsi/.ssh/id_rsa.pub \
    && cat /home/etsi/.ssh/id_rsa.pub \
    && cd /home/etsi/dev \
    && svn co --non-interactive https://oldforge.etsi.org/svn/ITS/branches/STF525 ./STF525_Its \
    && cd /home/etsi/dev/STF525_Its/scripts \
    && git clone https://forge.etsi.org/gitlab/emergency-communications/NG112 ./STF549_Ng112 \
    && git checkout TTCN_3_Developments \
    && cd /home/etsi/dev/STF549_Ng112/scripts \
    && chmod 775 *.bash devenv.bash.* \
    && cd /home/etsi \
    && ln -sf /home/etsi/dev/STF525_Its/scripts/devenv.bash.ubuntu /home/etsi/devenv.bash \
    && ln -sf /home/etsi/dev/STF549_Ng112/scripts/devenv.bash.ubuntu /home/etsi/devenv.bash \
    && ls -ltr /home/etsi \
    && export HOME=/home/etsi \
    && cd /home/etsi/frameworks \
@@ -99,10 +100,10 @@ RUN cd /home/etsi \
    && 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 \
    && cd /home/etsi/dev/STF549_Ng112/scripts \
    && ./build_titan.bash \
    && . /home/etsi/devenv.bash \
    && ./update_its_project.bash
    && ./update_emcom_project.bash

CMD ["/bin/bash"]