I noticed docker compose is now telling me I can set COMPOSE_BAKE=true for "better performance".
Does anyone have any experience with this? Is it worth it? I get suspicious when a program tells me "just use this, it has better performance", but it's not the default.
I haven't used it myself, and I've only just learned about it through this post.
Reading through the docs, though, it seems more beneficial if you are on a team of people. Seems like it basically combines Compose and a custom run/build script into one idea.
Personally, for my solo projects, I will likely continue using just compose for multi-service projects and basic
docker runfor stupid stuff. Unless I'm missing something, it doesn't seem like there is too much of a benefit with Bake if you're solo. It just adds more config files and json to your project IMO.They even state as much in the introduction:
Reading the docs a little can go a long way in understanding. My bad, didn't seem like you had read up on it.
ETA: Thinking on it more, it seems less useful to implement unless your project is 100% inside Docker. If you need to do other things besides build a Docker image or two from a compose file, it is much easier to accomplish what you need through a bash script that can interact with more than just Docker. Even if I did implement this, I'm going to end up wrapping the bake commands with a bash script any way.
save