Merge "Make health checks more frequent in Docker"
This commit is contained in:
commit
73f8dafd82
|
@ -129,7 +129,7 @@ ONBUILD RUN \
|
|||
-o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' \) \) \
|
||||
\) -exec rm -rf '{}' +
|
||||
|
||||
ONBUILD HEALTHCHECK --interval=5m --timeout=3s \
|
||||
ONBUILD HEALTHCHECK --interval=5s --timeout=2s \
|
||||
CMD python3 health_check.py || exit 1
|
||||
|
||||
ENTRYPOINT ["/sbin/tini", "-s", "--"]
|
||||
|
|
|
@ -33,7 +33,8 @@ start.sh
|
|||
|
||||
health_check.py
|
||||
This file will be used for checking the status of the application running in
|
||||
the container. It will be useful for container orchestration like Kubernetes
|
||||
the container. It should be used to inform Docker that service is operating
|
||||
and healthy. It will be useful for container orchestration like Kubernetes
|
||||
or Docker Swarm to properly handle services that are still running but
|
||||
stopped being responsive. Avoid using `curl` directly and instead, use
|
||||
`health_check.py` written with specific service in mind. It will provide more
|
||||
|
|
Loading…
Reference in New Issue