aboutsummaryrefslogtreecommitdiffstats
path: root/ttcn3-bts-test/Dockerfile
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-01 14:05:15 +0000
committerHarald Welte <laforge@gnumonks.org>2018-03-01 15:19:49 +0000
commitc0da6a0e7a2cdb87045bf79fb1f55bdfcfaa40fb (patch)
tree215c47d43f55ffc74fa7ed03e4c56be0dd987307 /ttcn3-bts-test/Dockerfile
parente707891fa87bb193b308758462da2d05cfb9d8a1 (diff)
Add osmo-bts-test + dependencies
Diffstat (limited to 'ttcn3-bts-test/Dockerfile')
-rw-r--r--ttcn3-bts-test/Dockerfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/ttcn3-bts-test/Dockerfile b/ttcn3-bts-test/Dockerfile
new file mode 100644
index 0000000..8ce3656
--- /dev/null
+++ b/ttcn3-bts-test/Dockerfile
@@ -0,0 +1,31 @@
+FROM laforge/debian-stretch-titan
+
+RUN mkdir /root/projects && (cd /root/projects && ln -sf / git)
+RUN git clone git://git.osmocom.org/osmo-ttcn3-hacks.git
+
+RUN cd osmo-ttcn3-hacks && \
+ git checkout -f -B master origin/master && \
+ make deps
+
+RUN git config --global user.email docker@dock.er && \
+ git config --global user.name "Dock Er"
+
+ARG OSMO_TTCN3_BRANCH="master"
+
+ADD http://git.osmocom.org/osmo-ttcn3-hacks/patch?h=$OSMO_TTCN3_BRANCH /tmp/commit
+RUN cd osmo-ttcn3-hacks && \
+ git fetch && \
+ git checkout -f -B $OSMO_TTCN3_BRANCH origin/$OSMO_TTCN3_BRANCH && \
+ make deps-update bts
+ #git cherry-pick 5ce5241d6d460e9b36a908ac7072d8ea68df08db && \
+
+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 && \
+ /osmo-ttcn3-hacks/start-testsuite.sh /osmo-ttcn3-hacks/bts/BTS_Tests && \
+ ttcn3_logmerge BTS*.log