From 25f125727443ea60a9948d79862a542985934841 Mon Sep 17 00:00:00 2001 From: David Neudorfer Date: Fri, 3 Feb 2017 11:40:42 -0800 Subject: [PATCH] [wip] - attempting to fix pg_restore --- Dockerfile.db | 3 ++- docker-entrypoint-initdb.d/setup.sql | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile.db b/Dockerfile.db index 981c2c93..8591226a 100644 --- a/Dockerfile.db +++ b/Dockerfile.db @@ -1,4 +1,4 @@ -FROM library/postgres +FROM library/postgres:9.6 RUN apt-get update \ && apt-get install -y \ @@ -7,6 +7,7 @@ RUN apt-get update \ postgresql-9.6-postgis-2.3 \ postgresql-contrib-9.6 \ postgresql-9.6-postgis-scripts \ + postgresql-server-dev-9.6 \ pgtop \ && apt-get clean \ && apt-get autoremove \ diff --git a/docker-entrypoint-initdb.d/setup.sql b/docker-entrypoint-initdb.d/setup.sql index f92b1924..f5246cc6 100644 --- a/docker-entrypoint-initdb.d/setup.sql +++ b/docker-entrypoint-initdb.d/setup.sql @@ -1,6 +1,7 @@ CREATE USER "www-data" WITH PASSWORD 'password'; -ALTER USER "www-data" WITH NOSUPERUSER NOCREATEROLE NOCREATEDB; +-- ALTER USER "www-data" WITH NOSUPERUSER NOCREATEROLE NOCREATEDB; +ALTER USER "www-data" WITH SUPERUSER; CREATE DATABASE osmtm OWNER "www-data" ENCODING 'UTF8' TEMPLATE template0; \connect osmtm -CREATE EXTENSION postgis; -SELECT postgis_full_version(); +-- CREATE EXTENSION postgis; +-- SELECT postgis_full_version();