-
Notifications
You must be signed in to change notification settings - Fork 516
docs(cli): document SUPABASE_USE_SLIM_IMAGES side effects #6383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
617ce33
a2d12ee
596dd7c
32a3a4d
aebe9e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,6 +104,7 @@ of this command's own target resolve, ahead of the differ container. | |
| | `PGDELTA_NPM_REGISTRY` | legacy opt-out's scoped npm registry | no | | ||
| | `SUPABASE_SSL_DEBUG` | migra SSL debug logging | no | | ||
| | `SUPABASE_INTERNAL_IMAGE_REGISTRY` | overrides the differ's / shadow's image registry (shell **or** project `.env`, applied for the run via `legacyApplyProjectEnv`, matching `db push`/`db pull`/`db dump`) | no | | ||
| | `SUPABASE_USE_SLIM_IMAGES` | resolves the shadow/pg-meta images from the slim `ghcr.io/supabase/cli/<service>` builds (`true`/`1` enable); the differ image has no slim build and stays on docker.io | no | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The AGENTS.md reference: apps/cli/AGENTS.md:L277-L279 Useful? React with 👍 / 👎. |
||
|
|
||
| `SUPABASE_DB_SHADOW_PORT`/`SUPABASE_NETWORK_ID`/`--network-id`/`SUPABASE_PROJECT_ID`/ | ||
| `SUPABASE_DB_HEALTH_TIMEOUT` all apply to `--use-pgadmin` too — its shadow is provisioned | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,13 +31,14 @@ script run inside the local Postgres image to stdout or `--file`. | |
|
|
||
| ## Environment Variables | ||
|
|
||
| | Variable | Purpose | | ||
| | ----------------------------------------------------------------------------- | --------------------------------------------- | | ||
| | `SUPABASE_DB_PASSWORD` (`DB_PASSWORD` viper key; `--password`/`-p` overrides) | remote DB password | | ||
| | `SUPABASE_ACCESS_TOKEN` | `--linked` auth | | ||
| | `BITBUCKET_CLONE_DIR` | (no-op for dump — no `--security-opt` is set) | | ||
| | `SUPABASE_INTERNAL_IMAGE_REGISTRY` | rewrite the pg image registry | | ||
| | `DOCKER_HOST` | docker daemon endpoint | | ||
| | Variable | Purpose | | ||
| | ----------------------------------------------------------------------------- | ---------------------------------------------------------------- | | ||
| | `SUPABASE_DB_PASSWORD` (`DB_PASSWORD` viper key; `--password`/`-p` overrides) | remote DB password | | ||
| | `SUPABASE_ACCESS_TOKEN` | `--linked` auth | | ||
| | `BITBUCKET_CLONE_DIR` | (no-op for dump — no `--security-opt` is set) | | ||
| | `SUPABASE_INTERNAL_IMAGE_REGISTRY` | rewrite the pg image registry | | ||
| | `SUPABASE_USE_SLIM_IMAGES` | resolve the pg image from the slim `ghcr.io/supabase/cli` builds | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When AGENTS.md reference: apps/cli/AGENTS.md:L277-L279 Useful? React with 👍 / 👎. |
||
| | `DOCKER_HOST` | docker daemon endpoint | | ||
|
|
||
| ## Exit Codes | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -120,6 +120,7 @@ baseline, so it is never cached. | |
| | `SUPABASE_DB_MAJOR_VERSION` / `SUPABASE_DB_HEALTH_TIMEOUT` / `SUPABASE_DB_SETTINGS_*` | shadow container-config overrides, same as `db start`/`db reset` | no | | ||
| | `SUPABASE_PROJECT_ID` | overrides the shadow container's project id/labels, same as `db start`/`db reset` (`utils.DbId`); ALSO the linked-ref resolution fallback `--project-ref` supersedes — see Notes for the narrower scope of the flag | no | | ||
| | `SUPABASE_NETWORK_ID` (`--network-id`) | forces the shadow container/network onto an existing Docker network | no | | ||
| | `SUPABASE_USE_SLIM_IMAGES` | resolves the shadow Postgres and `pg_dump` container images from the slim `ghcr.io/supabase/cli` builds instead of the docker.io Dockerfile pins (`true`/`1` enable) | no | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For an initial pull or shadow using PostgreSQL 13/14/15, an OrioleDB version, or a historical AGENTS.md reference: apps/cli/AGENTS.md:L359-L366 Useful? React with 👍 / 👎. |
||
| | `SUPABASE_HOME` | overrides the `~/.supabase` root used for the shadow baseline cache (and other CLI state) | no | | ||
| | `SUPABASE_SHADOW_CACHE` | shadow baseline cache; opt-in (`1`/`true`); the shadow's post-baseline PGDATA is snapshotted to a tar and restored into the next run's fresh container (see Notes) | no | | ||
| | `SUPABASE_EXPERIMENTAL_PG_DELTA` | force pg-delta diff engine | no | | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,6 +54,7 @@ before migrations unless `--skip-vault` is set. | |
| | `SUPABASE_EXPERIMENTAL_PG_DELTA` | enables the migrations-catalog cache when `[experimental.pgdelta].enabled` is unset | no (project `.env` or shell) | | ||
| | `SUPABASE_USE_PG_DELTA_NEXT` | selects the pg-delta implementation; `false` selects the legacy edge-runtime engine and thereby restores the migrations-catalog cache warmup (unset/unrecognized defaults to the next engine, which skips it); shell presence wins over project `.env`, even an empty shell value | no (project `.env` or shell) | | ||
| | `SUPABASE_INTERNAL_IMAGE_REGISTRY` | overrides the pg-delta edge-runtime image registry for the cache export | no (project `.env` or shell) | | ||
| | `SUPABASE_USE_SLIM_IMAGES` | resolves the pg-delta edge-runtime image from the slim `ghcr.io/supabase/cli/edge-runtime` build (`true`/`1` enable); `deno_version = 1` keeps its docker.io image | no (ambient shell only) | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When AGENTS.md reference: apps/cli/AGENTS.md:L359-L366 Useful? React with 👍 / 👎. |
||
| | `PGDELTA_NPM_REGISTRY` | overrides the pg-delta edge-runtime npm registry (`.npmrc` + `NPM_CONFIG_REGISTRY` forward) for the cache export | no (project `.env` or shell) | | ||
|
|
||
| ## Exit Codes | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the legacy pg-delta opt-out runs with a historical
<workdir>/supabase/.temp/edge-runtime-versionpin,legacyResolveEdgeRuntimeImagedeliberately keeps the image on docker.io because only the current Dockerfile tag is slim-translated. This row exempts onlydeno_version = 1, so it incorrectly promises a slim image for another supported bootstrap configuration; add the historical-pin exception here as well.AGENTS.md reference: apps/cli/AGENTS.md:L359-L366
Useful? React with 👍 / 👎.