Skip to content

Commit

Permalink
docker: install qemu from backports
Browse files Browse the repository at this point in the history
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: #518
Signed-off-by: Christopher Obbard <[email protected]>
  • Loading branch information
obbardc committed Nov 18, 2024
1 parent 034142a commit dde7096
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ 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-system-x86 \
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
Expand Down

0 comments on commit dde7096

Please sign in to comment.