-
Notifications
You must be signed in to change notification settings - Fork 5.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
Introduce a new env var "COMPOSE_DOCKER_CLI_BUILD_EXTRA_ARGS" #7296
Introduce a new env var "COMPOSE_DOCKER_CLI_BUILD_EXTRA_ARGS" #7296
Conversation
which allows one to pass arbitrary arguments in the docker command invocation. Signed-off-by: Moriyoshi Koizumi <mozo@mozo.jp>
Only note, to be conistent with |
Please merge!! Like many others we want to use |
Any progress update on this PR? 🤔 |
Workaround: COMPOSE_DOCKER_CLI_BUILD=1 docker-compose build {app-name-that-uses-build-kit} Also here is my Docker daemon config: {
"debug": true,
"experimental": true,
"features": {
"buildkit": true
}
} |
That workaround doesn't help with
But neither of them help with the fact the argument list is hardcoded (see Lines 1790 to 1803 in 440c94e
--ssh .
|
I don't think we should implement this; this would be a global option, which means that in a compose-file that has multiple |
#7046 might still be the way forward, but might need to be proposed in https://github.com/compose-spec/compose-spec |
Would love to see this merge request put in! |
I filed compose-spec/compose-spec#81 to continue the compose-spec discussion there. |
I'd very much prefer to see this in the |
Passing a different key to each build sounds pretty much unusual to me. As for the compatibility, I don't think the build will be broken if And in case the behavior is undesirable, one can always choose not to use the option at all. |
Lets get this merged in guys, any devs know why the build it failed? |
I do not think that this is the best solution. |
@thaJeztah how can we get a definitive decision? If we definitely don't want this, should we close this PR to avoid confusion? And people spending time on it?
I agree, this is a good suggestion. Looks like maybe we should either discuss further on that issue or file a new issue (as that issue is specifically about secrets, and this PR is about passing any flags you like). |
When can we expect to have this feature done or is there something we can support to speed up the process? |
Thanks for taking the time to create this issue/pull request! Unfortunately, Docker Compose V1 has reached end-of-life and we are not accepting any more changes (except for security issues). Please try and reproduce your issue with Compose V2 or rewrite your pull request to be based on the v2 branch and create a new issue or PR with the relevant Compose V2 information. |
This patch allows one to pass arbitrary arguments in the docker command invocation through
COMPOSE_DOCKER_CLI_BUILD_EXTRA_ARGS
.Resolves #7025.