You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64)
This is most likely due to the base builder image not supporting arm64. Newer versions of that builder should support it.
The Dockerfile used to build devfile-index also contains amd64 dependencies. This will cause the image to build for amd64 even if --platform linux/arm64 is passed on most machines that won't fully emulate (I believe the newest version of Podman is doing this). This will need to be dynamically set based on the architecture the build is trying to run for.
Additionally, we should implement manifest creation so that we can build and store the images as multi-arch so that both architectures are supported. It may also be good to implement the manifest creation, multi-arch building, and pushing to the existing build.sh, push.sh and build_registry.sh scripts we are already using.
Once the manifest is created and apart of the repository, any automation that is currently building images for this repository and pushing them should be doing so to the manifest to allow for multi-arch pulling.
Which area is this issue related to?
/area registry
Issue Description
Currently when trying build
devfile-index-base
anddevfile-index
with--platform linux/arm64
you are presented with:This is most likely due to the base builder image not supporting
arm64
. Newer versions of that builder should support it.The
Dockerfile
used to builddevfile-index
also containsamd64
dependencies. This will cause the image to build foramd64
even if--platform linux/arm64
is passed on most machines that won't fully emulate (I believe the newest version of Podman is doing this). This will need to be dynamically set based on the architecture the build is trying to run for.Additionally, we should implement
manifest
creation so that we can build and store the images as multi-arch so that both architectures are supported. It may also be good to implement the manifest creation, multi-arch building, and pushing to the existingbuild.sh
,push.sh
andbuild_registry.sh
scripts we are already using.Once the manifest is created and apart of the repository, any automation that is currently building images for this repository and pushing them should be doing so to the manifest to allow for multi-arch pulling.
Below is an example from Red Hat Developer:
Acceptance criteria
arm64
architecture clearedamd64
dependency in Dockerfile handled to dynamically setdevfile-index-base
able to be built as multi-archdevfile-index
able to be built as multi-archThe text was updated successfully, but these errors were encountered: