-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbdde-multiarch
More file actions
executable file
·27 lines (24 loc) · 1010 Bytes
/
Copy pathbdde-multiarch
File metadata and controls
executable file
·27 lines (24 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
#
# Copyright (C) 2018 - 2025 James E. King III
#
# Use, modification, and distribution are subject to the
# Boost Software License, Version 1.0. (See accompanying file
# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Boost Docker Development Environment
# Prepare the docker environment to run multiarch images.
#
# NOTE: See https://github.com/multiarch/qemu-user-static/issues/212 for why we use tonistiigi/binfmt instead.
#BDDE_MULTIARCH="multiarch/qemu-user-static --reset -p yes"
BDDE_MULTIARCH=tonistiigi/binfmt:qemu-v9.2.2-52
if [ "$1" == "--version" ]; then
docker run --privileged --rm ${BDDE_MULTIARCH} --version
else
set -x
# changed from multiarch/qemu-user-static to tonistiigi/binfmt
# because the multiarch docker image hasn't been updated
# see https://github.com/multiarch/qemu-user-static/issues/212
docker run --privileged --rm ${BDDE_MULTIARCH} --uninstall "qemu-*"
docker run --rm --privileged ${BDDE_MULTIARCH} --install all
fi