The docker-setup sample hook seemed a bit lackluster compared to other hook examples. Here is my idea how it can be improved.
It's using root user since this is what "default rails Docker" is using.
It's idempotent, when network already exists (or not could not be created for some reason) it just prints error to stdout that is only visible with --verbose flag.
The
docker-setup
sample hook seemed a bit lackluster compared to other hook examples. Here is my idea how it can be improved.It's using root user since this is what "default rails Docker" is using. It's idempotent, when network already exists (or not could not be created for some reason) it just prints error to stdout that is only visible with --verbose flag.