Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable cross-architecture builds #99

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
11 changes: 11 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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