Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. Is that true though? :-) I was under the impression that the CLI did not allow specifying an alternative
docker-compose
file. Did you test, did it work? Here's what I just got:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I did:
I made a version 2 which worked, and tried specifying a file that did not exist (3).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah....no it doesn't. I still had my original docker-compose.yml in place, and it was picking up that. It just ignores the option if it finds your compose. :-(
That's a real shame, as I just told a user it worked. :-(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even so, it's puzzling that it did not complain about the contents of the Dockerfile-- perhaps the original docker-compose.yml file was pointing to a different Dockerfile, or not requiring one (image
instruction).There is a CLI issue for alternative
docker-compose
file names to be implemented: #1142Edit: it's not really that puzzling, thinking about it; :-) but the CLI should have complained that the
--dockerfile
option was being ignored.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It definitely should complain.