This is an automated email from the ASF dual-hosted git repository.

aw pushed a commit to branch YETUS-1138
in repository https://gitbox.apache.org/repos/asf/yetus.git


The following commit(s) were added to refs/heads/YETUS-1138 by this push:
     new 123861d  fixup! YETUS-1138. Better support for multiple architectures
123861d is described below

commit 123861d9013e5d8a06a7dd4883d38c7aa9b04bc9
Author: Allen Wittenauer <[email protected]>
AuthorDate: Fri Nov 12 21:32:10 2021 -0800

    fixup! YETUS-1138. Better support for multiple architectures
---
 hooks/build         | 11 -----------
 hooks/post-checkout |  7 +++++++
 2 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/hooks/build b/hooks/build
index 308308a..5ac4994 100755
--- a/hooks/build
+++ b/hooks/build
@@ -44,17 +44,6 @@ if [[ -z "${DOCKER_REPO}" ]]; then
   export DOCKER_REPO
 fi
 
-# enable multi-platform
-docker pull tonistiigi/binfmt
-docker run --rm --privileged tonistiigi/binfmt:latest
-docker run --rm --privileged tonistiigi/binfmt --uninstall qemu-*
-docker run --rm --privileged tonistiigi/binfmt --install arm64
-docker run --rm --privileged tonistiigi/binfmt:latest
-
-#docker pull multiarch/qemu-user-static
-#docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
-#docker run --rm --privileged multiarch/qemu-user-static
-
 docker buildx create --name multiarch --driver docker-container --use
 docker buildx inspect --bootstrap
 
diff --git a/hooks/post-checkout b/hooks/post-checkout
new file mode 100644
index 0000000..a2b3736
--- /dev/null
+++ b/hooks/post-checkout
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+sudo apt-get install -y qemu-user-static
+
+docker pull multiarch/qemu-user-static
+docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
+docker run --rm --privileged multiarch/qemu-user-static
+

Reply via email to