osmo-ggsn-master: Introduce 'branch' build-time-argumetn to Dockerfile

We can build non-master branches thsi way.
This commit is contained in:
Harald Welte 2017-10-14 14:25:26 +00:00
parent 6202d089c3
commit a899ae3688
1 changed files with 3 additions and 2 deletions

View File

@ -17,9 +17,10 @@ RUN apt-get update && \
WORKDIR /tmp
RUN git clone git://git.osmocom.org/osmo-ggsn.git
ADD http://git.osmocom.org/osmo-ggsn/patch /tmp/commit
ARG branch=master
ADD http://git.osmocom.org/osmo-ggsn/patch/?h=$branch /tmp/commit
RUN cd osmo-ggsn && \
git fetch && git checkout -f -B master origin/master && \
git fetch && git checkout -f -B master origin/$branch && \
autoreconf -fi && \
./configure && \
make -j8 install && \