Loading .jenkins.sh 0 → 100644 +15 −0 Original line number Original line Diff line number Diff line #!/bin/bash # Copyright ETSI 2018 # See: https://forge.etsi.org/etsi-forge-copyright-statement.txt #set -vx set -e cd "$(dirname "$0")" run_dir="$(pwd)" cd docker ./build-container.sh ./run-container.sh "${run_dir}" .project +4 −4 Original line number Original line Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <projectDescription> <name>NG112</name> <name>STF549_ng112</name> <comment></comment> <comment></comment> <projects> <projects> </projects> </projects> <buildSpec> <buildSpec> <buildCommand> <buildCommand> <name>org.eclipse.xtext.ui.shared.xtextBuilder</name> <name>org.eclipse.titan.designer.core.TITANBuilder</name> <arguments> <arguments> </arguments> </arguments> </buildCommand> </buildCommand> </buildSpec> </buildSpec> <natures> <natures> <nature>org.eclipse.sirius.nature.modelingproject</nature> <nature>org.eclipse.titan.designer.core.TITANNature</nature> <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> <nature>org.eclipse.titan.log.viewer.TitanLogProject</nature> </natures> </natures> </projectDescription> </projectDescription> docker/Dockerfile 0 → 100644 +96 −0 Original line number Original line Diff line number Diff line # Copyright ETSI 2018 # See: https://forge.etsi.org/etsi-forge-copyright-statement.txt FROM gcc:latest MAINTAINER STF549 LABEL description="STF549 Docker Image" ENV TERM=linux ENV HOSTNAME docker-titan-STF549 ARG USERNAME ARG PASSWORD RUN echo "docker-titan" > /etc/hostname \ && DEBIAN_FRONTEND=noninteractive apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y \ && DEBIAN_FRONTEND=noninteractive apt-get autoremove -y \ && DEBIAN_FRONTEND=noninteractive apt-get autoclean -y \ && DEBIAN_FRONTEND=noninteractive apt-get install -y \ autoconf \ bison \ build-essential \ cmake \ curl \ doxygen \ emacs \ expect \ flex \ graphviz \ gdb \ git-core \ gnutls-bin \ 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 -y \ && DEBIAN_FRONTEND=noninteractive apt-get autoclean -y \ && useradd --create-home --shell /bin/bash stf549 \ && echo "stf549:stf549" | chpasswd \ && adduser stf549 sudo \ && su - stf549 \ && whoami \ && cd /home/stf549 \ && mkdir -p bin lib include dev tmp frameworks docs \ && ls -ltr \ && cd /home/stf549/dev \ && git clone http://forge.etsi.org/gitlab/emergency-communications/NG112.git STF549_Ng112 \ && cd /home/stf549/dev/STF549_Ng112/ttcn \ && svn co --username $USERNAME --password $PASSWORD --non-interactive https://oldforge.etsi.org/svn/LibCommon/tags/v1.4.0/ttcn \ && svn co --username $USERNAME --password $PASSWORD --non-interactive https://oldforge.etsi.org/svn/LibSip/trunk \ && cd /home/stf549/dev/STF549_Ng112/scripts \ && chmod 775 *.bash devenv.bash.ubuntu \ && cd /home/stf549 \ && ln -sf /home/stf549/dev/STF549_Ng112/scripts/devenv.bash.ubuntu /home/stf549/devenv.bash \ && export HOME=/home/stf549 \ && . /home/stf549/devenv.bash \ && echo "" >> /home/stf549/.bashrc \ && echo ". ./devenv.bash" >> /home/stf549/.bashrc \ && echo "" >> /home/stf549/.bashrc \ && cd /home/stf549/dev/STF549_Ng112/scripts \ && ./build_titan.bash \ && cd /home/stf549 \ && . /home/stf549/devenv.bash \ && cd /home/stf549/dev/STF549_Ng112/scripts CMD ["/bin/bash"] # That's all Floks docker/build-container.sh 0 → 100644 +33 −0 Original line number Original line Diff line number Diff line #!/bin/bash # Copyright ETSI 2018 # See: https://forge.etsi.org/etsi-forge-copyright-statement.txt set -e #set -vx USERNAME=<username> PASSWORD=<password> DOCKER_FILE=./Dockerfile if [ -f ${DOCKER_FILE} ] then docker rmi -f $(docker images -q) docker build --tag stf549_ng112 --force-rm --build-arg USERNAME=${USERNAME} --build-arg PASSWORD=${PASSWORD} . if [ "$?" != "0" ] then echo "Docker build failed: $?" exit -1 fi docker image ls -a docker inspect stf549_ng112:latest if [ "$?" != "0" ] then echo "Docker inspect failed: $?" exit -1 fi else exit -2 fi # That's all Floks exit 0 docker/run-container.sh 0 → 100644 +11 −0 Original line number Original line Diff line number Diff line #!/bin/bash # Copyright ETSI 2018 # See: https://forge.etsi.org/etsi-forge-copyright-statement.txt #set -e #set -vx docker run -it --rm stf549_ng112:latest /bin/bash # That's all Floks exit 0 Loading
.jenkins.sh 0 → 100644 +15 −0 Original line number Original line Diff line number Diff line #!/bin/bash # Copyright ETSI 2018 # See: https://forge.etsi.org/etsi-forge-copyright-statement.txt #set -vx set -e cd "$(dirname "$0")" run_dir="$(pwd)" cd docker ./build-container.sh ./run-container.sh "${run_dir}"
.project +4 −4 Original line number Original line Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <projectDescription> <name>NG112</name> <name>STF549_ng112</name> <comment></comment> <comment></comment> <projects> <projects> </projects> </projects> <buildSpec> <buildSpec> <buildCommand> <buildCommand> <name>org.eclipse.xtext.ui.shared.xtextBuilder</name> <name>org.eclipse.titan.designer.core.TITANBuilder</name> <arguments> <arguments> </arguments> </arguments> </buildCommand> </buildCommand> </buildSpec> </buildSpec> <natures> <natures> <nature>org.eclipse.sirius.nature.modelingproject</nature> <nature>org.eclipse.titan.designer.core.TITANNature</nature> <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> <nature>org.eclipse.titan.log.viewer.TitanLogProject</nature> </natures> </natures> </projectDescription> </projectDescription>
docker/Dockerfile 0 → 100644 +96 −0 Original line number Original line Diff line number Diff line # Copyright ETSI 2018 # See: https://forge.etsi.org/etsi-forge-copyright-statement.txt FROM gcc:latest MAINTAINER STF549 LABEL description="STF549 Docker Image" ENV TERM=linux ENV HOSTNAME docker-titan-STF549 ARG USERNAME ARG PASSWORD RUN echo "docker-titan" > /etc/hostname \ && DEBIAN_FRONTEND=noninteractive apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y \ && DEBIAN_FRONTEND=noninteractive apt-get autoremove -y \ && DEBIAN_FRONTEND=noninteractive apt-get autoclean -y \ && DEBIAN_FRONTEND=noninteractive apt-get install -y \ autoconf \ bison \ build-essential \ cmake \ curl \ doxygen \ emacs \ expect \ flex \ graphviz \ gdb \ git-core \ gnutls-bin \ 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 -y \ && DEBIAN_FRONTEND=noninteractive apt-get autoclean -y \ && useradd --create-home --shell /bin/bash stf549 \ && echo "stf549:stf549" | chpasswd \ && adduser stf549 sudo \ && su - stf549 \ && whoami \ && cd /home/stf549 \ && mkdir -p bin lib include dev tmp frameworks docs \ && ls -ltr \ && cd /home/stf549/dev \ && git clone http://forge.etsi.org/gitlab/emergency-communications/NG112.git STF549_Ng112 \ && cd /home/stf549/dev/STF549_Ng112/ttcn \ && svn co --username $USERNAME --password $PASSWORD --non-interactive https://oldforge.etsi.org/svn/LibCommon/tags/v1.4.0/ttcn \ && svn co --username $USERNAME --password $PASSWORD --non-interactive https://oldforge.etsi.org/svn/LibSip/trunk \ && cd /home/stf549/dev/STF549_Ng112/scripts \ && chmod 775 *.bash devenv.bash.ubuntu \ && cd /home/stf549 \ && ln -sf /home/stf549/dev/STF549_Ng112/scripts/devenv.bash.ubuntu /home/stf549/devenv.bash \ && export HOME=/home/stf549 \ && . /home/stf549/devenv.bash \ && echo "" >> /home/stf549/.bashrc \ && echo ". ./devenv.bash" >> /home/stf549/.bashrc \ && echo "" >> /home/stf549/.bashrc \ && cd /home/stf549/dev/STF549_Ng112/scripts \ && ./build_titan.bash \ && cd /home/stf549 \ && . /home/stf549/devenv.bash \ && cd /home/stf549/dev/STF549_Ng112/scripts CMD ["/bin/bash"] # That's all Floks
docker/build-container.sh 0 → 100644 +33 −0 Original line number Original line Diff line number Diff line #!/bin/bash # Copyright ETSI 2018 # See: https://forge.etsi.org/etsi-forge-copyright-statement.txt set -e #set -vx USERNAME=<username> PASSWORD=<password> DOCKER_FILE=./Dockerfile if [ -f ${DOCKER_FILE} ] then docker rmi -f $(docker images -q) docker build --tag stf549_ng112 --force-rm --build-arg USERNAME=${USERNAME} --build-arg PASSWORD=${PASSWORD} . if [ "$?" != "0" ] then echo "Docker build failed: $?" exit -1 fi docker image ls -a docker inspect stf549_ng112:latest if [ "$?" != "0" ] then echo "Docker inspect failed: $?" exit -1 fi else exit -2 fi # That's all Floks exit 0
docker/run-container.sh 0 → 100644 +11 −0 Original line number Original line Diff line number Diff line #!/bin/bash # Copyright ETSI 2018 # See: https://forge.etsi.org/etsi-forge-copyright-statement.txt #set -e #set -vx docker run -it --rm stf549_ng112:latest /bin/bash # That's all Floks exit 0