diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/arm64/Dockerfile (renamed from docker/Dockerfile-arm64) | 0 | ||||
-rw-r--r-- | docker/arm64/hooks/post_checkout | 3 | ||||
-rw-r--r-- | docker/arm64/hooks/pre_build | 4 | ||||
-rw-r--r-- | docker/armhf/Dockerfile (renamed from docker/Dockerfile-armhf) | 0 | ||||
-rw-r--r-- | docker/armhf/hooks/post_checkout | 3 | ||||
-rw-r--r-- | docker/armhf/hooks/pre_build | 4 |
6 files changed, 14 insertions, 0 deletions
diff --git a/docker/Dockerfile-arm64 b/docker/arm64/Dockerfile index 9625058b..9625058b 100644 --- a/docker/Dockerfile-arm64 +++ b/docker/arm64/Dockerfile diff --git a/docker/arm64/hooks/post_checkout b/docker/arm64/hooks/post_checkout new file mode 100644 index 00000000..fa25f63d --- /dev/null +++ b/docker/arm64/hooks/post_checkout @@ -0,0 +1,3 @@ +#!/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 . diff --git a/docker/arm64/hooks/pre_build b/docker/arm64/hooks/pre_build new file mode 100644 index 00000000..a08c740b --- /dev/null +++ b/docker/arm64/hooks/pre_build @@ -0,0 +1,4 @@ +#!/bin/bash +# Register qemu-*-static for all supported processors except the +# current one, but also remove all registered binfmt_misc before +docker run --rm --privileged multiarch/qemu-user-static:register --reset diff --git a/docker/Dockerfile-armhf b/docker/armhf/Dockerfile index 71b5b8bf..71b5b8bf 100644 --- a/docker/Dockerfile-armhf +++ b/docker/armhf/Dockerfile diff --git a/docker/armhf/hooks/post_checkout b/docker/armhf/hooks/post_checkout new file mode 100644 index 00000000..fa25f63d --- /dev/null +++ b/docker/armhf/hooks/post_checkout @@ -0,0 +1,3 @@ +#!/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 . diff --git a/docker/armhf/hooks/pre_build b/docker/armhf/hooks/pre_build new file mode 100644 index 00000000..a08c740b --- /dev/null +++ b/docker/armhf/hooks/pre_build @@ -0,0 +1,4 @@ +#!/bin/bash +# Register qemu-*-static for all supported processors except the +# current one, but also remove all registered binfmt_misc before +docker run --rm --privileged multiarch/qemu-user-static:register --reset |