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

Fix env file resolution #1099

Merged
merged 2 commits into from
Mar 13, 2015
Merged

Conversation

aanand
Copy link

@aanand aanand commented Mar 12, 2015

Environment variable file paths should be considered relative to the compose file, not to the current directory. These are usually the same, unless the user specifies an alternate one in a different directory with -f.

if k in override:
d[k] = override[k]

return d
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this (merge_service_dicts) isn't used yet. I guess this was pulled in from the other branch?

@dnephin
Copy link

dnephin commented Mar 13, 2015

I like it

What about host volume binds with relative paths? Do you plan on addressing those in a separate branch? It seems like volume paths should probably also be relative to the docker-compose.yml to be consistent.

@aanand
Copy link
Author

aanand commented Mar 13, 2015

Yes, good point. I'll update it so volume paths are treated similarly.

(That's going to be fun, because we expand ~ and environment variables in volume paths.)

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
@aanand
Copy link
Author

aanand commented Mar 13, 2015

After some thought, I'm going to do volume paths separately. This is rebased and ready to go.

@bfirsh
Copy link

bfirsh commented Mar 13, 2015

LGTM

bfirsh added a commit that referenced this pull request Mar 13, 2015
@bfirsh bfirsh merged commit dae4510 into docker:master Mar 13, 2015
@bfirsh bfirsh added this to the 1.2.0 milestone Mar 13, 2015
yuval-k pushed a commit to yuval-k/compose that referenced this pull request Apr 10, 2015
Fix env file resolution
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
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 this pull request may close these issues.

None yet

3 participants