From 3f914a40a4f4d47400f82e7bd82787e0c0c6a0e0 Mon Sep 17 00:00:00 2001 From: asonix Date: Tue, 5 May 2020 18:24:25 -0500 Subject: [PATCH] Auto-setup qemu --- riot/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/riot/build.sh b/riot/build.sh index 1573022..1181057 100755 --- a/riot/build.sh +++ b/riot/build.sh @@ -22,6 +22,11 @@ function print_help() { require "$TAG" tag +if ! docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then + echo "docker is not configured to run on qemu-emulated architectures, fixing will require sudo" + sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes +fi + set -xe sed "s/VERSION/$TAG/g" Dockerfile > "Dockerfile.$TAG"