osmo-ggsn-master: Introduce 'branch' build-time-argumetn to Dockerfile
We can build non-master branches thsi way.
This commit is contained in:
parent
6202d089c3
commit
a899ae3688
|
@ -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 && \
|
||||
|
|
Loading…
Reference in New Issue