Skip to content

chore: add HEALTHCHECK to service Dockerfiles and smoke test in CI - #3429

Draft
ascariandrea wants to merge 1 commit into
mainfrom
fix/CI-docker-smoke-test
Draft

chore: add HEALTHCHECK to service Dockerfiles and smoke test in CI#3429
ascariandrea wants to merge 1 commit into
mainfrom
fix/CI-docker-smoke-test

Conversation

@ascariandrea

Copy link
Copy Markdown
Collaborator

Add HEALTHCHECK instructions to api, agent, web, and admin production stages so Docker/Kubernetes can probe container health at runtime. Also load built images into the local daemon during CI and run a quick smoke test (node --version) to verify the image is functional before pushing.

Add HEALTHCHECK instructions to api, agent, web, and admin production
stages so Docker/Kubernetes can probe container health at runtime. Also
load built images into the local daemon during CI and run a quick smoke
test (node --version) to verify the image is functional before pushing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ascariandrea ascariandrea self-assigned this Mar 17, 2026

@ascariandrea-zeroclaw ascariandrea-zeroclaw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings:

  • agent.Dockerfile line 40: HEALTHCHECK uses curl while api/web/admin use wget. The agent production base (liexp-base:24-latest) may not include curl — verify or unify to wget.
  • release-please.yml line 168: Smoke test runs for all services (including worker/ai-bot) but only checks node --version, which doesn't verify app functionality beyond the runtime being present.
  • All Dockerfiles: HEALTHCHECK defaults embed hardcoded ports (4010/3003/80/3001). If SERVER_PORT/VIRTUAL_PORT is set differently at runtime, the probe will target the wrong port.

@ascariandrea-zeroclaw ascariandrea-zeroclaw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good addition: adds HEALTHCHECK directives to all service Dockerfiles (admin, agent, api, web) using appropriate tools (wget/curl) and endpoints, plus a smoke test in CI that verifies node runtime works inside built images. The docker-build-push action now supports a load parameter for local image loading. No correctness bugs or security issues found.

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.

2 participants