From 7b028f4263ef5c0d4f43a5df90d36f1ba9a1cd45 Mon Sep 17 00:00:00 2001 From: adrian Date: Wed, 3 Sep 2025 10:56:07 +0200 Subject: [PATCH] fix: postgres extensions setup in dockerfile --- protocol-testing/docker-compose.yaml | 1 + protocol-testing/postgres.Dockerfile | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/protocol-testing/docker-compose.yaml b/protocol-testing/docker-compose.yaml index 4e3efa8..297bf5d 100644 --- a/protocol-testing/docker-compose.yaml +++ b/protocol-testing/docker-compose.yaml @@ -8,6 +8,7 @@ services: POSTGRES_PASSWORD: mypassword POSTGRES_USER: postgres POSTGRES_DB: tycho_indexer_0 + command: postgres -c shared_preload_libraries=pg_partman_bgw,pg_cron -c cron.database_name=tycho_indexer_0 ports: - "5431:5432" shm_size: "1gb" diff --git a/protocol-testing/postgres.Dockerfile b/protocol-testing/postgres.Dockerfile index 6ecffaa..d0d2f4d 100644 --- a/protocol-testing/postgres.Dockerfile +++ b/protocol-testing/postgres.Dockerfile @@ -23,9 +23,4 @@ USER root COPY --from=builder /usr/local/lib/postgresql/pg_cron.so /usr/local/lib/postgresql/ COPY --from=builder /usr/local/share/postgresql/extension/pg_cron* /usr/local/share/postgresql/extension/ -# Add configuration to postgresql.conf template -# Start with postgres database, then switch to tycho_indexer_0 after it's created -RUN echo "shared_preload_libraries = 'pg_partman_bgw,pg_cron'" >> /usr/local/share/postgresql/postgresql.conf.sample \ - && echo "cron.database_name = 'tycho_indexer_0'" >> /usr/local/share/postgresql/postgresql.conf.sample - USER postgres