Skip to content

Commit

Permalink
Merge pull request #490 from kubernetes-sigs/fix-buildkit
Browse files Browse the repository at this point in the history
fix: build windows image error
  • Loading branch information
andyzhangx authored Dec 7, 2020
2 parents 6610a68 + a0be7d1 commit 587e146
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ container-all: azurefile azurefile-windows
docker buildx rm container-builder || true
docker buildx create --use --name=container-builder
$(MAKE) container-linux
# only moby/buildkit:foreign-mediatype works on building Windows image now
# https://github.com/moby/buildkit/pull/1879
docker buildx rm container-builder || true
docker buildx create --use --name=container-builder
docker run --privileged --name buildx_buildkit_container-builder0 -d andyzhangx/buildkit:v0.8.0-foreign-mediatype || true
for osversion in $(ALL_OSVERSIONS.windows); do \
OSVERSION=$${osversion} $(MAKE) container-windows; \
done
Expand Down

0 comments on commit 587e146

Please sign in to comment.