docker: shift HEALTHCHECK to helper
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
ee514e2da3
commit
106f59afa1
|
@ -13,4 +13,4 @@ USER 1000:1000
|
||||||
ENTRYPOINT ["/bin/sh", "/app/morss-helper"]
|
ENTRYPOINT ["/bin/sh", "/app/morss-helper"]
|
||||||
CMD ["run"]
|
CMD ["run"]
|
||||||
|
|
||||||
HEALTHCHECK CMD python -m morss.crawler http://localhost:${PORT:-8000}/ > /dev/null 2>&1
|
HEALTHCHECK CMD ["check"]
|
||||||
|
|
|
@ -12,6 +12,9 @@ elif [ "$@" = "reload" ]; then
|
||||||
kill -s WINCH $pid
|
kill -s WINCH $pid
|
||||||
kill -s TERM $pid
|
kill -s TERM $pid
|
||||||
|
|
||||||
|
elif [ "$@" = "check" ]; then
|
||||||
|
python -m morss.crawler http://localhost:${PORT:-8000}/ > /dev/null 2>&1
|
||||||
|
|
||||||
else
|
else
|
||||||
morss $@
|
morss $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue