From a7f657930b91f76d60a75f55543fa9893a3fd92b Mon Sep 17 00:00:00 2001 From: Christopher Obbard Date: Mon, 18 Nov 2024 17:29:58 +0000 Subject: [PATCH] docker: install qemu-user-static from backports Seems that cross-arch Python scripts are failing inside fakemachine due to qemu-user issue. Install latest qemu from backports to work around this issue. Fixes: https://github.com/go-debos/debos/issues/518 Signed-off-by: Christopher Obbard --- docker/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index fe1c1ea6..8053f958 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -98,7 +98,6 @@ RUN apt-get update && \ openssh-client \ parted \ pkg-config \ - qemu-user-static \ qemu-utils \ rsync \ systemd \ @@ -115,6 +114,12 @@ RUN apt-get update && \ arch-install-scripts && \ rm -rf /var/lib/apt/lists/* +RUN echo "deb http://deb.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/bookworm-backports.list && \ + apt-get update && \ + apt-get install -y --no-install-recommends -t bookworm-backports \ + qemu-user-static && \ + rm -rf /var/lib/apt/lists/* + COPY --from=builder $GOPATH/bin/debos /usr/local/bin/debos # Install the latest archlinux-keyring, since the one in Debian is bound