Skip to content
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

bake: add named contexts keys #928

Merged
merged 4 commits into from
Feb 7, 2022

Conversation

tonistiigi
Copy link
Member

@tonistiigi tonistiigi commented Jan 25, 2022

fixes #926

Enable using named contexts in bake targets. The naming is consistent with build args, and --build-context and --build-arg are similar and both take key-value pairts.

Still working on creating contexts from other targets that is a bit complex. That can be a follow-up PR. Added to same PR. Targets can be linked with target: prefix.

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

@crazy-max crazy-max added this to the v0.8.0 milestone Jan 26, 2022
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Build context “target:<name>” will take the contents
from another bake target.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I played with your PR yesterday and I must say that's a nice way to handle target dependencies. Will be really useful.

Docs is fine too, thanks for this. Also our reference docs like the bake page starts to be huge. I will create a follow-up to see how we could improve that. We might need something like a cookbook to showcase real-world examples. Will see.

@tonistiigi tonistiigi merged commit 60a025b into docker:master Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bake: enable named contexts
2 participants