X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2Fmk%2FMakefile.include;h=04d2fac65f28185cb72ec52e91475c0fd348cf72;hb=c21682ce59fc2e73c65c0abee36d990c3fd4b161;hp=e1f47b3f2fad3d55d37a8d60c97011439d9d87b2;hpb=febe521e387c1db91c04d292f56f080d26427027;p=osm%2Fdevops.git diff --git a/docker/mk/Makefile.include b/docker/mk/Makefile.include index e1f47b3f..04d2fac6 100644 --- a/docker/mk/Makefile.include +++ b/docker/mk/Makefile.include @@ -14,10 +14,12 @@ NO_CACHE ?= --no-cache LOWER_MDG = $(shell echo $(MDG) | tr '[:upper:]' '[:lower:]') +CONTAINER_NAME ?= $(LOWER_MDG) + CMD_DOCKER_ARGS ?= -q DOCKER_ARGS = $(CMD_DOCKER_ARGS) -DEPS := MON IM LCM RO common osmclient devops NBI POL Keystone +DEPS := MON IM LCM RO common osmclient devops NBI policy-module Keystone DEPS_TARGETS = $(addprefix $(MKBUILD)/.dep_, $(DEPS)) @@ -26,6 +28,9 @@ Q=@ $(MKBUILD): $Qmkdir -p $(MKBUILD) +$(MKBUILD)/.dep_policy-module: + $Q$(MKINCLUDE)/get_version.sh -r $(REPOSITORY) -R $(RELEASE) -k $(REPOSITORY_KEY) -u $(REPOSITORY_BASE) -m POL -p policy-module > $@ + $(MKBUILD)/.dep_%: $Q$(MKINCLUDE)/get_version.sh -r $(REPOSITORY) -R $(RELEASE) -k $(REPOSITORY_KEY) -u $(REPOSITORY_BASE) -m $* > $@ @@ -42,7 +47,7 @@ build: $(MKBUILD) $(DEPS_TARGETS) --build-arg COMMON_VERSION==$(shell cat $(MKBUILD)/.dep_common) \ --build-arg OSMCLIENT_VERSION==$(shell cat $(MKBUILD)/.dep_osmclient) \ --build-arg NBI_VERSION==$(shell cat $(MKBUILD)/.dep_NBI) \ - --build-arg POL_VERSION==$(shell cat $(MKBUILD)/.dep_POL) \ + --build-arg POL_VERSION==$(shell cat $(MKBUILD)/.dep_policy-module) \ --build-arg DEVOPS_VERSION==$(shell cat $(MKBUILD)/.dep_devops) \ --build-arg LWUI_VERSION==$(shell date +%s) \ $(DOCKER_ARGS) . @@ -51,4 +56,7 @@ clean: rm -f $(MKBUILD)/.dep* tag: - docker tag osm/$(LOWER_MDG) osm/$(LOWER_MDG):$(TAG) + docker tag osm/$(CONTAINER_NAME):$(INPUT_TAG) opensourcemano/$(LOWER_MDG):$(TAG) + +push: tag + docker push opensourcemano/$(LOWER_MDG):$(TAG)