From d474cbd84d768deadd9f4925ee7272138bbef149 Mon Sep 17 00:00:00 2001 From: Jonathan Knight Date: Wed, 21 Feb 2024 12:09:30 +0300 Subject: [PATCH] Set platform for images --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 226a53c5..81b4c6bf 100644 --- a/Makefile +++ b/Makefile @@ -434,13 +434,13 @@ clean-tools: ## Cleans the locally downloaded build tools (i.e. need a new tool build-operator: $(BUILD_TARGETS)/build-operator ## Build the Coherence Operator image $(BUILD_TARGETS)/build-operator: $(BUILD_BIN)/runner $(BUILD_TARGETS)/java $(BUILD_TARGETS)/cli - docker build --no-cache --build-arg version=$(VERSION) \ + docker build --platform linux/amd64 --no-cache --build-arg version=$(VERSION) \ --build-arg BASE_IMAGE=$(OPERATOR_BASE_IMAGE) \ --build-arg coherence_image=$(COHERENCE_IMAGE) \ --build-arg operator_image=$(OPERATOR_IMAGE) \ --build-arg target=amd64 \ . -t $(OPERATOR_IMAGE)-amd64 - docker build --no-cache --build-arg version=$(VERSION) \ + docker build --platform linux/arm64 --no-cache --build-arg version=$(VERSION) \ --build-arg BASE_IMAGE=$(OPERATOR_BASE_IMAGE) \ --build-arg coherence_image=$(COHERENCE_IMAGE) \ --build-arg operator_image=$(OPERATOR_IMAGE) \