aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-sip-master
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-05-23 19:58:38 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-23 20:00:24 +0200
commit0434f34c367f0ae8472639d04fc90b0d580178c4 (patch)
tree4386b6a727961ce0b97bd2545449f4eba6c01677 /osmo-sip-master
parent354e8a896993991fcd12fdebce115a9520798dd1 (diff)
osmo-*-master: add Dockerfile ARG for git repo branch to be built
This allows the user to build any non-master branches of the related repositories, which is helpful for local testing before pushing changes to git. Change-Id: I0c3349e9a60015472c96bd24fbf29aad57501a00
Diffstat (limited to 'osmo-sip-master')
-rw-r--r--osmo-sip-master/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/osmo-sip-master/Dockerfile b/osmo-sip-master/Dockerfile
index abdccf9..fad4293 100644
--- a/osmo-sip-master/Dockerfile
+++ b/osmo-sip-master/Dockerfile
@@ -30,11 +30,13 @@ RUN apt-get update && \
WORKDIR /tmp
+ARG OSMO_SIP_BRANCH="master"
+
RUN git clone git://git.osmocom.org/osmo-sip-connector.git
-ADD http://git.osmocom.org/osmo-sip-connector/patch /tmp/commit-osmo-sip-connector
+ADD http://git.osmocom.org/osmo-sip-connector/patch?h=$OSMO_SIP_BRANCH /tmp/commit-osmo-sip-connector
RUN cd osmo-sip-connector && \
- git fetch && git checkout -f -B master origin/master && \
+ git fetch && git checkout -f -B $OSMO_SIP_BRANCH origin/$OSMO_SIP_BRANCH && \
autoreconf -fi && \
./configure --enable-smpp --enable-iu && \
make -j8 install