From acfb9a7a84f133d5e1e2fd549f575c13a1d324a0 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Sun, 22 May 2016 00:54:09 +0200 Subject: Add a suicidal postgresql.conf My laptop was catching fire. If you enjoy keeping data around, then this is not a config you should deploy. If you are using this in a docker container that discards data on restart anyway, then it makes perfect sense. --- build/test/gondul-db-test.Dockerfile | 1 + 1 file changed, 1 insertion(+) (limited to 'build/test/gondul-db-test.Dockerfile') diff --git a/build/test/gondul-db-test.Dockerfile b/build/test/gondul-db-test.Dockerfile index 2e0e0ce..b3d013b 100644 --- a/build/test/gondul-db-test.Dockerfile +++ b/build/test/gondul-db-test.Dockerfile @@ -5,6 +5,7 @@ RUN cat /pg_hba.tail >> /etc/postgresql/9.4/main/pg_hba.conf RUN service postgresql start && su postgres -c "psql --command=\"CREATE ROLE nms PASSWORD 'risbrod' NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\"" && su postgres -c "createdb -O nms nms" && service postgresql stop ADD build/schema.sql /schema.sql RUN service postgresql start && su postgres -c "cat /schema.sql | psql nms" && service postgresql stop +ADD build/test/postgresql.conf /etc/postgresql/9.4/main/postgresql.conf RUN echo "listen_addresses = '*'" >> /etc/postgresql/9.4/main/postgresql.conf CMD pg_ctlcluster --foreground 9.4 main start EXPOSE 5432 -- cgit v1.2.3