summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
e9852ac)
JIRA: VAL-11
The docker registry has been created by LF at akraino/validation,
thereore I updated the scripts to reflect this.
Also added a make target to push the images to the repo.
Change-Id: Ie608a8738b2b29d138e92a46e0b8899372736f3f
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
.PHONY: build-all
build-all: $(SUBDIRS_BUILD)
.PHONY: build-all
build-all: $(SUBDIRS_BUILD)
+.PHONY: push-all
+push-all: $(SUBDIRS_PUSH)
+
.PHONY: $(SUBDIRS_NAME)
$(SUBDIRS_NAME):
$(MAKE) -C $@
.PHONY: $(SUBDIRS_NAME)
$(SUBDIRS_NAME):
$(MAKE) -C $@
$(SUBDIRS_BUILD): $(SUBDIRS)
$(MAKE) -C $< build
$(SUBDIRS_BUILD): $(SUBDIRS)
$(MAKE) -C $< build
+.PHONY: $(SUBDIRS_PUSH)
+$(SUBDIRS_PUSH): $(SUBDIRS)
+ $(MAKE) -C $< .push_image
+
========
The Makefile in this directory is used to build and push all
========
The Makefile in this directory is used to build and push all
-the validation containers. The command to do that is:
- make all REGISTRY=<dockerhub_registry>
+the validation containers. The default registry is **akraino** on
+dockerhub, but only CI jenkins slaves are authorized to push
+images to that registry. If you want to push to your own test registry, set
+the REGISTRY variables as in the commands below.
+
+To build and push the images:
+ make all [ REGISTRY=<dockerhub_registry> ]
To just build the containers, use the command:
To just build the containers, use the command:
- make build-all REGISTRY=<dockerhub_registry>
+ make build-all [ REGISTRY=<dockerhub_registry> ]
The k8s container
=================
To build just the k8s container, use the command:
The k8s container
=================
To build just the k8s container, use the command:
- make k8s-build REGISTRY=<dockerhub_registry>
+ make k8s-build [ REGISTRY=<dockerhub_registry> ]
To both build and push the container, use the command:
To both build and push the container, use the command:
- make k8s REGISTRY=<dockerhub_registry>
+ make k8s [ REGISTRY=<dockerhub_registry> ]
Container should be started with the admin.conf file mounted:
docker run -ti -v /home/jenkins/admin.conf:/root/.kube/config \
Container should be started with the admin.conf file mounted:
docker run -ti -v /home/jenkins/admin.conf:/root/.kube/config \
-<dockerhub_registry>/akraino_validation:k8s-latest /bin/sh
+<dockerhub_registry>/validation:k8s-latest /bin/sh
-REGISTRY ?= # TBD
-NAME ?= akraino_validation
+REGISTRY ?= akraino
+NAME ?= validation
TAG_PRE ?= $(notdir $(CURDIR))
TAG_VER ?= latest
DOCKERFILE ?= Dockerfile
TAG_PRE ?= $(notdir $(CURDIR))
TAG_VER ?= latest
DOCKERFILE ?= Dockerfile