-
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
Example bake file for custom docker builds #2140
Comments
Thanks for this idea @alwaysmpe,
I think the new recipe should work fine here. |
@mj0nez you might be interested in this issue, as it is a nice way to build your own set of images. |
Cool, I'll try to get to it soon. I've been playing/refining further and have worked out I don't need the submodule, bake can build from a git url directly, so even simpler to use. The submodule step was causing some confusion, different git clients each with their own way of handling submodules. |
What docker image(s) is this feature applicable to?
docker-stacks-foundation
What change(s) are you proposing?
I'm using these docker stacks built locally with python3.12, out of the box that's quite cumbersome to do. There are args for each dockerfile but these need to be built manually with custom arguments in the correct order.
To simplify this process, I've configured this repo as a submodule, I'm then using a bake file to automate the builds. So in my local repo users can run 2 commands and have a comparable config setup:
This use case is explicitly cited by the bake docs
How does this affect the user?
Makes using customized builds easier.
Anything else?
For my example use, see the bake file in my repo (the rest of the code is pretty hacked together stuff, I'm using it to teach basics of DSP).
Happy to create a PR but not sure if this would be better as a recipe/example or whether it's something that you'd want as part of your standard build process.
The text was updated successfully, but these errors were encountered: