Docker's non-buildkit multi-arch support is pretty flaky

This commit is contained in:
Tony Garnock-Jones 2023-10-18 21:31:26 +02:00
parent 601455350d
commit 167c5a249f
2 changed files with 3 additions and 1 deletions

View File

@ -82,6 +82,7 @@ build-image: check-tools .build-image.$(ARCH)
.build-image.$(ARCH): $(KEYFILE)
docker build \
$(DOCKER_BUILD_ARGS) \
--pull \
--platform=linux/$(DOCKER_ARCH) \
-t synit-build:$(ARCH) .
touch $@
@ -89,6 +90,7 @@ build-image: check-tools .build-image.$(ARCH)
.build-image.rust.$(ARCH): .build-image.$(ARCH)
docker build \
$(DOCKER_BUILD_ARGS) \
--pull \
--platform=linux/$(DOCKER_ARCH) \
-t synit-build-rust:$(ARCH) -f Dockerfile.rust .
touch $@

View File

@ -1,7 +1,7 @@
#!/bin/sh
case $1 in
aarch64) echo arm64;;
x86_64) echo x86_64;;
x86_64) echo amd64;;
armv7) echo armhf;;
*)
echo 'ERROR: Unknown Alpine ARCH '"$1" >&2