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

Create multi arch images #310

Closed
jfdenise opened this issue Apr 6, 2022 · 5 comments · Fixed by #406
Closed

Create multi arch images #310

jfdenise opened this issue Apr 6, 2022 · 5 comments · Fixed by #406

Comments

@jfdenise
Copy link
Contributor

jfdenise commented Apr 6, 2022

It has been observed on arm platform (Mac), bad performances when using linux/amd64 images.
Although cekit support --platform we are running into some issues:

The current solution would be to:

We can release today single arch amd64 images and, in the future, when the best solution is found, push to the same image name multi arch images. Quay.io supports it.

@galderz
Copy link

galderz commented Apr 25, 2022

FYI, keep an eye on the resolution of quarkusio/quarkus-images#83 for an example on how to do multiarch images with cekit. It's still WIP

@jfdenise
Copy link
Contributor Author

jfdenise commented May 3, 2022

@galderz , thank-you. It seems that we have a similar approach, we do a dry-run then do a docker buildx: https://github.com/wildfly/wildfly-s2i/blob/main/.github/workflows/v2-push.yml#L120 One issue is that squash doesn't actually squash the image.
I noticed that you are not squashing the image. Are you planning to squash to reduce the image size?

@galderz
Copy link

galderz commented May 3, 2022

Reducing image size is not a priority for me. @cescoffier might have a different opinion though.

@cescoffier
Copy link

One thing at a time. The size will be important, but it's not a priority for us (Quarkus images) at the moment. We are looking at different approaches to reduce the size, including trying to see how we can use smaller base images (ubi-micro instead of -minimal).

@jmesnil
Copy link
Member

jmesnil commented Nov 9, 2022

Another approach would be to use cekit to generate the Dockerfile and buildah to build the multiarch images as it seems to support squashing.

https://github.com/redhat-actions/buildah-build/blob/main/.github/workflows/multiarch.yml is an example of a multiarch image with buildah

@jfdenise jfdenise linked a pull request Nov 30, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants