Skip to content

Commit cab4f84

Browse files
authored
Set the correct platform for images (#641)
1 parent d41d319 commit cab4f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,13 @@ clean-tools: ## Cleans the locally downloaded build tools (i.e. need a new tool
434434
build-operator: $(BUILD_TARGETS)/build-operator ## Build the Coherence Operator image
435435

436436
$(BUILD_TARGETS)/build-operator: $(BUILD_BIN)/runner $(BUILD_TARGETS)/java $(BUILD_TARGETS)/cli
437-
docker build --no-cache --build-arg version=$(VERSION) \
437+
docker build --platform linux/amd64 --no-cache --build-arg version=$(VERSION) \
438438
--build-arg BASE_IMAGE=$(OPERATOR_BASE_IMAGE) \
439439
--build-arg coherence_image=$(COHERENCE_IMAGE) \
440440
--build-arg operator_image=$(OPERATOR_IMAGE) \
441441
--build-arg target=amd64 \
442442
. -t $(OPERATOR_IMAGE)-amd64
443-
docker build --no-cache --build-arg version=$(VERSION) \
443+
docker build --platform linux/arm64 --no-cache --build-arg version=$(VERSION) \
444444
--build-arg BASE_IMAGE=$(OPERATOR_BASE_IMAGE) \
445445
--build-arg coherence_image=$(COHERENCE_IMAGE) \
446446
--build-arg operator_image=$(OPERATOR_IMAGE) \

0 commit comments

Comments
 (0)