From 877135c339022ca8c0336241c2dcdf7e88c0a8b9 Mon Sep 17 00:00:00 2001 From: Felix Nehrke Date: Wed, 24 Sep 2025 06:34:11 +0200 Subject: [PATCH] Add proper configuration and docs to build multi-arch container-images --- README.adoc | 1 + group_vars/localhost/debian.config.yml | 1 + main.yml | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/README.adoc b/README.adoc index 5682e8f..8fb0bbb 100644 --- a/README.adoc +++ b/README.adoc @@ -52,3 +52,4 @@ Use a secure password and keep it in a password-manager. == Cheat-Sheet * The shortcut kbd:[Fn+1] toggles fans 100% (http://reddit.com/r/System76/comments/ol9a60[Ref]) +* https://schoenwald.aero/posts/2025-01-27_podman-multiarch-image/[Create multiarch images with podman] diff --git a/group_vars/localhost/debian.config.yml b/group_vars/localhost/debian.config.yml index e45a326..de8ea71 100644 --- a/group_vars/localhost/debian.config.yml +++ b/group_vars/localhost/debian.config.yml @@ -81,6 +81,7 @@ apt_packages: - polybar - pulseaudio-utils - python3-kubernetes +- qemu-user-static - ripgrep - rofi - ruby-asciidoctor-kroki diff --git a/main.yml b/main.yml index 75309be..70af529 100644 --- a/main.yml +++ b/main.yml @@ -27,4 +27,9 @@ - name: Ensure helm diff tags: [packages] shell: helm plugin install https://github.com/databus23/helm-diff + - name: Configure QEMU for multiarch podman builds + tags: [packages] + become: yes + shell: podman run --rm --privileged docker.io/multiarch/qemu-user-static --reset -p yes + when: ansible_os_family == 'Debian'