From 354e8a896993991fcd12fdebce115a9520798dd1 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 23 May 2018 15:06:45 +0200 Subject: osmo-mgw-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: I42054d585a5774452a13750ee1c3e6bb8013b26f --- osmo-mgw-master/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'osmo-mgw-master') diff --git a/osmo-mgw-master/Dockerfile b/osmo-mgw-master/Dockerfile index 07f3822..9dc2813 100644 --- a/osmo-mgw-master/Dockerfile +++ b/osmo-mgw-master/Dockerfile @@ -22,11 +22,14 @@ RUN apt-get update && \ WORKDIR /tmp +ARG OSMO_MGW_BRANCH="master" + RUN git clone git://git.osmocom.org/osmo-mgw.git -ADD http://git.osmocom.org/osmo-mgw/patch /tmp/commit-osmo-mgw +ADD http://git.osmocom.org/osmo-mgw/patch?h=$OSMO_MGW_BRANCH /tmp/commit-osmo-mgw + RUN cd osmo-mgw && \ - git fetch && git checkout -f -B master origin/master && \ + git fetch && git checkout -f -B $OSMO_MGW_BRANCH origin/$OSMO_MGW_BRANCH && \ autoreconf -fi && \ ./configure && \ make -j8 install && \ -- cgit v1.2.3