Skip to content

Commit 93ba283

Browse files
authored
Merge pull request #903 from buildkite/keithduncan/install-qemu
Install qemu and binfmt hooks
2 parents da49573 + 165dbc7 commit 93ba283

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packer/linux/scripts/install-docker.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,10 @@ esac
8282
sudo curl --location --fail --silent --output "${DOCKER_CLI_DIR}/docker-buildx" "https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-${BUILDX_ARCH}"
8383
sudo chmod +x "${DOCKER_CLI_DIR}/docker-buildx"
8484
docker buildx version
85+
86+
echo "Installing qemu..."
87+
sudo yum install -y qemu qemu-user-static
88+
89+
curl --location --fail --silent --output /tmp/qemu-binfmt-conf.sh https://raw.githubusercontent.com/qemu/qemu/v6.1.0/scripts/qemu-binfmt-conf.sh
90+
chmod +x /tmp/qemu-binfmt-conf.sh
91+
sudo /tmp/qemu-binfmt-conf.sh --qemu-suffix "-static" --qemu-path /usr/bin

0 commit comments

Comments
 (0)