Skip to content

Commit c85a3d0

Browse files
committed
refactor: remove wal-g files from multigres image
Multigres uses pgbackrest for backups. Remove the wal-g config and helper scripts inherited from the supabase base image.
1 parent 301fa24 commit c85a3d0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile-multigres

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ COPY --chmod=0755 docker/pgctld/pgctld /usr/local/bin/pgctld
5252
# config from postgresql.conf.tmpl and passes it directly to PostgreSQL, so the
5353
# supabase base config (including wal-g and data_directory settings) is never loaded.
5454

55+
# wal-g is not used in Multigres (pgbackrest handles backups); remove inherited files.
56+
RUN rm -f \
57+
/etc/postgresql-custom/wal-g.conf \
58+
/home/postgres/wal_fetch.sh \
59+
/root/wal_change_ownership.sh
60+
5561
# Preamble SQL run before init-scripts: creates the postgres role and sets DB ownership.
5662
# The wrapper script then passes --pg-initdb-sql-dir to run init-scripts (as postgres)
5763
# and migrations (as supabase_admin) in sorted order.

0 commit comments

Comments
 (0)