From 847b7d49658ad2fbf5da867739e67c0aaf36645c Mon Sep 17 00:00:00 2001 From: Stacey Fletcher Date: Thu, 7 Dec 2017 16:58:38 -0600 Subject: [PATCH] Update Makefile individual image build This patchset will allow for Jenkins jobs to build each image using the Jenkins job name. Change-Id: Ic4dfda4290b6d9ba3f7c95329719abc5fe6545bc --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index b83f5c9..03253ba 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ USE_PROXY ?= false # Build all docker images for this project .PHONY: images -images: build_rack build_region build_cache +images: build_maas-rack-controller build_maas-region-controller build_sstream-cache # Create tgz of the chart .PHONY: charts @@ -47,24 +47,24 @@ dry-run: clean # Make targets intended for use by the primary targets above. -.PHONY: build_rack -build_rack: +.PHONY: build_maas-rack-controller +build_maas-rack-controller: ifeq ($(USE_PROXY), true) docker build -t $(IMAGE_PREFIX)/$(MAAS_IMAGE_COMMON)-$(RACK_SUFFIX):$(IMAGE_TAG) -f $(RACK_IMG_DIR)/Dockerfile $(RACK_IMG_DIR) --build-arg http_proxy=$(PROXY) --build-arg https_proxy=$(PROXY) else docker build -t $(IMAGE_PREFIX)/$(MAAS_IMAGE_COMMON)-$(RACK_SUFFIX):$(IMAGE_TAG) -f $(RACK_IMG_DIR)/Dockerfile $(RACK_IMG_DIR) endif -.PHONY: build_region -build_region: +.PHONY: build_maas-region-controller +build_maas-region-controller: ifeq ($(USE_PROXY), true) docker build -t $(IMAGE_PREFIX)/$(MAAS_IMAGE_COMMON)-$(REGION_SUFFIX):$(IMAGE_TAG) -f $(REGION_IMG_DIR)/Dockerfile $(REGION_IMG_DIR) --build-arg http_proxy=$(PROXY) --build-arg https_proxy=$(PROXY) else docker build -t $(IMAGE_PREFIX)/$(MAAS_IMAGE_COMMON)-$(REGION_SUFFIX):$(IMAGE_TAG) -f $(REGION_IMG_DIR)/Dockerfile $(REGION_IMG_DIR) endif -.PHONY: build_cache -build_cache: +.PHONY: build_sstream-cache +build_sstream-cache: ifeq ($(USE_PROXY), true) docker build -t $(IMAGE_PREFIX)/$(MAAS_IMAGE_COMMON)-$(CACHE_SUFFIX):$(IMAGE_TAG) -f $(CACHE_IMG_DIR)/Dockerfile $(CACHE_IMG_DIR) --build-arg http_proxy=$(PROXY) --build-arg https_proxy=$(PROXY) else