supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
937 stars 179 forks source link

Don't download excluded container images #2407

Open wyozi opened 2 weeks ago

wyozi commented 2 weeks ago

Is your feature request related to a problem? Please describe.

I'm running supabase start with the --exclude-containers flag in CI. Excluding containers is nice, but I'd also like to be able to skip downloading container images that will not be used at all.

Describe the solution you'd like

Excluded containers would not only skip running them, but also downloading them.

sweatybridge commented 2 weeks ago

Which container do you think is unused? The database depends on service migrations from auth, storage, and realtime. So running supabase db start alone will require pulling 3 additional service images.

wyozi commented 2 weeks ago

@sweatybridge that's a good point. I don't know how supabase internals work w.r.t. dependencies.

I'm running CI with --exclude realtime,storage-api,imgproxy,inbucket,edge-runtime with the goal of running minimal possible supabase instance that supports postgres + postgrest + auth (so probably more could be added).