-
Notifications
You must be signed in to change notification settings - Fork 8
Multi Arch Support #49
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Shivam Mehta <smehta@lanl.gov>
Signed-off-by: Shivam Mehta <smehta@lanl.gov>
18d6fa5 to
55b2551
Compare
|
Thanks for the contribution. I didn't see a description so before this is marked as ready for review, can you provide testing instructions with expected results using a minimal working example? That would expedite the testing process. |
Signed-off-by: Shivam Mehta <smehta@lanl.gov>
|
There isn't much testing to do here (especially, when I don't have any aarch64 hardware). Main thing to check is that the generated image can be pulled without having to specify the arch and that its pointing to the correct image: $ podman pull --tls-verify=false 172.16.0.254:5000/openchami/rocky-base:latest
Trying to pull 172.16.0.254:5000/openchami/rocky-base:latest...
...
74d3412e4d4fbdcbc3e0586c997af4e57995c2444aeab2b09f3256bdfd3f8b65
$ podman pull --tls-verify=false 172.16.0.254:5000/openchami/rocky-base:latest-x86_64
Trying to pull 172.16.0.254:5000/openchami/rocky-base:latest-x86_64...
...
Copying blob 9c82532b6ba7 skipped: already exists
...
74d3412e4d4fbdcbc3e0586c997af4e57995c2444aeab2b09f3256bdfd3f8b65The other thing to check is that the subsequent images that are being built off of the "scratch" image pulls the correct image and pushes images with correct manifest when finished building. Which it seems to do: ERROR - Trying to pull 172.16.0.254:5000/openchami/rocky-base:9.5...
...
ERROR - Copying config sha256:74d3412e4d4fbdcbc3e0586c997af4e57995c2444aeab2b09f3256bdfd3f8b65$ podman pull --tls-verify=false 172.16.0.254:5000/openchami/compute-base:rocky9.5
Trying to pull 172.16.0.254:5000/openchami/compute-base:rocky9.5...
...
Copying blob 9c82532b6ba7 skipped: already exists
Copying blob df14b69e031b done |
...
66bd5936e786cd51549621fddcec84b6c2365950ef5f112f83b101a3b63f76ef
$ podman pull --tls-verify=false 172.16.0.254:5000/openchami/compute-base:rocky9.5-x86_64
Trying to pull 172.16.0.254:5000/openchami/compute-base:rocky9.5-x86_64...
...
Copying blob df14b69e031b skipped: already exists
Copying blob 9c82532b6ba7 skipped: already exists
...
66bd5936e786cd51549621fddcec84b6c2365950ef5f112f83b101a3b63f76ef |
|
This PR is ready for review. Please let me know if I missed a test case. |
|
Looks great! I don't see that we can control multi-arch via a commandline arg. Am I missing something? |
Possibly. Maybe I misunderstood the request.
If its the second option, I spoke with @travisbcotton and it seems should only be doing "build + push" of host arch. I guess we could use QEMU. I will need to explore how that works before I can implement it. |
|
I was concerned that we'd be adding multi-arch (with qemu) to all future builds with this change. Sounds like that was never part of the intention. How do we envision matching the x86 and arm builds of the same image to make the manifest include both? |
|
This PR uses "name" + "published_tag" to name the manifest and then points to the correct image. I slightly modify the name of the image, previously it was "name" + "published_tag" (same as the manifest name now) but I add "-{arch}" to it. Then I say "add this image to this manifest" which captures the arch. When a x86_64 image is pushed, it pushes it to |
Pull Request Template
Thank you for your contribution! Please ensure the following before submitting:
Checklist
make test(or equivalent) locally and all tests passgit commit -s) with my real name and email<filename>.licensesidecarLICENSES/directoryDescription
Please include a summary of the change and which issue is fixed.
rocky-linux:latest-x86_64.Also include relevant motivation and context.
Interest in exploring manifests
Fixes #15
Type of Change
For more info, see Contributing Guidelines.