summaryrefslogtreecommitdiff
path: root/docker/armhf/hooks
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2019-09-19 10:31:59 +0200
committerKim Hagen <kim.sidney@gmail.com>2019-09-19 10:31:59 +0200
commit1bbbdef6778f85b8e91882239ee070b55f48e5b6 (patch)
tree98afd0a7d613905e88bcfd6f70f8e148912f9bec /docker/armhf/hooks
parentb2aa30e203e85b9a44b64fd0076225e60123fd46 (diff)
downloadvyos-build-1bbbdef6778f85b8e91882239ee070b55f48e5b6.tar.gz
vyos-build-1bbbdef6778f85b8e91882239ee070b55f48e5b6.zip
add hooks for autobuild
Diffstat (limited to 'docker/armhf/hooks')
-rw-r--r--docker/armhf/hooks/post_checkout3
-rw-r--r--docker/armhf/hooks/pre_build4
2 files changed, 7 insertions, 0 deletions
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