reduce healthcheck times
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5af569161e
commit
03f34d9fc8
@ -35,6 +35,6 @@ USER app
|
|||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD /usr/local/bin/healthcheck.sh
|
HEALTHCHECK --interval=10s --timeout=3s --retries=3 CMD /usr/local/bin/healthcheck.sh
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
CMD []
|
CMD []
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
URL=http://localhost:80/alive
|
URL=http://localhost:8080/alive
|
||||||
|
|
||||||
wget --quiet --tries=1 --spider ${URL}
|
wget --quiet --tries=1 --spider ${URL}
|
||||||
[ $? -ne 0 ] && exit 1
|
[ $? -ne 0 ] && exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user