aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-02-10 16:16:57 +0100
committerOliver Smith <osmith@sysmocom.de>2021-02-11 15:45:40 +0100
commit914a486ef1c5a5b16f6f0f3bce2c327ea54fcac2 (patch)
treee818fe04ce8aca6c45ee10fd9f979e44f6f575a4
parent9206cf6b280af554ffabba2244fb733c44a0a874 (diff)
debian-stretch-titan: prepare: start/stop links
Create symlinks to ttcn3-*-start.sh and ttcn3-*-stop.sh in the prepare.sh script instead of in each of the ttcn3 Dockerfiles. Related: OS#5017 Change-Id: I634cf71cff7936efe6e0461d21dc1119de922ada
-rwxr-xr-xdebian-stretch-titan/ttcn3-docker-prepare.sh5
-rw-r--r--ttcn3-bsc-test/Dockerfile3
-rw-r--r--ttcn3-bscnat-test/Dockerfile3
-rw-r--r--ttcn3-bts-test/Dockerfile3
-rw-r--r--ttcn3-fr-test/Dockerfile3
-rw-r--r--ttcn3-gbproxy-test/Dockerfile3
-rw-r--r--ttcn3-ggsn-test/Dockerfile3
-rw-r--r--ttcn3-hlr-test/Dockerfile3
-rw-r--r--ttcn3-mgw-test/Dockerfile3
-rw-r--r--ttcn3-msc-test/Dockerfile3
-rw-r--r--ttcn3-pcu-test/Dockerfile3
-rw-r--r--ttcn3-remsim-test/Dockerfile3
-rw-r--r--ttcn3-sccp-test/Dockerfile3
-rw-r--r--ttcn3-sgsn-test/Dockerfile3
-rw-r--r--ttcn3-sip-test/Dockerfile3
-rw-r--r--ttcn3-smlc-test/Dockerfile3
-rw-r--r--ttcn3-stp-test/Dockerfile3
17 files changed, 5 insertions, 48 deletions
diff --git a/debian-stretch-titan/ttcn3-docker-prepare.sh b/debian-stretch-titan/ttcn3-docker-prepare.sh
index 2b3cbd7..a5cbc91 100755
--- a/debian-stretch-titan/ttcn3-docker-prepare.sh
+++ b/debian-stretch-titan/ttcn3-docker-prepare.sh
@@ -32,4 +32,9 @@ if ! diff -q /tmp/deps-Makefile deps/Makefile; then
make deps
fi
+# Link start/stop scripts to /
+for i in ttcn3-*-start.sh ttcn3-*-stop.sh; do
+ ln -sv "/osmo-ttcn3-hacks/$i" "/$i"
+done
+
make "$PROJECT"
diff --git a/ttcn3-bsc-test/Dockerfile b/ttcn3-bsc-test/Dockerfile
index 80d3384..c56f3a5 100644
--- a/ttcn3-bsc-test/Dockerfile
+++ b/ttcn3-bsc-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" bsc
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY BSC_Tests.cfg /data/BSC_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-bscnat-test/Dockerfile b/ttcn3-bscnat-test/Dockerfile
index 61f699d..405c0a6 100644
--- a/ttcn3-bscnat-test/Dockerfile
+++ b/ttcn3-bscnat-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" bsc-nat
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY BSCNAT_Tests.cfg /data/BSCNAT_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-bts-test/Dockerfile b/ttcn3-bts-test/Dockerfile
index 685d99b..4aa3825 100644
--- a/ttcn3-bts-test/Dockerfile
+++ b/ttcn3-bts-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" bts
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY BTS_Tests.cfg /data/BTS_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-fr-test/Dockerfile b/ttcn3-fr-test/Dockerfile
index dcee72d..1f0e6e1 100644
--- a/ttcn3-fr-test/Dockerfile
+++ b/ttcn3-fr-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" fr fr-net
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-dumpcap-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-dumpcap-stop.sh /
-
COPY FR_Tests.cfg /data/FR_Tests.cfg
COPY FRNET_Tests.cfg /data/FRNET_Tests.cfg
COPY pipework /usr/bin/pipework
diff --git a/ttcn3-gbproxy-test/Dockerfile b/ttcn3-gbproxy-test/Dockerfile
index c0a8841..661ca07 100644
--- a/ttcn3-gbproxy-test/Dockerfile
+++ b/ttcn3-gbproxy-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" gbproxy
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-dumpcap-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-dumpcap-stop.sh /
-
COPY GBProxy_Tests.cfg /data/GBProxy_Tests.cfg
COPY pipework /usr/bin/pipework
COPY docker-entrypoint.sh /docker-entrypoint.sh
diff --git a/ttcn3-ggsn-test/Dockerfile b/ttcn3-ggsn-test/Dockerfile
index 10683b6..e38e9d5 100644
--- a/ttcn3-ggsn-test/Dockerfile
+++ b/ttcn3-ggsn-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" ggsn_tests
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY GGSN_Tests.cfg /data/GGSN_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-hlr-test/Dockerfile b/ttcn3-hlr-test/Dockerfile
index 3d12234..b180567 100644
--- a/ttcn3-hlr-test/Dockerfile
+++ b/ttcn3-hlr-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" hlr
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY HLR_Tests.cfg /data/HLR_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-mgw-test/Dockerfile b/ttcn3-mgw-test/Dockerfile
index 860a06a..b05fa21 100644
--- a/ttcn3-mgw-test/Dockerfile
+++ b/ttcn3-mgw-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" mgw
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY MGCP_Test.cfg /data/MGCP_Test.cfg
CMD cd /data && \
diff --git a/ttcn3-msc-test/Dockerfile b/ttcn3-msc-test/Dockerfile
index 93b3e0a..06c07ca 100644
--- a/ttcn3-msc-test/Dockerfile
+++ b/ttcn3-msc-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" msc
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY MSC_Tests.cfg /data/MSC_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-pcu-test/Dockerfile b/ttcn3-pcu-test/Dockerfile
index 6b2072c..2c7d52f 100644
--- a/ttcn3-pcu-test/Dockerfile
+++ b/ttcn3-pcu-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" pcu
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY PCU_Tests.cfg /data/PCU_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-remsim-test/Dockerfile b/ttcn3-remsim-test/Dockerfile
index b526206..c826d7c 100644
--- a/ttcn3-remsim-test/Dockerfile
+++ b/ttcn3-remsim-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" remsim
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY REMSIM_Tests.cfg /data/REMSIM_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-sccp-test/Dockerfile b/ttcn3-sccp-test/Dockerfile
index b047ba7..3fc4ca3 100644
--- a/ttcn3-sccp-test/Dockerfile
+++ b/ttcn3-sccp-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" sccp
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY SCCP_Tests.cfg /data/SCCP_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-sgsn-test/Dockerfile b/ttcn3-sgsn-test/Dockerfile
index 01bbce1..2cc9778 100644
--- a/ttcn3-sgsn-test/Dockerfile
+++ b/ttcn3-sgsn-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" sgsn
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY SGSN_Tests.cfg /data/SGSN_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-sip-test/Dockerfile b/ttcn3-sip-test/Dockerfile
index 3e7b8f0..4d138ce 100644
--- a/ttcn3-sip-test/Dockerfile
+++ b/ttcn3-sip-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" sip
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY SIP_Tests.cfg /data/SIP_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-smlc-test/Dockerfile b/ttcn3-smlc-test/Dockerfile
index 0205547..d2a081f 100644
--- a/ttcn3-smlc-test/Dockerfile
+++ b/ttcn3-smlc-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" smlc
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY SMLC_Tests.cfg /data/SMLC_Tests.cfg
CMD cd /data && \
diff --git a/ttcn3-stp-test/Dockerfile b/ttcn3-stp-test/Dockerfile
index 183c545..0ae2c5e 100644
--- a/ttcn3-stp-test/Dockerfile
+++ b/ttcn3-stp-test/Dockerfile
@@ -7,9 +7,6 @@ RUN ttcn3-docker-prepare "$OSMO_TTCN3_BRANCH" stp
VOLUME /data
-RUN ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-start.sh / && \
- ln -s /osmo-ttcn3-hacks/ttcn3-tcpdump-stop.sh /
-
COPY STP_Tests.cfg /data/STP_Tests.cfg
CMD cd /data && \