diff --git a/build/docker-compose/postgres/Dockerfile b/build/docker-compose/postgres/Dockerfile deleted file mode 100644 index 5b9df490578..00000000000 --- a/build/docker-compose/postgres/Dockerfile +++ /dev/null @@ -1,40 +0,0 @@ -ARG POSTGRES=12 -FROM postgis/postgis:$POSTGRES-2.5 - -RUN echo "max_locks_per_transaction = 640" >> /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample \ - && echo "max_stack_depth = 5MB" >> /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample \ - && echo "random_page_cost = 1.0" >> /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample \ - && echo "shared_buffers = 256MB" >> /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample \ - && echo "effective_cache_size = 256MB" >> /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample - -ENV PG_COLLKEY_VERSION 0.5.1 - -RUN apt-get update --quiet=2 \ - && apt-get install --quiet=2 \ - build-essential \ - ca-certificates \ - libicu-dev \ - postgresql-server-dev-$PG_MAJOR \ - pgxnclient \ - unzip \ - && pgxnclient download --yes --target ~ pg_collkey=${PG_COLLKEY_VERSION} \ - && unzip ~/pg_collkey-${PG_COLLKEY_VERSION}.zip -d ~/ \ - && cd ~/pg_collkey-${PG_COLLKEY_VERSION} \ - && mv Makefile Makefile.orig \ - && sed '/^DATA = \$(wildcard/d' Makefile.orig > Makefile \ - && make \ - && make install \ - && cp -v ~/pg_collkey-${PG_COLLKEY_VERSION}/pg_collkey--${PG_COLLKEY_VERSION}.sql /usr/share/postgresql/$PG_MAJOR/extension \ - && apt-get remove -qqy \ - build-essential \ - ca-certificates \ - libicu-dev \ - postgresql-server-dev-$PG_MAJOR \ - pgxnclient \ - unzip \ - && rm -rf \ - /var/lib/apt/lists/* \ - /tmp/* \ - /var/tmp/* - -COPY /create-dbs.sh /docker-entrypoint-initdb.d/ diff --git a/build/docker-compose/postgres/create-dbs.sh b/build/docker-compose/postgres/create-dbs.sh deleted file mode 100755 index 702a7a75592..00000000000 --- a/build/docker-compose/postgres/create-dbs.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -set -o errexit -o errtrace -o nounset -o pipefail -o xtrace - -# install extension on template1 which every new database is built from, -# so we don't have to run this more than once -psql -v ON_ERROR_STOP=1 --username postgres <