Skip to content
Snippets Groups Projects
Commit 8fc8f212 authored by Markus Frosch's avatar Markus Frosch
Browse files

debootstrap: Copy qemu-arm-static for Docker-in-Docker bind mount

parent dc7f32fb
No related branches found
No related tags found
1 merge request!2Implement CI
...@@ -19,9 +19,15 @@ if [ ! -x /usr/bin/qemu-arm-static ]; then ...@@ -19,9 +19,15 @@ if [ ! -x /usr/bin/qemu-arm-static ]; then
exit 1 exit 1
fi fi
# make a copy to avoid bind mount problems with dind
qemu="$(mktemp)"
cp -av /usr/bin/qemu-arm-static "$qemu"
docker run -i $opts --rm \ docker run -i $opts --rm \
--privileged \ --privileged \
-e "TARBALL=$TARBALL" \ -e "TARBALL=$TARBALL" \
-v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static:ro \ -v "${qemu}:/usr/bin/qemu-arm-static:ro" \
-v "$(pwd):/work" -w "/work" \ -v "$(pwd):/work" -w "/work" \
"$IMAGE" "$@" "$IMAGE" "$@"
rm -f "${qemu}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment