Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Multi-arch support to creator-ee images for IBM Power (ppc64le) and IBM Z (s390x). #399

Open
Sachin-Itagi opened this issue Mar 27, 2024 · 1 comment

Comments

@Sachin-Itagi
Copy link

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

@Sachin-Itagi
Copy link
Author

Sachin-Itagi commented Apr 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant