aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-bts-master/Dockerfile
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-05-23 12:04:16 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-23 20:00:24 +0200
commitdb3fa19238054ef6f5a6b710aecb240e01828dd9 (patch)
treeb35d09558ca3c11bee5d06f960f61cffa00b1059 /osmo-bts-master/Dockerfile
parent2a1a78d011ae3a4749f1579b718d5120914a794e (diff)
osmo-bts-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: Ide8248cb508be27f2cff620d79df7eb50f309af1
Diffstat (limited to 'osmo-bts-master/Dockerfile')
-rw-r--r--osmo-bts-master/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/osmo-bts-master/Dockerfile b/osmo-bts-master/Dockerfile
index 9239fe2..3c2dbec 100644
--- a/osmo-bts-master/Dockerfile
+++ b/osmo-bts-master/Dockerfile
@@ -26,11 +26,13 @@ ADD respawn.sh /usr/local/bin/respawn.sh
WORKDIR /tmp
+ARG OSMO_BTS_BRANCH="master"
+
RUN git clone git://git.osmocom.org/osmo-bts.git
-ADD http://git.osmocom.org/osmo-bts/patch /tmp/commit-osmo-bts
+ADD http://git.osmocom.org/osmo-bts/patch?h=$OSMO_BTS_BRANCH /tmp/commit-osmo-bts
RUN cd osmo-bts && \
- git fetch && git checkout -f -B master origin/master && \
+ git fetch && git checkout -f -B $OSMO_BTS_BRANCH origin/$OSMO_BTS_BRANCH && \
autoreconf -fi && \
./configure --enable-trx && \
make -j8 install