From c982d7d7864907d34ecd3cd672ee59130341dcb7 Mon Sep 17 00:00:00 2001 From: jdmalandruccolo Date: Wed, 5 Mar 2025 00:23:56 -0800 Subject: [PATCH] backout --- Dockerfile.postgres | 3 --- initdb-vector.sh | 19 ------------------- 2 files changed, 22 deletions(-) delete mode 100644 initdb-vector.sh diff --git a/Dockerfile.postgres b/Dockerfile.postgres index d662ec0..2c28b9a 100644 --- a/Dockerfile.postgres +++ b/Dockerfile.postgres @@ -18,8 +18,5 @@ RUN apt-get update && apt-get install -y \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/* -RUN mkdir -p /docker-entrypoint-initdb.d -COPY ./initdb-vector.sh /docker-entrypoint-initdb.d/vector.sh - # log all queries CMD ["postgres", "-c", "log_statement=all"] diff --git a/initdb-vector.sh b/initdb-vector.sh deleted file mode 100644 index 5564b88..0000000 --- a/initdb-vector.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -set -e - -# Perform all actions as $POSTGRES_USER -export PGUSER="$POSTGRES_USER" - -# Create the 'template_vector' template db -"${psql[@]}" <<- 'EOSQL' -CREATE DATABASE template_vector IS_TEMPLATE true; -EOSQL - -# Load vector into both template_database and $POSTGRES_DB -for DB in template_postgis "$POSTGRES_DB"; do - echo "Loading PostGIS extensions into $DB" - "${psql[@]}" --dbname="$DB" <<-'EOSQL' - CREATE EXTENSION IF NOT EXISTS vector; -EOSQL -done \ No newline at end of file