Add Multi-arch support to creator-ee images for IBM Power (ppc64le) and IBM Z (s390x).
Add multi-arch support to creator-ee images to IBM Power and IBM Z architecture.
This is needed for development and testing of ansible content on Power and Z.
Multi-arch support can be added by using docker buildx
Hi Everyone, I was working on the PR to add P/Z Support to the creator-ee image however I am facing some issues with it during the build process. Here is my forked repo
Tested on a Fedora 39 VM with the following podman version
[fedora@pe-16-fedora31-janaki creator-ee]$ podman --version
podman version 4.9.3
I ran the task command and the creator-base image was built however I am facing the following error.
[fedora@pe-16-fedora31-janaki creator-ee]$ podman run -it --rm --arch=x86_64 localhost/creator-base:latest python3 --version
Error: no image found in image index for architecture x86_64, variant "", OS linux
I can see that the image has been built successfully if I inspect the manifest.
[fedora@pe-16-fedora31-janaki creator-ee]$ podman manifest inspect localhost/creator-base:latest | grep arch
"architecture": "s390x",
"architecture": "ppc64le",
"architecture": "amd64",
"architecture": "arm64",
Also, the validation command is working as expected if we change the architecture.
[fedora@pe-16-fedora31-janaki creator-ee]$ podman run -it --rm --arch=amd64 localhost/creator-base:latest python3 --version
Python 3.12.2
[fedora@pe-16-fedora31-janaki creator-ee]$ podman run -it --rm --arch=s390x localhost/creator-base:latest python3 --version
WARNING: image platform (linux/amd64) does not match the expected platform (linux/s390x)
Python 3.12.2
[fedora@pe-16-fedora31-janaki creator-ee]$ podman run -it --rm --arch=ppc64le localhost/creator-base:latest python3 --version
WARNING: image platform (linux/amd64) does not match the expected platform (linux/ppc64le)
Python 3.12.2
Any help with this error would be appreciated. cc @ghatwala