The current Docker image is great. But I think it could be even better. How? Incorporating a simple HEALTHCHECK. Right now, a ‘docker ps’ will show that the process is running, but Docker has no notion of whether the process is healthy.
I’d propose with starting simple… a one-liner just to see if the service is listening on port 8123/tcp and offering a non-error http response. Over time this could be replaced with a shell script that performs a more comprehensive suite of tests.
The value? Running a ‘docker ps’ will report back not just that the container is running, but that it is still starting up, that it is healthy, or that it is unhealthy. This is really quite useful for more sophisticated orchestration around the container.
I’ve got the git repo forked now and I just took more time writing this than I’m likely to take implementing it. If accepted, this will be my first contribution to the project so please be compassionate with course corrections.