Skip to content

add docker/buildx compatible tags #1379

Closed as not planned
Closed as not planned
@LuckyTurtleDev

Description

@LuckyTurtleDev

Checklist

Describe your request

Since buildx exist out of docker image it would ideal to be used in the Docker From step inside a builder, to build mutliplatform images.
For this you must choose an different image tag for each platform. Docker/Buildx allows you to use environments variables like TARGETPLATFORM inside the from step. The problem is that docker does not allow to use function here. So there is no way to map TARGETPLATFORM to the needed rust tool chain.

Adding additional tags like musl-linux/arm64, musl-linux/arm/v7", etc would allow to use it as builder:

From --platform=$BUILDPLATFORM ghcr.io/rust-cross/rust-musl-cross:musl-$TARGETPLATFORM as builder

Describe why this would be a good inclusion for cross

It allows to use cross to build multiplatforms docker images without using DiD.
Hit this issue at ankitects/anki#2798, so currently only linux/amd64 is supported.

Maybe an solution for #1104

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions