TAG ?= 6
REPOSITORY_BASE ?= http://osm-download.etsi.org/repository/osm/debian
-RELEASE ?= ReleaseFOUR-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:]')
CMD_DOCKER_ARGS ?= -q
DOCKER_ARGS = $(CMD_DOCKER_ARGS)
-DEPS := MON IM LCM RO common osmclient devops NBI policy-module Keystone N2VC lightui NG-UI
+DEPS := MON IM LCM RO common osmclient devops NBI policy-module Keystone N2VC lightui ngui PLA tests Prometheus
DEPS_TARGETS = $(addprefix $(MKBUILD)/.dep_, $(DEPS))
$(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 > $@
+
$(MKBUILD)/.dep_%:
$Q$(MKINCLUDE)/get_version.sh -r $(REPOSITORY) -R $(RELEASE) -k $(REPOSITORY_KEY) -u $(REPOSITORY_BASE) -m $* > $@
--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_policy-module) \
+ --build-arg PLA_VERSION==$(shell cat $(MKBUILD)/.dep_PLA) \
--build-arg DEVOPS_VERSION==$(shell cat $(MKBUILD)/.dep_devops) \
--build-arg N2VC_VERSION==$(shell cat $(MKBUILD)/.dep_N2VC) \
--build-arg LWUI_VERSION==$(shell cat $(MKBUILD)/.dep_lightui) \
- --build-arg NGUI_VERSION==$(shell cat $(MKBUILD)/.dep_NG-UI) \
+ --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)