Change in docker-playground[master]: osmo-bts-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/9265


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

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: Ide8248cb508be27f2cff620d79df7eb50f309af1
---
M osmo-bts-master/Dockerfile
1 file changed, 4 insertions(+), 2 deletions(-)



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

diff --git a/osmo-bts-master/Dockerfile b/osmo-bts-master/Dockerfile
index 9239fe2..3c2dbec 100644
--- a/osmo-bts-master/Dockerfile
+++ b/osmo-bts-master/Dockerfile
@@ -26,11 +26,13 @@
 
 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

-- 
To view, visit https://gerrit.osmocom.org/9265
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: Ide8248cb508be27f2cff620d79df7eb50f309af1
Gerrit-Change-Number: 9265
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/ae670e04/attachment.htm>


More information about the gerrit-log mailing list