Skip to content

Commit

Permalink
feat: add ARM64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Apr 26, 2021
1 parent ab54953 commit 1b4457f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export GOPATH GOBIN GO111MODULE DOCKER_CLI_EXPERIMENTAL

# Generate all combination of all OS, ARCH, and OSVERSIONS for iteration
ALL_OS = linux windows
ALL_ARCH.linux = amd64
ALL_ARCH.linux = amd64 arm64
ALL_OS_ARCH.linux = $(foreach arch, ${ALL_ARCH.linux}, linux-$(arch))
ALL_ARCH.windows = amd64
ALL_OSVERSIONS.windows := 1809 1903 1909 2004
Expand Down Expand Up @@ -180,7 +180,12 @@ container-all: azuredisk azuredisk-windows
ifeq ($(CLOUD), AzureStackCloud)
docker run --privileged --name buildx_buildkit_container-builder0 -d --mount type=bind,src=/etc/ssl/certs,dst=/etc/ssl/certs moby/buildkit:latest || true
endif
$(MAKE) container-linux
# enable qemu for arm64 build
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
for arch in $(ALL_ARCH.linux); do \
ARCH=$${arch} $(MAKE) azurefile; \
ARCH=$${arch} $(MAKE) container-linux; \
done
for osversion in $(ALL_OSVERSIONS.windows); do \
OSVERSION=$${osversion} $(MAKE) container-windows; \
done
Expand Down

0 comments on commit 1b4457f

Please sign in to comment.