Moves hooks back into their proper directory and updated arm dockerfile to avoid installing curl just go get qemu

This commit is contained in:
Tzahi12345
2020-08-18 16:43:52 -04:00
parent 0e35b2ca1b
commit 2e4ef3b224
3 changed files with 2 additions and 5 deletions

3
hooks/post_checkout Normal file
View File

@@ -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 .

4
hooks/pre_build Normal file
View File

@@ -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