Skip to content
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

Multiarch Docker image #1419

Closed
theBNT opened this issue Aug 26, 2024 · 3 comments
Closed

Multiarch Docker image #1419

theBNT opened this issue Aug 26, 2024 · 3 comments
Assignees

Comments

@theBNT
Copy link
Contributor

theBNT commented Aug 26, 2024

hi,

is it possible to create a multi-arch docker image by e.g. using buildx at

docker build -t ${APPLICATION}:${VERSION} .

Maybe its sufficient to build via:

docker buildx build --platform=linux/amd64 -t ${APPLICATION}:${VERSION} .

Im using this image as a base-image for giantswarm/devctl#1047 and i get the warning on a windows system using docker desktop:

1 warning found:
 - InvalidBaseImagePlatform: Base image quay.io/giantswarm/kubectl-gs was pulled with platform "linux/386", expected "linux/amd64" for current build (line 1)
Base image platform does not match expected target platform

Probably linux/386 is some default but outdated anyway?

Looking at quay i could not find information regarding arch:

https://quay.io/repository/giantswarm/kubectl-gs/manifest/sha256:02c628b7245ec7cdd4e3618a7112026720a2c25f2e5f4c7371cced3c17953636

It also doesnt help to use --platform=${BUILDPLATFORM} in the Dockerfile or --platform=linux/amd64 in the commandline.

@ljakimczuk
Copy link
Contributor

Hey @theBNT, it seems the linux/386 is your platform, for as far as I can tell, the kubectl-gs has already been built for the linux/amd64, you can check that by inspecting it after pulling like:

> docker inspect quay.io/giantswarm/kubectl-gs:latest
[
    {
        ...
        "Architecture": "amd64",
        "Os": "linux",
        ...
    }
]

I'm checking the possibility to leverage the multi-arch build to provide the linux/386.

@ljakimczuk
Copy link
Contributor

@theBNT I updated the pipelines to build both, thelinux/amd64 and the linux/386 images, both going to be available from the next release onward.

@theBNT
Copy link
Contributor Author

theBNT commented Nov 25, 2024

just as a quick feedback, build runs without errors now on my end, thanks a lot!

@teemow teemow added this to Roadmap Jan 15, 2025
@github-project-automation github-project-automation bot moved this to Inbox 📥 in Roadmap Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants