Skip to content

fix(tunnel): install procps in sidecar image so pgrep healthcheck works#31

Open
omarsy wants to merge 1 commit into
mainfrom
fix/tunnel-sidecar-pgrep-healthcheck
Open

fix(tunnel): install procps in sidecar image so pgrep healthcheck works#31
omarsy wants to merge 1 commit into
mainfrom
fix/tunnel-sidecar-pgrep-healthcheck

Conversation

@omarsy

@omarsy omarsy commented May 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Add procps to the tunnel-sidecar Dockerfile apt install list so pgrep is actually present in the image.
  • The healthcheck in docker-compose.yml runs pgrep -f rathole, but debian:bookworm-slim doesn't ship pgrep. The container therefore reported unhealthy on every platform regardless of whether rathole-client was running.
  • Discovered during local Mac testing of the tunnel data-plane on 2026-05-06 — the broken healthcheck was masking real failures.

Picked option 1 (install procps) over rewriting the healthcheck: one-line change, ~700 KB image cost, and keeps the healthcheck reading like what it claims to check.

Test plan

  • docker compose build tunnel-sidecar succeeds on amd64 and arm64
  • docker compose up tunnel-sidecar reports healthy once rathole-client is running
  • Killing the rathole-client process inside the container flips the status to unhealthy

🤖 Generated with Claude Code

The tunnel-sidecar healthcheck in docker-compose.yml runs `pgrep -f rathole`,
but pgrep isn't shipped in debian:bookworm-slim. The container therefore
reported "unhealthy" on every platform regardless of whether rathole-client
was actually running, masking real failures during tunnel data-plane debug
on 2026-05-06.

Add procps to the apt install list — one-line fix, ~700 KB image bump.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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