Skip to content

Commit

Permalink
Fix multiarch docker build.
Browse files Browse the repository at this point in the history
  • Loading branch information
bastienwirtz committed May 20, 2020
1 parent e6701f5 commit c92844b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile.arm32v7
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM arm32v7/alpine:3.11
COPY qemu-arm-static /usr/bin

COPY ./ /www/

Expand Down
1 change: 1 addition & 0 deletions Dockerfile.arm64v8
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM arm64v8/alpine:3.11
COPY qemu-arm-static /usr/bin

COPY ./ /www/

Expand Down
5 changes: 5 additions & 0 deletions hooks/post_push
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

#!/bin/bash
# downloads a local copy of qemu on docker-hub build machines
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static .


docker manifest push --purge b4bz/homer:latest
docker manifest create b4bz/homer:latest b4bz/homer:latest-amd64 b4bz/homer:latest-arm32v7 b4bz/homer:latest-arm64v8
docker manifest annotate b4bz/homer:latest b4bz/homer:latest-arm32v7 --os linux --arch arm
Expand Down

0 comments on commit c92844b

Please sign in to comment.