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: Ide8248cb508be27f2cff620d79df7eb50f309af1changes/65/9265/1
parent
2a1a78d011
commit
db3fa19238
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue