From 1072fe0bd6c31f988c8da4f908e3e9b342d13f48 Mon Sep 17 00:00:00 2001 From: Corey Baker Date: Thu, 2 Jan 2025 07:45:40 -0800 Subject: [PATCH] fix pgcron --- Dockerfile.pgpool | 3 ++- scripts/setup-dbs.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.pgpool b/Dockerfile.pgpool index 7a41686..41354be 100644 --- a/Dockerfile.pgpool +++ b/Dockerfile.pgpool @@ -20,8 +20,9 @@ RUN apt-get update \ postgresql-$PG_MAJOR-pgaudit \ postgresql-$PG_MAJOR-set-user \ postgresql-$PG_MAJOR-repack \ - postgresql-$PG_MAJOR-pgpool2\ + postgresql-$PG_MAJOR-cron \ postgresql-$PG_MAJOR-pgrouting \ + postgresql-$PG_MAJOR-pgpool2\ && rm -rf /var/lib/apt/lists/* \ && mkdir -p /docker-entrypoint-initdb.d diff --git a/scripts/setup-dbs.sh b/scripts/setup-dbs.sh index f30d119..c02f479 100644 --- a/scripts/setup-dbs.sh +++ b/scripts/setup-dbs.sh @@ -9,7 +9,7 @@ set -e psql -v ON_ERROR_STOP=1 --username "${POSTGRES_USER}" --dbname "${POSTGRES_DB}" <<-EOSQL CREATE USER ${PG_PARSE_USER} LOGIN CONNECTION LIMIT 100 ENCRYPTED PASSWORD '${PG_PARSE_PASSWORD}'; CREATE DATABASE ${PG_PARSE_DB} OWNER ${PG_PARSE_USER}; - CREATE EXTENSION pg_cron; + CREATE EXTENSION IF NOT EXISTS pg_cron; \c ${PG_PARSE_DB}; CREATE EXTENSION IF NOT EXISTS postgis; CREATE EXTENSION IF NOT EXISTS postgis_topology;