2018-09-05 11:12:13 +00:00
|
|
|
ARG USER
|
|
|
|
FROM $USER/debian-stretch-titan
|
2018-03-01 15:09:36 +00:00
|
|
|
|
|
|
|
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 && \
|
2019-05-21 15:51:49 +00:00
|
|
|
git checkout -f -B master origin/master && \
|
2018-03-01 15:09:36 +00:00
|
|
|
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 && \
|
2019-05-22 07:08:25 +00:00
|
|
|
git checkout $OSMO_TTCN3_BRANCH && \
|
|
|
|
(git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_TTCN3_BRANCH || exit 1); \
|
2019-03-29 13:12:28 +00:00
|
|
|
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
|
2018-03-01 15:09:36 +00:00
|
|
|
make deps-update 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 && \
|
2018-07-06 12:47:28 +00:00
|
|
|
/osmo-ttcn3-hacks/start-testsuite.sh /osmo-ttcn3-hacks/hlr/HLR_Tests; \
|
|
|
|
exit_code=$?; \
|
|
|
|
/osmo-ttcn3-hacks/log_merge.sh HLR_Tests --rm; \
|
|
|
|
exit $exit_code
|