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