Skip to content

Commit 50f69ff

Browse files
authored
Use docker buildx to build docker image (#864)
xref: https://community.arm.com/developer/tools-software/tools/b/tools-software-ides-blog/posts/getting-started-with-docker-for-arm-on-linux Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent d8c0b1d commit 50f69ff

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
@@ -70,7 +70,7 @@ TAG := $(VERSION)_$(OS)_$(ARCH)
7070
TAG_PROD := $(TAG)
7171
TAG_DBG := $(VERSION)-dbg_$(OS)_$(ARCH)
7272

73-
GO_VERSION ?= 1.12.6
73+
GO_VERSION ?= 1.12.7
7474
BUILD_IMAGE ?= appscode/golang-dev:$(GO_VERSION)-stretch
7575

7676
OUTBIN = bin/$(OS)_$(ARCH)/$(BIN)
@@ -216,7 +216,7 @@ bin/.container-$(DOTFILE_IMAGE)-%: bin/$(OS)_$(ARCH)/$(BIN) $(DOCKERFILE_%)
216216
-e 's|{RESTIC_VER}|$(RESTIC_VER)|g' \
217217
-e 's|{NEW_RESTIC_VER}|$(NEW_RESTIC_VER)|g' \
218218
$(DOCKERFILE_$*) > bin/.dockerfile-$*-$(OS)_$(ARCH)
219-
@docker build --pull -t $(IMAGE):$(TAG_$*) -f bin/.dockerfile-$*-$(OS)_$(ARCH) .
219+
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --platform $(OS)/$(ARCH) --load --pull -t $(IMAGE):$(TAG_$*) -f bin/.dockerfile-$*-$(OS)_$(ARCH) .
220220
@docker images -q $(IMAGE):$(TAG_$*) > $@
221221
@echo
222222

0 commit comments

Comments
 (0)