Add envs parameter to compose up/config/run#380
Add envs parameter to compose up/config/run#380lugoues wants to merge 1 commit intogabrieldemarmiesse:masterfrom
Conversation
6c49ed4 to
e3dd810
Compare
|
Thanks for the pull request, that parameter should be added to the client constructor, similarely to other compose parameters like the file path or project name. Thanks! |
e3dd810 to
87fa696
Compare
I had avoided adding it to the client as it is not a flag and all the supporting code only deals with flags. The method I would take to implement this would be:
This begs the question, would we want to support the |
|
Similar to how we use "self.docker_compose_cmd" in every call to compose, we should use "self.docker_compose_envs". Because compose commands parse the compose file to understand what is available and how to behave with services, we should passe it to all commands. For a better user experience, we wouldn't want the user to specify those environement variables every time. Just once in the DockerClient constructor seems fine :) Similar to all the other compose flags |
f71c924 to
68e1e7f
Compare
68e1e7f to
00ed204
Compare
00ed204 to
8fdf961
Compare
|
any news on this? |
|
Hey, yeah. I have most of it done but life/work he's eating my time. I hope to
finish it soon. Sorry for the delay!
…On Mon, Dec 19, 2022 at 14:34 Tim Richardson ***@***.***> wrote:
any news on this?
—
Reply to this email directly, view it on GitHub
<#380 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC27ARMNET6KZVEESX6TWLWOC2DHANCNFSM6AAAAAARYUE53I>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
Thanks for the work... any news? |
Docker compose allows variable injection from the process environment in addition to a
.envfile. This change will allow user the ability to pass a dictionary of variables to be injected into the compose subprocess.