Skip to content

Commit b656b1d

Browse files
author
Drew Wells
authored
specify platform so containers contains binaries that run on linux amd64 (#291)
1 parent f3a6cc5 commit b656b1d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
101101
# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
102102
.PHONY: docker-build
103103
docker-build: ## Build docker image with the manager.
104-
$(CONTAINER_TOOL) build -t ${IMG} .
104+
$(CONTAINER_TOOL) build --platform linux/amd64 -t ${IMG} .
105105

106106
.PHONY: docker-push
107107
docker-push: ## Push docker image with the manager.

Makefile.infoblox

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ DSNEXEC_IMG ?= ghcr.io/infobloxopen/db-controller/dsnexec:${GIT_COMMIT}
2121

2222
docker-build-%: target=$(@:docker-build-%=%)
2323
docker-build-%: .id
24-
cd $(target) && $(CONTAINER_TOOL) build -t ghcr.io/infobloxopen/$(target):$(GIT_COMMIT) .
24+
cd $(target) && $(CONTAINER_TOOL) build \
25+
--platform linux/amd64 \
26+
-t ghcr.io/infobloxopen/$(target):$(GIT_COMMIT) .
2527

2628
docker-push-%: target=$(@:docker-push-%=%)
2729
docker-push-%: .id

0 commit comments

Comments
 (0)