Change in docker-playground[master]: osmo-mgw-master: add Dockerfile ARG for git repo branch to be built

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed May 23 18:00:30 UTC 2018


Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/9266


Change subject: osmo-mgw-master: add Dockerfile ARG for git repo branch to be built
......................................................................

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
---
M osmo-mgw-master/Dockerfile
1 file changed, 5 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/66/9266/1

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 @@
 
 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 && \

-- 
To view, visit https://gerrit.osmocom.org/9266
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I42054d585a5774452a13750ee1c3e6bb8013b26f
Gerrit-Change-Number: 9266
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: dexter <pmaier at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180523/61a05cc6/attachment.htm>


More information about the gerrit-log mailing list