Closed dreamPathsProjekt closed 2 years ago
Hey @dreamPathsProjekt !!
Thanks for your contribution addressing a significant limitation! It's very much appreciated.
The code changes look good to me! Would you mind updating the README as well to reflect the changes?
Hey @dreamPathsProjekt !!
Thanks for your contribution addressing a significant limitation! It's very much appreciated.
The code changes look good to me! Would you mind updating the README as well to reflect the changes?
Not a problem. You mean examples for how to use multiple reloaders and how to use strict container names in RELOAD_CONTAINER
?
Yes :)
Hey @apogiatzis Sorry to have responded this late. https://github.com/apogiatzis/docker-compose-livereloader/pull/13/commits/5abc46940f2249fb9ddcd957de235db5800ac804 addresses the documentation requests, by adding a more complicated example with reloaders routing and also servers as a good acceptance test, for the fixes proposed.
Note:
Images used in all examples, are referencing dreampathsprojekt/livereloader
which is the fork https://github.com/dreamPathsProjekt/docker-compose-livereloader version image containing the fixes. This is done, to be able initially to run all examples without issues.
dreampathsprojekt/livereloader
containing the fixes to validate.test/monitoring
to apogiatzis/livereloader
to verify faulty behaviour in previous image.apogiatzis/livereloader
preparing the PR to be merged. Or you can merge the PR and apply the changes afterwards, in a small PR yourself.Thanks again and sorry for the wait.
Hey @apogiatzis Sorry to have responded this late. 5abc469 addresses the documentation requests, by adding a more complicated example with reloaders routing and also servers as a good acceptance test, for the fixes proposed.
Note: Images used in all examples, are referencing
dreampathsprojekt/livereloader
which is the fork https://github.com/dreamPathsProjekt/docker-compose-livereloader version image containing the fixes. This is done, to be able initially to run all examples without issues.
- To run as PR review, run the scenarios with images as is
dreampathsprojekt/livereloader
containing the fixes to validate.- You can confirm fixes have been applied by changing all docker-compose image repos under
test/monitoring
toapogiatzis/livereloader
to verify faulty behaviour in previous image.- After Review comments, I can do a final commit to edit docs and docker-compose files to the finally built image repo
apogiatzis/livereloader
preparing the PR to be merged. Or you can merge the PR and apply the changes afterwards, in a small PR yourself.Thanks again and sorry for the wait.
This is great!!! Thank you very much for your contribution and response!
It looks and works great. Merging now.
Changelog
requirements.txt
to easily pin versions to docker image latest, for contributors. No side-effect upgrade, on the next docker build. Reflect this change, also, onDockerfile
.*reloader
would exist and arbitrarily chose the first on the container list returned. This had the following side-effects, when using volume mounts (workaround was to useRELOAD_DIR
):*reloader
)*reloader
containers.get()
instead ofcontainers.list()
(can get this byplatform.node()
, getting back the id from the container's hostname)RELOAD_CONTAINER
is used to target containers, thecontainers.list()
method is used to filter by name. Since this method is invokingdocker ps --filter name=
semantics, this had the following unwanted side-effects:docker ps --filter name=
does agrep
like search and might return back multiple items based on the name. No exact name is enforced. This meant that based on what container is at the 0 index of the returned list, the reloader might be targetting the wrong container.RELOAD_CONTAINER
value strictly at the beginning^/
and end$
of the word search.RELOAD_LABEL