Skip to content

Use wget healthchecks on slim Elixir images - #6386

Closed
avallete wants to merge 1 commit into
developfrom
avallete/slim-wget-healthchecks
Closed

Use wget healthchecks on slim Elixir images#6386
avallete wants to merge 1 commit into
developfrom
avallete/slim-wget-healthchecks

Conversation

@avallete

Copy link
Copy Markdown
Member

Summary

  • Detect slim images (ghcr.io/supabase/cli/…) via legacyUsesSlimRuntime.
  • Realtime, analytics, and pooler use wget -q --spider on slim (busybox) and keep curl on docker.io.
  • Logflare run.sh override stays for both families.

Depends on slim-services#287 publishing wget-on-PATH images. Do not merge until those force rebuilds finish.

Test plan

  • Unit tests for legacyUsesSlimRuntime and the three Elixir specs
  • After slim-services publishes, supabase start against slim realtime/analytics/pooler becomes healthy via wget

Made with Cursor

docker.io realtime/analytics/pooler still probe with curl; slim images ship busybox wget instead. Keep the Logflare run.sh override for both families.

Co-authored-by: Cursor <cursoragent@cursor.com>
@avallete
avallete requested a review from a team as a code owner August 28, 2026 19:06

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 02c402d8d9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +59 to +60
export function legacyUsesSlimRuntime(image: string): boolean {
return image.includes(SLIM_IMAGE_REPO) || image.startsWith("supabase/cli/");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve slim identity through registry resolution

When a slim image enters the real start pipeline, this predicate receives the resolved candidate rather than the requested image. legacyGetRegistryImageUrlCandidates() reduces ghcr.io/supabase/cli/realtime:<tag> to candidates such as public.ecr.aws/supabase/realtime:<tag> and ghcr.io/supabase/realtime:<tag>, and start.handler.ts passes that resolved name into the service builder. A successful mirrored pull therefore makes this return false, causing the slim container to run the unavailable curl healthcheck and remain unhealthy; the added unit tests miss this by passing the original GHCR name directly. Preserve the /supabase/cli/ namespace during resolution or carry the slim-runtime identity separately from the resolved image reference.

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown
Contributor

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@02c402d8d91cf670706af971cfc866cbcb8363ca

Preview package for commit 02c402d.

@avallete avallete closed this Aug 29, 2026
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