Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

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

Closed
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

@ssbarnea ssbarnea closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants