aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-virtphy-master/Dockerfile
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-virtphy-master/Dockerfile
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-virtphy-master/Dockerfile')
-rw-r--r--osmo-virtphy-master/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/osmo-virtphy-master/Dockerfile b/osmo-virtphy-master/Dockerfile
index 9bac7ce..d433318 100644
--- a/osmo-virtphy-master/Dockerfile
+++ b/osmo-virtphy-master/Dockerfile
@@ -24,11 +24,13 @@ RUN apt-get update && \
WORKDIR /tmp
+ARG OSMO_BB_BRANCH="master"
+
RUN git clone git://git.osmocom.org/osmocom-bb.git
-ADD http://git.osmocom.org/osmocom-bb/patch /tmp/commit
+ADD http://git.osmocom.org/osmocom-bb/patch?h=$OSMO_BB_BRANCH /tmp/commit
RUN cd osmocom-bb/src/host/virt_phy && \
- git fetch && git checkout -f -B master origin/master && \
+ git fetch && git checkout -f -B $OSMO_BB_BRANCH origin/$OSMO_BB_BRANCH && \
autoreconf -fi && \
./configure && \
make -j8 install