Skip to content

Commit

Permalink
ci: Replace binfmt container with Debian qemu-user-static
Browse files Browse the repository at this point in the history
This apparently fixes sporadic crashes of arm64 image builds, see also
[1] and [2]. Ubuntu's version of qemu-user does not seem to have this
fixed yet either, therefore inject the current Debian package.

In addition, this moves away from the floating
docker.io/tonistiigi/binfmt:latest that docker/setup-qemu-action@v3
uses. This loose coupling is questionable, not only in the light of
this issue.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087822
[2] tonistiigi/binfmt#215

Co-Developed-by: Felix Moessbauer <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
jan-kiszka committed Jan 30, 2025
1 parent d2cac88 commit d1c28fa
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/actions/docker-init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ runs:
using: composite
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
shell: bash
env:
QEMU_USER_STATIC_PACKAGE: qemu-user-static_7.2+dfsg-7+deb12u12_amd64.deb
REPO_DATE: 20250130T084806Z
PACKAGE_SHA256: 1a2696081c1f30d464f79fd300196822397c77f05440ea9ce6dc8e9658b595ec
run: |
# temporarily use Debian qemu-user-static until Ubuntu fixes theirs
wget -q http://snapshot.debian.org/archive/debian/${REPO_DATE}/pool/main/q/qemu/${QEMU_USER_STATIC_PACKAGE}
echo "${PACKAGE_SHA256} ${QEMU_USER_STATIC_PACKAGE}" | sha256sum -c
sudo dpkg -i ${QEMU_USER_STATIC_PACKAGE}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit d1c28fa

Please sign in to comment.