X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2Fmk%2FMakefile.include;h=f31d2cae41dce1abc2f56cdd12cc155c13a5fcea;hb=f3cc90c65d3a6b88ffc9b98e9298e7553b57d149;hp=f8e34c53516ce59698f2c9b048882573d9dffd59;hpb=69b532b05f993931ce73b997de85123a7da09d35;p=osm%2Fdevops.git diff --git a/docker/mk/Makefile.include b/docker/mk/Makefile.include index f8e34c53..f31d2cae 100644 --- a/docker/mk/Makefile.include +++ b/docker/mk/Makefile.include @@ -22,10 +22,11 @@ all: build TAG ?= 6 REPOSITORY_BASE ?= http://osm-download.etsi.org/repository/osm/debian -RELEASE ?= ReleaseEIGHT-daily +RELEASE ?= ReleaseNINE-daily REPOSITORY_KEY ?= OSM%20ETSI%20Release%20Key.gpg REPOSITORY ?= testing NO_CACHE ?= --no-cache +DOCKER_REGISTRY ?= "" LOWER_MDG = $(shell echo $(MDG) | tr '[:upper:]' '[:lower:]') @@ -34,8 +35,7 @@ CONTAINER_NAME ?= $(LOWER_MDG) CMD_DOCKER_ARGS ?= -q DOCKER_ARGS = $(CMD_DOCKER_ARGS) -#DEPS := MON IM LCM RO common osmclient devops NBI policy-module Keystone N2VC lightui ngui PLA tests -DEPS := MON IM LCM RO common osmclient devops NBI policy-module Keystone N2VC ngui PLA tests +DEPS := MON IM LCM RO common osmclient devops NBI policy-module Keystone N2VC lightui ngui PLA tests DEPS_TARGETS = $(addprefix $(MKBUILD)/.dep_, $(DEPS)) @@ -47,8 +47,8 @@ $(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_lightui: -# $Q$(MKINCLUDE)/get_version.sh -r $(REPOSITORY) -R $(RELEASE) -k $(REPOSITORY_KEY) -u $(REPOSITORY_BASE) -m LW-UI -p lightui > $@ +$(MKBUILD)/.dep_lightui: + $Q$(MKINCLUDE)/get_version.sh -r $(REPOSITORY) -R $(RELEASE) -k $(REPOSITORY_KEY) -u $(REPOSITORY_BASE) -m LW-UI -p lightui > $@ $(MKBUILD)/.dep_ngui: $Q$(MKINCLUDE)/get_version.sh -r $(REPOSITORY) -R $(RELEASE) -k $(REPOSITORY_KEY) -u $(REPOSITORY_BASE) -m NG-UI -p ngui > $@ @@ -76,13 +76,14 @@ build: $(MKBUILD) $(DEPS_TARGETS) --build-arg LWUI_VERSION==$(shell cat $(MKBUILD)/.dep_lightui) \ --build-arg NGUI_VERSION==$(shell cat $(MKBUILD)/.dep_ngui) \ --build-arg TESTS_VERSION==$(shell cat $(MKBUILD)/.dep_tests) \ + --build-arg CACHE_DATE==$(shell date -uI) \ $(DOCKER_ARGS) . clean: rm -f $(MKBUILD)/.dep* tag: - docker tag opensourcemano/$(CONTAINER_NAME):$(INPUT_TAG) opensourcemano/$(LOWER_MDG):$(TAG) + docker tag opensourcemano/$(CONTAINER_NAME):$(INPUT_TAG) $(DOCKER_REGISTRY)opensourcemano/$(LOWER_MDG):$(TAG) push: tag - docker push opensourcemano/$(LOWER_MDG):$(TAG) + docker push $(DOCKER_REGISTRY)opensourcemano/$(LOWER_MDG):$(TAG)