-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add buildx compatible tags #133
Comments
2 tasks
anything new? |
How are you solving this, I am trying a single Dockerfile (not very efficient, trying to find better ways) with something like:
|
This would mean building every platform for every platform. This means you have to compile it platform-times^2 often. This sound like a bad idea. I was able to compile without using cross see https://github.com/LuckyTurtleDev/docker-images |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This docker-images 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 does provide the option to use docker Args linke
TARGETPLATFORM
here. Which are created by buildx.So you can modifiy the
From
step like this:The problem is that
TARGETPLATFORM
platform does not match the name of the rust toolchain. Instead it has values likelinux/amd64
,linux/arm64
,linux/arm/v7
. Sadly docker does not allow to use a function here, also variables for previous build steps can not be used, so they is currently no way to map this values to the required toolchain.My suggestion is to add additional
linux/amd64
,linux/arm64
,linux/arm/v7
, etc tags, soTARGETPLATFORM
platform can be used directly.The text was updated successfully, but these errors were encountered: