-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Prototype using docker buildx bake #1604
Conversation
It seems to run a bit faster and I think the introduction of the |
@romainx before you put too much effort, please, take a look here: I think the solution of many of our problems requires different approach and I described it there. |
@mathbunnyru thanks for the heads-up. However, I don't think this change is incompatible with what you intend to do. I see this as a step in this direction by standardizing some code. So I would like to finish it if you don't mind, I think the effort is not too important. Then we will choose if we want to merge it or not. |
Sure, proceed as you wish :) |
@mathbunnyru I've put my conclusions in the PR description. It appears that managing tags this way in our very dynamic tagging policy is difficult. |
So this is an optimization to let our build command, when using multi platform builds, run the multi-platform build more effectively - but still do it with one single process, running in a single github workflow's job? I'm understanding it as this is an optimization that we can't benefit from if we try to do standalone jobs to build amd64 and arm64 in parallell in different github CI jobs. Is that correct? If so, I'm quite hesitant to increase the complexity further with this strategy. |
@consideRatio if we decide to split the image workflow by platform we will still benefit from this optimization because it permits to build all the images of the stack in a single build instead of launching 8 builds on after the other in a loop. So the build engine can optimize some steps, do stuff in // and save initial start and load times.
I'm not sure it increases the complexity, it's a standard way to define how we build the images. |
According to your feedbacks I'm closing this PR. Thank you for your time @mathbunnyru and @consideRatio. |
Hello,
Before going further #1585 on I wanted to give a try to
docker buildx bake
.My inspiration comes from the Official Jenkins Docker image repository.
Conclusion
Pros
make print/<image short name>
.Cons
docker-backe.hcl
hcl
file (if not thebuild bake
complains).push
mechanism.Example of tagging function and its usage.
I'm unsure if we should merge or not this PR just to save time and resources without having tags managed in this way 😕.
In any case it was interesting at least for me, and I hope it will open new possibilities or axis of improvements.
@consideRatio and @mathbunnyru do not hesitate to share your feedback.
Best.