-
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
add --skip-env-file option #6850
add --skip-env-file option #6850
Conversation
Please sign your commits following these rules: $ git clone -b "feature/add_skip_env_file_option" [email protected]:hirochachacha/compose.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f Amending updates the existing PR. You DO NOT need to open a new one. |
Fixes docker#6741 Updates docker#6511 Signed-off-by: Hiroshi Ioka <[email protected]>
b70e7ae
to
04ce00a
Compare
Though this PR is a step in the right direction. I don't think it addresses the fundamental need that some projects need docker to not evaluate |
I'm not really sure this fixes #6741. It's not really that different to having a separate (empty) Docker I think the whole point of the issue is that Docker is being a bit too over-eager with its defaults (ie I'd expect the default to not read anything, and if we have a Obviously that's all a breaking change, so I'm not really sure what to suggest, apart from the original suggestion in the issue where we can specify |
Hi, @jonmchan @alecgibson Thank you for your comments.
It's true that this CL doesn't implement the yaml part, but I have a reason. Let me explain.
This is an excerpt from the output of
I'd say it's better to focus the problem 1 on the issue, and we could make another issue or proposal for the problem 2. The problem 2 is general problem, which presumably require widely discussions.
The result is the same, but I think it's more understandable. At least, you don't have to create empty .env, also your colleagues don't have check the .env.
Maybe, but I don't think it's going to happen soon. I assume it requires a kind of major version upgrade.
Yes, it's a possible solution. I'd like to note that it can coexist with this one. I'd say it's nice there is a solution without |
I did start looking into checking docker-compose.yml for a I think though that reading from the |
@hirochachacha btw, i want to let you know i did read your reply and i acknowledge your approach and what you're trying to do; the point I am trying to reiterate is that long term, it doesn't make sense for a project that wants to ignore |
Some news about this? |
Can we not merge this and revert to docker-compose ignoring lines from |
Actually we have a lot of people with problems with the support of |
@esvm I fail to understand why ignoring lines that do not conform to |
Previous behavior was a bug, that was out of spec. If you try to revert that behavior on purpose, you don't just solve your problem, but also make that behavior be in spec. That strange spec could be problematic for people in future. Changing the spec just for working around your issue? I'm not sure that whether you deserve it or not. |
Btw, I found that
They're using environmental variable instead of CLI parameters. |
d2ed869
to
61e62db
Compare
Signed-off-by: Hiroshi Ioka <[email protected]>
61e62db
to
cd9ddb4
Compare
Yes, I'm hardly the only person that has problems with docker-compose fixing this bug. Please note that docker-compose is not the only application in the entire world that is using this file as mentioned here. And to address the last part of your reply - I don't deserve anything. I don't think any person in the thread reporting the issue deserves anything. You are free to run your project in any way you want. Since you decided to let your users raise issues with the software I'm free to raise the issue of docker-compose breaking my workflow in many application (which, I unfortunately can't show you since they are not my IP) and to politely disagree with you. If you felt offended by any of my statements then I'd like to apologize - it was not my intention to offend anyone. |
@hirochachacha - using pipenv's approach sounds like a favorable compromise. Although users won't be able to have project specific settings, I suspect that most people will not be working with multiple projects that utilize docker env and other projects that do not on the same system. |
@Quintasan I think you should understand the fact this is a very minor issue, even though that's contrary to your intuition and your observation. I guess that's the reason this issue is still open. That's why "de facto standard" approach doesn't make sense to me. @jonmchan Thank you for your feedback. If users want project specific settings, they could use other tools like |
@hirochachacha Okay, let me put things together:
If this issue is minor (as you said it) then why the adamant refusal to adopt the behaviour that would result in the smallest amount of breakage and would still give you the result you wanted? This hardly makes any sense. |
Actually, I'm fine with any solutions. To be honest, I'm not much interested in this issue. |
Some news about this? |
It looks like docker-compose team made a great decision. #7150 |
@jonmchan maybe reading the |
Workaround: |
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. |
Fixes #6741
Updates #6511