Repository navigation
Conversation
Signed-off-by: Alan Descoins <[email protected]>
|
It would be nice if it could read the .env format introduced by foreman. https://github.com/theskumar/python-dotenv |
|
Thanks @dekked! Any chance you could write docs and tests? |
|
Bikeshedding, but I'd prefer underscored ( |
|
👍 That's not bikeshedding, that's just right. ;) |
|
👍 As a temporary solution, I've been wrapping fig with a bash script that does |
|
Sure, I'll make the change and write docs/test as soon as I have time! Stay tuned :) |
|
In docker, |
|
👍 this would be really useful. |
|
I am having trouble getting this PR working on my laptop and am not sure what to look at. Here is the error I'm getting: Just an update, I got this figured out. I have a bad yml configuration, very silly mistake. For others that get this error here is what it should look like: |
|
Would it make sense to reverse the precedence so that env-file overrides environment? I find myself wanting a pattern where I can specify a default environment and then override it explicitly per command line. |
|
@asmundg This would be the opposite of Docker's behaviour, so I think it would be difficult to do that. |
|
This has been added in #665. Thanks anyway! |
I wasn't going to make PR until adding test, but it seems it would save people some work so in the meantime, here it is.
This adds support for the
env-filekey, with a path to a file in the same formatdocker run --env-filewould take. It can work together withenvironmentkey, meaning the variables defined in the file will be overriden by anythingenvironmentspecifies.