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

No support for buildx build --build-context ... #439

Closed
bigcat2014 opened this issue May 2, 2023 · 1 comment · Fixed by #440
Closed

No support for buildx build --build-context ... #439

bigcat2014 opened this issue May 2, 2023 · 1 comment · Fixed by #440

Comments

@bigcat2014
Copy link
Contributor

Background

https://github.com/docker/buildx/releases/tag/v0.8.0

Build command now accepts --build-context flag to define additional named build contextes for your builds. For example, these can be used expose additional local directories to your build or pin an image to a specific digest. This feature requires using Dockerfile 1.4+ frontend. docker/buildx#904 Documentation

Changes

Add --build-context arg for BuildxCLI

def build(
        self,
        ...
        build_contexts: Dict[str, str] = {},
    )...
...
full_cmd.add_args_list("--build-context", format_dict_for_cli(build_contexts))
@gabrieldemarmiesse
Copy link
Owner

Thanks for creating the issue. This is a cool feature and a welcomed one. If anyone wants to make a pull request, I'll gladly review it :)

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 a pull request may close this issue.

2 participants