-
Notifications
You must be signed in to change notification settings - Fork 51
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
Use a custom docker-file.override.yml
#158
Conversation
docker-file.override.yml
docker-file.override.yml
Isn't it easier to always have a |
Agree with @se7entyse7en let's test if empty |
tested. version: '3.2' Because it's a valid Will it satisfy your suggestion @smacker @se7entyse7en ? |
Sure, my definition of empty was actually empty-ish. 😛 |
Good. If it makes the code simpler let's use it. |
Done @se7entyse7en @smacker |
Thanks for your deep review @smacker |
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.
nice. Much simpler.
Sorry for the delay, I'm gonna have another look 👍 |
Great! |
Code looks ok. Before merging I'd like to ask if there are any other alternatives that you considered. |
I discarded both because I felt the developer experience using the "main override" will be more natural, and it could avoid extra steps when changing between workdirs and such. Once the development mode is enabled, filling the For sure, the same thing can be achieved in some different ways, but what I thought about both alternatives is explained below
|
When initializing a workdir, it will be linked the default docker-compose.override.yml file, that could be used to override sourced config. If the default docker-compose.override.yml is deleted, it will be restored everytime an init command is run, same as it is currently done with the main docker-compose.yml. Signed-off-by: David Pordomingo <[email protected]>
blocks src-d/sourced-ui#221
required by #26
In order to use the default feature of Docker Compose to automatically load an extra
docker-compose.override.yml
file (docs multiple-compose-files), if this PR is accepted, it will be created a default (empty)docker-compose.override.yml
, that will be linked in the workdirs (as done with the activedocker-compose.yml
)The default
docker-compose.override.yml
is generated using the same version than the activedocker-compose.yml
Usage:
~/.sourced/compose-files/__active__/docker-compose.override.yml
is modifiedsourced restart
I think we can consider this as an internal feature (not documented), used for people willing to manually modify the
~/.sourced/compose-files/__active__/docker-compose.yml
, that is also not documented.