osmith has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/13110 )

Change subject: make/Makefile: allow overriding OSMO_TTCN3_BRANCH
......................................................................

make/Makefile: allow overriding OSMO_TTCN3_BRANCH

Set the OSMO_TTCN3_BRANCH build argument from ttcn3-*/Dockerfile from
the environment variable of the same name, so it can be changed when
building the images with 'make' or './jenkins.sh'.

Dockerfiles that do not have a OSMO_TCCN3_BRANCH build arg produce a
warning. But this is also the case with Dockerfiles that don't have an
USER build arg, and avoiding the warning would only be possible with a
much more complex patch.

Change-Id: If2c312ff9206d1613fc19f41bd088c9aad523684
---
M README.md
M make/Makefile
2 files changed, 6 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  osmith: Verified



diff --git a/README.md b/README.md
index adb6420..4977256 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,9 @@
 * `IMAGE_SUFFIX`: the version of the Osmocom stack to run the testsuite
   against. Default is `master`, set this to `latest` to test the last
   stable releases.
+* `OSMO_TTCN3_BRANCH`: 
[osmo-ttcn3-hacks.git](https://git.osmocom.org/osmo-ttcn3-hacks/)
+  branch, which will be used when building a `ttcn3-*` docker image.
+  Defaults to `master`.
 * `NO_DOCKER_IMAGE_BUILD`: when set to `1`, it won't try to update the
   containers (see "caching" below)

diff --git a/make/Makefile b/make/Makefile
index 5bbdbb7..2321fcf 100644
--- a/make/Makefile
+++ b/make/Makefile
@@ -16,6 +16,7 @@
 REGISTRY_HOST?=docker.io
 USERNAME?=$(USER)
 NAME?=$(shell basename $(CURDIR))
+OSMO_TTCN3_BRANCH?=master

 RELEASE_SUPPORT := $(shell dirname $(abspath $(lastword 
$(MAKEFILE_LIST))))/.make-release-support
 IMAGE?=$(REGISTRY_HOST)/$(USER)/$(NAME)
@@ -39,7 +40,8 @@


 docker-build: .release
-       docker build --build-arg USER=$(USERNAME) -t $(IMAGE):latest .
+       docker build --build-arg USER=$(USERNAME) --build-arg 
OSMO_TTCN3_BRANCH=$(OSMO_TTCN3_BRANCH) \
+               -t $(IMAGE):latest .
        @DOCKER_MAJOR=$(shell docker -v | sed -e 's/.*version //' -e 's/,.*//' 
| cut -d\. -f1) ; \
        DOCKER_MINOR=$(shell docker -v | sed -e 's/.*version //' -e 's/,.*//' | 
cut -d\. -f2) ; \


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

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If2c312ff9206d1613fc19f41bd088c9aad523684
Gerrit-Change-Number: 13110
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Daniel Willmann <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Max <[email protected]>
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>

Reply via email to