Skip to content

Add Docker healthcheck backed by Discord gateway state - #8

Merged
nextinfinity merged 4 commits into
mainfrom
add-docker-healthcheck
Sep 26, 2026
Merged

nextinfinity merged 4 commits into
mainfrom
add-docker-healthcheck

Conversation

@nextinfinity

@nextinfinity nextinfinity commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add a loopback-only /health endpoint using the JDK HTTP server: HTTP 200 only when the running JDA client reports CONNECTED, otherwise 503.
  • Install curl explicitly in the runtime image and use it for the Docker probe. No Java probe helper, bot credentials in probes, or extra Discord sessions.
  • Check every 30 seconds with a 5-second Docker timeout, 4-second curl timeout, 60-second startup grace period, and three consecutive failures before unhealthy. Bypass proxies for the local request.
  • Document scope and reconnect behavior (including that Docker health status does not itself restart containers).
  • Automated tests are deferred to a follow-up holistic test evaluation.

Validation

  • ./gradlew shadowJar passes on JDK 25.
  • git diff --check passes.
  • Docker is unavailable locally, so container execution was not tested. No live Discord token was used.

@nextinfinity
nextinfinity merged commit 57b6134 into main Sep 26, 2026
5 of 6 checks passed
@nextinfinity
nextinfinity deleted the add-docker-healthcheck branch September 26, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant