aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-bsc-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-bsc-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-bsc-master')
-rw-r--r--osmo-bsc-master/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/osmo-bsc-master/Dockerfile b/osmo-bsc-master/Dockerfile
index 2228c39..470abcb 100644
--- a/osmo-bsc-master/Dockerfile
+++ b/osmo-bsc-master/Dockerfile
@@ -26,11 +26,13 @@ RUN apt-get update && \
WORKDIR /tmp
+ARG OSMO_BSC_BRANCH="master"
+
RUN git clone git://git.osmocom.org/osmo-bsc.git
-ADD http://git.osmocom.org/osmo-bsc/patch /tmp/commit-osmo-bsc
+ADD http://git.osmocom.org/osmo-bsc/patch?h=$OSMO_BSC_BRANCH /tmp/commit-osmo-bsc
RUN cd osmo-bsc && \
- git fetch && git checkout -f -B master origin/master && \
+ git fetch && git checkout -f -B $OSMO_BSC_BRANCH origin/$OSMO_BSC_BRANCH && \
autoreconf -fi && \
./configure --enable-trx && \
make -j8 install