aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-nitb-master/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'osmo-nitb-master/Dockerfile')
-rw-r--r--osmo-nitb-master/Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/osmo-nitb-master/Dockerfile b/osmo-nitb-master/Dockerfile
index bed228e..d3774da 100644
--- a/osmo-nitb-master/Dockerfile
+++ b/osmo-nitb-master/Dockerfile
@@ -25,11 +25,14 @@ RUN apt-get update && \
WORKDIR /tmp
+ARG OSMO_NITB_BRANCH="master"
+
RUN git clone git://git.osmocom.org/openbsc.git
-ADD http://git.osmocom.org/openbsc/patch /tmp/commit-openbsc
+ADD http://git.osmocom.org/openbsc/patch?h=$OSMO_NITB_BRANCH /tmp/commit-openbsc
RUN cd openbsc/openbsc && \
- git fetch && git checkout -f -B master origin/master && \
+ git fetch && git checkout -f -B $OSMO_NITB_BRANCH $OSMO_NITB_BRANCH && \
+ git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \
autoreconf -fi && \
./configure --enable-nat --enable-osmo-bsc --enable-smpp && \
make -j8 install && \