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
Philipp Maier 2018-05-23 12:04:16 +02:00 committed by Harald Welte
parent 2a1a78d011
commit db3fa19238
1 changed files with 4 additions and 2 deletions

View File

@ -26,11 +26,13 @@ ADD respawn.sh /usr/local/bin/respawn.sh
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