From 0a636c50bcbe4137cdd59b04f3fe8c20565f5c62 Mon Sep 17 00:00:00 2001 From: d2r4 Date: Thu, 14 Jul 2022 03:25:47 -0400 Subject: [PATCH 1/2] Enable cross architecture builds --- hooks/build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hooks/build b/hooks/build index 7912da5..450b9c5 100644 --- a/hooks/build +++ b/hooks/build @@ -6,6 +6,9 @@ # or `nvidia`) since those depend on the base one. # +# Enable builds across architectures (i.e. arm32v7 and arm64v8 on amd64) +docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + # Base images docker build -t boinc/client:base-alpine -f Dockerfile.base-alpine . docker build -t boinc/client:base-ubuntu -f Dockerfile.base-ubuntu . From a66484d7b0d281df67c9145c9476a00fe486c69b Mon Sep 17 00:00:00 2001 From: d2r4 Date: Mon, 18 Jul 2022 18:22:29 -0400 Subject: [PATCH 2/2] enable local arm builds --- update.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/update.sh b/update.sh index 17a0257..bc1d576 100755 --- a/update.sh +++ b/update.sh @@ -30,5 +30,16 @@ docker push boinc/client:multi-gpu docker build -t boinc/client:virtualbox -f Dockerfile.virtualbox . docker push boinc/client:virtualbox +# Enable builds for other architectures (i.e. arm32v7, arm64v8) +docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + +# Arm32v7 +docker build -t boinc/client:arm32v7 -f Dockerfile.arm32v7 . +docker push boinc/client:arm32v7 + +# Arm64v8 +docker build -t boinc/client:arm64v8 -f Dockerfile.arm64v8 . +docker push boinc/client:arm64v8 + # Remove all the docker images docker system prune -a