[ https://issues.apache.org/jira/browse/CAMEL-21613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17916046#comment-17916046 ]
Thomas Diesler edited comment on CAMEL-21613 at 1/22/25 1:03 PM: ----------------------------------------------------------------- Property {{-Djkube.container-image.platforms=linux/amd64,linux/arm64}} takes no effect. Not in the pom, nor on the cmd line. Having this in the pom works ... {code:xml} <from>eclipse-temurin:17</from> <platforms> <platform>linux/amd64</platform> <platform>linux/arm64</platform> </platforms> {code} Likely, that we never built multi-arch images. How about we remove the invalid {{createImageOptions}} from the template and otherwise leave it as is for now. On OpenShift we build from source and most target nodes are amd64 anyway. Likely, that we make things worse defaulting to the current platform architecture if that's not the same as the target node's. CrossRef: https://github.com/eclipse-jkube/jkube/issues/3642 was (Author: tdiesler): Property {{-Djkube.container-image.platforms=linux/amd64,linux/arm64}} takes no effect. Not in the pom, nor on the cmd line. Having this in the pom works ... {code:xml} <from>eclipse-temurin:17</from> <platforms> <platform>linux/amd64</platform> <platform>linux/arm64</platform> </platforms> {code} Likely, that we never built multi-arch images. How about we remove the invalid {{createImageOptions}} from the template and otherwise leave it as is for now. On OpenShift we build from source and most target nodes are amd64 anyway. Likely, that we make things worse defaulting to the current platform architecture if that's not the same as the target node's. > 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 > > 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)