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

Support multiple build contexts in x-bake #1107

Closed
ciaranmcnulty opened this issue May 10, 2022 · 2 comments · Fixed by #1256
Closed

Support multiple build contexts in x-bake #1107

ciaranmcnulty opened this issue May 10, 2022 · 2 comments · Fixed by #1256
Labels
area/bake kind/enhancement New feature or request

Comments

@ciaranmcnulty
Copy link

I can't see any way to do this in the docs / compose-test.go

@ciaranmcnulty
Copy link
Author

ciaranmcnulty commented May 13, 2022

I guess this is maybe something compose should implement? I've opened a ticket there but an interim x-bake solution would be excellent

@basicdays
Copy link

Just ran into this too. The x-bake extension handles a bunch of other bake related config parameters, but the docs seems to be missing this one.

Not sure how long docker/compose#9461 will take, so at least having a way to pass through values from the compose file to the build would be extremely helpful.

The way the announcement on the Docker blog was worded, I would have expected Docker Compose files under bake to also support multiple build contexts. See wording under heading "Named Contexts in buildx bake" at the blog post.

Currently working around this by duplicating build configs in an hcl file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bake kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants