-
Notifications
You must be signed in to change notification settings - Fork 408
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
Multi-platform build targeting both amd64 and arm64 #605
Comments
Yeah, this is a known annoyance. Some discussion and prototyping in #475 Tekton also does this, to combine distroless and a Windows base image as a pre-step, but it's definitely annoying. I think we could figure out how to make it work in ko directly. |
Actually: Does this work for you?
If distroless/static supports armv5 I'd expect this to work. |
@imjasonh Thank you, that seems to work! So if I read this PR correctly I'm supposed to provide the ARM instruction set as part of the platform, #239 - but that leads to a base image that is not included in the distroless/static metadata? So to solve this I can configure the build to target |
You can specify Since distroless only currently provides a generic If you want to support |
This issue is stale because it has been open for 90 days with no |
What are you trying to do?
Trying to set up a build to output multi-platform images for both
linux/arm32v5
andlinux/amd64
for the same main entrypoint.I can configure one or the other by changing the default base image between
gcr.io/distroless/static
andgcr.io/distroless/static:latest-arm64
, but that requires changing the base image configuration between the build steps.What did you expect?
Lacking a distroless/static image that supports all platforms, the ability to configure different base images for different platforms in the same build.
The text was updated successfully, but these errors were encountered: