File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,10 @@ RUN sed -i \
181181 echo "pgsodium.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
182182 echo "vault.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
183183 echo 'auto_explain.log_min_duration = 10s' >> /etc/postgresql/postgresql.conf && \
184+ # Remove supabase_admin line from pg_hba.conf
185+ sed -i '/local all supabase_admin scram-sha-256/d' /etc/postgresql/pg_hba.conf && \
186+ # Add supabase_admin mappings block to pg_ident.conf before supabase-specific users
187+ sed -i '/# supabase-specific users/i\# supabase_admin user mappings\nsupabase_map postgres supabase_admin\nsupabase_map root supabase_admin\nsupabase_map ubuntu supabase_admin\n' /etc/postgresql/pg_ident.conf && \
184188 usermod -aG postgres wal-g && \
185189 mkdir -p /etc/postgresql-custom && \
186190 chown postgres:postgres /etc/postgresql-custom
@@ -207,7 +211,9 @@ RUN echo "CREATE EXTENSION orioledb;" > /docker-entrypoint-initdb.d/init-scripts
207211COPY --from=gosu /usr/local/bin/gosu /usr/local/bin/gosu
208212ADD --chmod=0755 \
209213 https://github.com/docker-library/postgres/raw/master/17/bullseye/docker-entrypoint.sh \
210- /usr/local/bin/
214+ /usr/local/bin/upstream-docker-entrypoint.sh
215+ # # Add custom entrypoint script
216+ COPY --chmod=0755 docker/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
211217
212218RUN mkdir -p /var/run/postgresql && chown postgres:postgres /var/run/postgresql
213219
You can’t perform that action at this time.
0 commit comments