aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2019-04-25 13:56:14 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2019-04-25 13:56:14 +0200
commitb59a9ed8d4d00eab4193caa46a1f24d280478b96 (patch)
treedbf43cb07bac0ce5cbaf9cb5985974e91252d3c2 /make
parenta7deb5d7a851fe0342e4377604b338a5e86ee1c8 (diff)
Add OSMO_*_BRANCH environment variables for build args
Previously we could only set OSMO_TTCN3_BRANCH as environment variable to build a test other than master. This patch adds environment variables for all osmo-*-master images which allow docker tests to be executed for an arbitrary commit. The origin/ prefix from the git checkout command is removed so the *_BRANCH variable doesn't have to contain branch names, but van also contain arbitrary commits. This shouldn't have any adverse effect as we only have one remote in the checkout. Change-Id: If3bc5fae07cf63c4fef68306be4c4328660bc869
Diffstat (limited to 'make')
-rw-r--r--make/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/make/Makefile b/make/Makefile
index 7dfa795..000db25 100644
--- a/make/Makefile
+++ b/make/Makefile
@@ -17,6 +17,18 @@ REGISTRY_HOST?=docker.io
USERNAME?=$(USER)
NAME?=$(shell basename $(CURDIR))
OSMO_TTCN3_BRANCH?=master
+OSMO_BSC_BRANCH?=master
+OSMO_BTS_BRANCH?=master
+OSMO_GGSN_BRANCH?=master
+OSMO_HLR_BRANCH?=master
+OSMO_IUH_BRANCH?=master
+OSMO_MGW_BRANCH?=master
+OSMO_MSC_BRANCH?=master
+OSMO_NITB_BRANCH?=master
+OSMO_PCU_BRANCH?=master
+OSMO_SGSN_BRANCH?=master
+OSMO_SIP_BRANCH?=master
+OSMO_STP_BRANCH?=master
PULL?=
RELEASE_SUPPORT := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))/.make-release-support
@@ -42,6 +54,18 @@ post-push:
docker-build: .release
docker build --build-arg USER=$(USERNAME) --build-arg OSMO_TTCN3_BRANCH=$(OSMO_TTCN3_BRANCH) \
+ --build-arg OSMO_BSC_BRANCH=$(OSMO_BSC_BRANCH) \
+ --build-arg OSMO_BTS_BRANCH=$(OSMO_BTS_BRANCH) \
+ --build-arg OSMO_GGSN_BRANCH=$(OSMO_GGSN_BRANCH) \
+ --build-arg OSMO_HLR_BRANCH=$(OSMO_HLR_BRANCH) \
+ --build-arg OSMO_IUH_BRANCH=$(OSMO_IUH_BRANCH) \
+ --build-arg OSMO_MGW_BRANCH=$(OSMO_MGW_BRANCH) \
+ --build-arg OSMO_MSC_BRANCH=$(OSMO_MSC_BRANCH) \
+ --build-arg OSMO_NITB_BRANCH=$(OSMO_NITB_BRANCH) \
+ --build-arg OSMO_PCU_BRANCH=$(OSMO_PCU_BRANCH) \
+ --build-arg OSMO_SGSN_BRANCH=$(OSMO_SGSN_BRANCH) \
+ --build-arg OSMO_SIP_BRANCH=$(OSMO_SIP_BRANCH) \
+ --build-arg OSMO_STP_BRANCH=$(OSMO_STP_BRANCH) \
$(PULL) -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) ; \