docker healthcheck: check that noVNC is reachable (and node running)
This commit is contained in:
parent
3329d597b9
commit
3e3baa0d3e
2 changed files with 5 additions and 5 deletions
|
|
@ -93,8 +93,8 @@ ENV DEPTH=24
|
|||
# Show browser instead of running headless
|
||||
ENV SHOW=1
|
||||
|
||||
# mega-linter (KICS, Trivy) complained about it missing - usually this checks some API endpoint, for a container that runs ~1min a healthcheck doesn't make that much sense since playwright has timeouts for everything. Could react to SIGUSR1 and actually check something - for now we just check that node is running...
|
||||
HEALTHCHECK --interval=10s --timeout=5s CMD pgrep node
|
||||
# mega-linter (KICS, Trivy) complained about it missing - usually this checks some API endpoint, for a container that runs ~1min a healthcheck doesn't make that much sense since playwright has timeouts for everything. Could react to SIGUSR1 and check something in JS - for now we just check that node is running and noVNC is reachable...
|
||||
HEALTHCHECK --interval=5s --timeout=5s CMD pgrep node && curl --fail http://localhost:6080 || exit 1
|
||||
|
||||
# Script to setup display server & VNC is always executed.
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue