fabric8io/fabric8-maven-plugin

multi-arch image with different native architecture giving issues

Closed this issue · 1 comments

Description

We are using io.fabric8 maven plugin version 0.40.2
trying to build multiarch image, but of different architecure ,
our build machine architecture is amd64 and our requirement is to build arm only not both, this is because
both architecrures have different binaries to considr and copy, because of this we need to generate
two different images,

In our pom we are using

                                    <buildx>
                                        <platforms>
                                            <platform>linux/arm64</platform>
                                        </platforms>
                                    </buildx>

but our build machine architecture is amd64, accoring to documentation
If the element contains a single platform, that image will be built.

so i am expecting if single paltform it should build but we are seeing
[INFO] DOCKER> Native platform not specified, no image built`

according to your documentation if we have more than one platfor to build need native platform as mandaroty ,

Can you please explain why we are seeing error?

Also is there is any possibility to build multi architecture images with more than pone platform with differnt binaries for different
images, is it possible with fabric8

Info

  • f-m-p version : 0.40.2
  • Maven version (mvn -v) : Apache Maven 3.8.
our image tag is like below

<image>
                                    <name>${registry.artifactory}/docker-slim-ubi8-arm64:${project.version}</name>
                                    <alias>docker-slim-ubi8-arm64</alias>

                                    <build>
                                        <nocache>true</nocache>
                                        <optimise>true</optimise>
                                        <cleanup>true</cleanup>
                                        <buildx>
                                            <platforms>
                                                <platform>linux/arm64</platform>
                                            </platforms>
                                        </buildx>
                                        <createImageOptions>
                                            <platform>linux/arm64</platform>
                                        </createImageOptions>
                                        <assembly>
                                            <basedir>/usr/local/openshift</basedir>
                                            <mode>dir</mode>
                                            <descriptor>${project.basedir}/src/main/assembly/assembly-openshift-arm64.xml</descriptor>
                                        </assembly>
                                        <contextDir>${project.basedir}/src/main/docker/arm64</contextDir>
                                        <tags>
                                            <tag>${project.version}</tag>
                                        </tags>
                                    </build>
                                </image>
  • Kubernetes / OpenShift setup and version :
  • If it's a bug, how to reproduce :
  • If it's a feature request, what is your use case :
  • Sample project : [GitHub Clone URL]

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!