Skip to content

Commit

Permalink
Set the correct platform for images (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegridman authored Feb 28, 2024
1 parent d41d319 commit cab4f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit cab4f84

Please sign in to comment.