-
Notifications
You must be signed in to change notification settings - Fork 105
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
Add envs parameter to compose up/config/run #380
base: master
Are you sure you want to change the base?
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
.env
file. This change will allow user the ability to pass a dictionary of variables to be injected into the compose subprocess.