[ https://issues.apache.org/jira/browse/CAMEL-21613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17916335#comment-17916335 ]
Thomas Diesler edited comment on CAMEL-21613 at 1/23/25 9:32 AM: ----------------------------------------------------------------- When the --image-builder=jib (i.e. the default), we need to have this is the pom ... {code} <platforms> <platform>linux/amd64</platform> <platform>linux/arm64</platform> </platforms> {code} any other way (i.e. pom/cli property) to specify archs other than linux/amd64 does not work AFAIK. Having this in the pom ... {code} <createImageOptions> <platform>linux/amd64</platform> <platform>linux/arm64</platform> </createImageOptions> {code} passes these options to the [docker deamon|https://docs.docker.com/reference/api/engine/version/v1.41/#tag/Image/operation/ImageCreate] and I believe would only have an effect with --image-builder=docker was (Author: tdiesler): When the --image-builder=jib (i.e. the default), we need to have this is the pom ... {{code}} <platforms> <platform>linux/amd64</platform> <platform>linux/arm64</platform> </platforms> {{code}} any other way (i.e. pom/cli property) to specify archs other than linux/amd64 does not work AFAIK. Having this in the pom ... {{code}} <createImageOptions> <platform>linux/amd64</platform> <platform>linux/arm64</platform> </createImageOptions> {{code}} passes these options to the [docker deamon|https://docs.docker.com/reference/api/engine/version/v1.41/#tag/Image/operation/ImageCreate] and I believe would only have an effect with --image-builder=docker > Camel-Jbang Kubernetes Plugin: allow to choose image platform options > --------------------------------------------------------------------- > > Key: CAMEL-21613 > URL: https://issues.apache.org/jira/browse/CAMEL-21613 > Project: Camel > Issue Type: Improvement > Components: camel-jbang > Reporter: Gaelle Fournier > Assignee: Thomas Diesler > Priority: Minor > Fix For: 4.x > > > We should be able to configure for which architecture platform(s) we cant to > build the container. > > Currently we build the container image (with docker, JIB or podman) for both > linux/amd64 and linux/arm64. That mean we need the user to be able to do > multi-platform build. > While it is available out of the box for JIB (and maybe podman), for docker > it requires some specific tools like Qemu/buildx. We need to allow the user > to override the default configuration. -- This message was sent by Atlassian Jira (v8.20.10#820010)