.PHONY: build-all
build-all: $(SUBDIRS_BUILD)
+.PHONY: push-all
+push-all: $(SUBDIRS_PUSH)
+
.PHONY: $(SUBDIRS_NAME)
$(SUBDIRS_NAME):
$(MAKE) -C $@
$(SUBDIRS_BUILD): $(SUBDIRS)
$(MAKE) -C $< build
+.PHONY: $(SUBDIRS_PUSH)
+$(SUBDIRS_PUSH): $(SUBDIRS)
+ $(MAKE) -C $< .push_image
+
include build.mk
========
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:
- make build-all REGISTRY=<dockerhub_registry>
+ make build-all [ REGISTRY=<dockerhub_registry> ]
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:
- 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 \
-<dockerhub_registry>/akraino_validation:k8s-latest /bin/sh
+<dockerhub_registry>/validation:k8s-latest /bin/sh