Skip to content

multiarch images #199

@DaPutzy

Description

@DaPutzy

For ease of use it would be handy to provide muliarch images, i.e. additionaly to linux/x86_64 i would appreciate linux/arm64/v8.

For reference: https://docs.docker.com/build/ci/github-actions/multi-platform/

For example when using the fabric8 maven plugin it would simplify the configuration from:

<plugin>
    <groupId>io.fabric8</groupId>
    <artifactId>docker-maven-plugin</artifactId>
    ...
    <configuration>
        <images>
            <image>
                <name>openapi-examples-validator</name>
                <build>
                    <from>codekie/openapi-examples-validator:6.0.3</from>
                    <createImageOptions>
                        <platform>linux/x86_64</platform>
                    </createImageOptions>
                </build>
                <run>
                    <platform>linux/x86_64</platform>
                    ...
                </run>
            </image>
        </images>
    </configuration>
</plugin>

to:

<plugin>
    <groupId>io.fabric8</groupId>
    <artifactId>docker-maven-plugin</artifactId>
    ...
    <configuration>
        <images>
            <image>
                <name>codekie/openapi-examples-validator:6.0.3</name>
                <run>
                    ...
                </run>
            </image>
        </images>
    </configuration>
</plugin>

when running on non x64 hardware (e.g. apple silicon macbook).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions