Commit dd51a76a authored by Yann Garcia's avatar Yann Garcia
Browse files

Reorganize ETSI-CTI TITAN docker

parent 53a2bfbb
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
# Copyright ETSI 2018
# See: https://forge.etsi.org/etsi-forge-copyright-statement.txt

FROM gcc:latest
FROM stfubuntu:18.04

MAINTAINER ETSI-CTI

@@ -13,12 +13,12 @@ ENV TERM=linux \

USER etsi

COPY home /home/etsi
ADD ./home/etc /home/etsi/etc

RUN cd ${HOME} \
    && export PATH=${HOME}/bin:${PATH} \
    && export LD_LIBRARY_PATH=${HOME}/lib:${LD_LIBRARY_PATH} \
    && ls ${HOME}/etc/init.d/*.sh | while read S; do chmod 0750 "$S"; /bin/bash -c "$S" || exit 1; done
    && find ${HOME}/etc/init.d -type f -name "*.sh" | while read S; do chmod 0750 "$S"; /bin/bash -c "$S" || exit 1; done

CMD ["/bin/bash"]

+2 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ RUN echo "docker-STF-dev" > /etc/hostname \
    && 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 \
    && ( echo "oracle-java11-installer shared/accepted-oracle-license-v1-2 select true" | debconf-set-selections -v ) \
    && DEBIAN_FRONTEND=noninteractive apt-get --allow-unauthenticated install -y \
      autoconf \
      bison \
@@ -44,6 +45,7 @@ RUN echo "docker-STF-dev" > /etc/hostname \
      lsof \
      net-tools \
      ntp \
      oracle-java11-installer \
      oracle-java11-set-default \
      pkg-config \
      qt5-default \

from-sources/run.sh

0 → 100755
+11 −0
Original line number Diff line number Diff line
#!/bin/bash
# Copyright ETSI 2019
# See: https://forge.etsi.org/etsi-forge-copyright-statement.txt

set -e
set -vx

docker run -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --cap-add=NET_RAW --cap-add=NET_ADMIN --rm stftitan:latest /bin/bash -c "cd /home/etsi"

# That's all Floks
exit 0