-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Consider a very shallow 'buildx' "emulation mode" #11130
Comments
First let's look at the easiest and make build and buildx synonyms. |
What does the --load option do? We are adding some features of buildx into buildah such as the RUN --mount options. |
Regarding
So basically what |
It would seem that we need to add a command then buildx and have it screan out certain commands and call what podman build calls. |
Yep, that's why I've thrown it into the |
I actually just updated the PR with some clever (In my opinion) changes to get you what you want, without us having to formally state we support buildx. |
kind uses e.g. kubernetes-sigs/kind@6d5ec59#diff-879e8c18c989850cae30c8983a392d6472e6df2f893ac8c576dd0762a572c5d8
I think using buildah will only work for the "quick" build (for the local arch only), but not for the base image (just yet, anyway) ?
EDIT: Added an issue for it (i.e. multi-arch with --platform), in case it becomes more common now: #11156 It doesn't actually work with Docker either (only with BuildKit), but could use a better errror in Podman docker buildx build (--platform) docker buildx build (--load) So it's fine to not support multi-arch (i.e. until Buildah does), it just needs to say so with an error message. |
(some semi-related side information) Both kubernetes and minikube have switched from Docker (build) to BuildKit (buildx), to be able to build multi-arch more easy. Before it would use multiple separate builds from Then there are some more trivial flags like It is possible to use BuildKit without Docker, we do this ( When using the cri-o container runtime, we just call Normally we would just rely on CRI and |
@afbjorklund I agree this only works for the "quick" local build of the image. I thought it'd be neat to support that though, as it unlocks being productive working on Kubernetes (through |
I suppose you could ask kind to run There are also a bunch of pre-requirements for it, that are hidden in the setup script (experimental CLI, creating a builder, etc) |
The PR from @rhatdan is merged so I think this can be closed. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
Steps to reproduce the issue:
Run any
docker buildx build
script/command and see it fail. In my case, I'm trying to runkind build node-image
using thepodman
provider (docker
not installed at all)Describe the results you received:
The command fails immediately.
Describe the results you expected:
I kind of expected
podman
to at least rudimentary supportbuildx build
in that it is able to output builds for a specific platform the same way thatbuildx
is. Buildah doesn't quite support the entire set of options onbuildx
just yet (see containers/buildah#3268), but for very simple scenarios, we should be able to fairly easily bridge the gap.In fact, I was able to get the Kubernetes build (what runs as part of
kind build node-image
) to function just fine by adding the following bits to the/usr/bin/docker
bridge script:They basically drop
buildx
so thatbuild
is called directly and also drop the "redundant"--load
parameter (which podman doesn't know but it's its default).I'm wondering if others would find this useful as well, hence leaving it here as a feature request. Happy to send a PR if y'all think this'd be useful in general.
The text was updated successfully, but these errors were encountered: