buildah
buildah copied to clipboard
[RFE]: Add support for `buildx bake` command
Docker supports higher-level builds using the buildx bake
command. The command introduction page provides a good overview about the use-cases enabled by this command:
Buildx also aims to provide support for high-level build concepts that go beyond invoking a single build command. We want to support building all the images in your application together and let the users define project specific reusable build flows that can then be easily invoked by anyone.
BuildKit efficiently handles multiple concurrent build requests and de-duplicating work. The build commands can be combined with general-purpose command runners (for example,
make
). However, these tools generally invoke builds in sequence and therefore cannot leverage the full potential of BuildKit parallelization, or combine BuildKit’s output for the user. For this use case, we have added a command calleddocker buildx bake
.
Personally, I'm mostly interested in this command because it allows getting rid of various hackish scripts and make
files and replaces them with a single command: buildah builx bake
.
That being said, the command is still experimental in Docker and has a pretty big API surface (lots of flags and config options) so it might not be trivial to support it in buildah. But I think even a simplified version of this command that only covers the basic stuff could still provide a lot of value to buildah/podman users.
Sure interested in opening some PRs to start building it.
A friendly reminder that this issue had no activity for 30 days.
Can't resist a joke. But since Docker does not support this, does that mean it is half baked? :^)
A friendly reminder that this issue had no activity for 30 days.
How does one specify what you want to bake? Multiple Containerfiles?
here is a good example of its usage: https://github.com/crazy-max/xgo#build
git clone https://github.com/crazy-max/xgo.git xgo
cd xgo
# Build xgo image and output to docker with xgo:local tag
docker buildx bake
# Tests
BASE_IMAGE=xgo:local docker buildx bake test-c
BASE_IMAGE=xgo:local docker buildx bake test-cpp
BASE_IMAGE=xgo:local docker buildx bake test-gorm
# Create xgo artifacts in ./dist
docker buildx bake artifact-all
@flouthoc PTAL
A friendly reminder that this issue had no activity for 30 days.
A friendly reminder that this issue had no activity for 30 days.
@umohnani8 We might want to look at something like this after podman farm build.
Wouldn't it make sense to point buildkit to the podman socket at some point? I fear it's not that sustainable to chase buildkit which is evolving very rapidly. Similar to podman compose
, a hypothetical podman buildx
would call buildkit but point it to the podman socket.
That would allow to focus on the REST API.
watching this.
A friendly reminder that this issue had no activity for 30 days.
Great feature, we have a pipeline to build 20+ targets, it will help
A friendly reminder that this issue had no activity for 30 days.
Also find this one valuable. We have functionality relying on docker buildx Bake
and we'd like to move to Buildah and Podman but have been hesitant due to this lack of functionality.