aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-mgw-master
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-05-23 15:06:45 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-23 20:00:24 +0200
commit354e8a896993991fcd12fdebce115a9520798dd1 (patch)
tree27266f2b7730caf784146d26233141244cd0b4a5 /osmo-mgw-master
parentdb3fa19238054ef6f5a6b710aecb240e01828dd9 (diff)
osmo-mgw-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: I42054d585a5774452a13750ee1c3e6bb8013b26f
Diffstat (limited to 'osmo-mgw-master')
-rw-r--r--osmo-mgw-master/Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/osmo-mgw-master/Dockerfile b/osmo-mgw-master/Dockerfile
index 07f3822..9dc2813 100644
--- a/osmo-mgw-master/Dockerfile
+++ b/osmo-mgw-master/Dockerfile
@@ -22,11 +22,14 @@ RUN apt-get update && \
WORKDIR /tmp
+ARG OSMO_MGW_BRANCH="master"
+
RUN git clone git://git.osmocom.org/osmo-mgw.git
-ADD http://git.osmocom.org/osmo-mgw/patch /tmp/commit-osmo-mgw
+ADD http://git.osmocom.org/osmo-mgw/patch?h=$OSMO_MGW_BRANCH /tmp/commit-osmo-mgw
+
RUN cd osmo-mgw && \
- git fetch && git checkout -f -B master origin/master && \
+ git fetch && git checkout -f -B $OSMO_MGW_BRANCH origin/$OSMO_MGW_BRANCH && \
autoreconf -fi && \
./configure && \
make -j8 install && \