Uh oh!
There was an error while loading. Please reload this page.
add --skip-env-file option - #6850
Conversation
GordonTheTurtle
commented
Aug 14, 2019
Please sign your commits following these rules: $ git clone -b "feature/add_skip_env_file_option" git@github.com:hirochachacha/compose.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -fAmending updates the existing PR. You DO NOT need to open a new one. |
Fixesdocker#6741 Updates docker#6511 Signed-off-by: Hiroshi Ioka <hirochachacha@gmail.com>
b70e7ae to
04ce00aComparejonmchan
commented
Aug 27, 2019
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 |
alecgibson
commented
Aug 28, 2019
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 |
hirochachacha
commented
Aug 30, 2019
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 |
jonmchan
commented
Sep 1, 2019
I did start looking into checking docker-compose.yml for a I think though that reading from the |
jonmchan
commented
Sep 2, 2019
@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 |
esvm
commented
Sep 4, 2019
Some news about this? |
Quintasan
commented
Sep 9, 2019
Can we not merge this and revert to docker-compose ignoring lines from |
esvm
commented
Sep 9, 2019
Actually we have a lot of people with problems with the support of |
Quintasan
commented
Sep 9, 2019
@esvm I fail to understand why ignoring lines that do not conform to |
hirochachacha
commented
Sep 9, 2019
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
61e62dbCompareSigned-off-by: Hiroshi Ioka <hirochachacha@gmail.com>
61e62db to
cd9ddb4Compare
Yes, I'm hardlytheonlypersonthathasproblemswithdocker-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. |
jonmchan
commented
Sep 12, 2019
@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. |
hirochachacha
commented
Sep 13, 2019
Actually, I'm fine with any solutions. To be honest, I'm not much interested in this issue. |
CyrilHu
commented
Nov 8, 2019
Some news about this? |
hirochachacha
commented
Jan 25, 2020
It looks like docker-compose team made a great decision. #7150 |
willsheppard
commented
May 4, 2020
@jonmchan maybe reading the |
Daghall
commented
Jan 31, 2022
Workaround: |
glours
commented
Jul 13, 2022
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