From 8a7cafc534b9fd076052d8b8ed53dbc808a50f5c Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Mon, 1 Apr 2024 23:29:04 -0400 Subject: [PATCH] Dockerfile: convert base container to debian:bookworm After convert base container to debian:bookworm, it caused mmdebstrap was downgraded from 1.4.3 to 1.3.5. The old version does not `stop copying qemu-$arch-static binary into the chroot'[1]. So we need to install qemu-user-static to container otherwise assemble arm64 image in amd64 container failed ... E: setup failed: E: cannot find /usr/bin/qemu-aarch64-static I: main() received signal PIPE: waiting for setup... I: removing tempdir /tmp/mmdebstrap.ICTBGw4f86... E: mmdebstrap failed to run ... [1] https://gitlab.mister-muffin.de/josch/mmdebstrap/commit/21366f76b79dfb4e0c929ac8365eb47e3c47f215 Signed-off-by: Hongxu Jia --- docker/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index ae1bb6f..2ff7047 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:testing +FROM debian:bookworm # Don't pin the packages versions to exact values # hadolint ignore=DL3008 @@ -33,6 +33,8 @@ RUN apt-get update && \ git && \ rm -rf /var/lib/apt/lists/* +RUN if [ "$(uname -m)" = "x86_64" ]; then apt update && apt install qemu-user-static arch-test -y; fi + COPY files/pip.conf /etc/pip.conf RUN pip install omegaconf