Skip to content

Commit

Permalink
Dockerfile: convert base container to debian:bookworm
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
hongxu-jia committed Apr 2, 2024
1 parent 0c0d492 commit 8a7cafc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:testing
FROM debian:bookworm

# Don't pin the packages versions to exact values
# hadolint ignore=DL3008
Expand Down Expand Up @@ -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

Check failure on line 36 in docker/Dockerfile

View workflow job for this annotation

GitHub Actions / docker

DL3027 warning: Do not use apt as it is meant to be a end-user tool, use apt-get or apt-cache instead

COPY files/pip.conf /etc/pip.conf
RUN pip install omegaconf

Check failure on line 39 in docker/Dockerfile

View workflow job for this annotation

GitHub Actions / docker

DL3013 warning: Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>` or `pip install --requirement <requirements file>`

Check failure on line 39 in docker/Dockerfile

View workflow job for this annotation

GitHub Actions / docker

DL3042 warning: Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>`

Expand Down

0 comments on commit 8a7cafc

Please sign in to comment.