aboutsummaryrefslogtreecommitdiffstats
path: root/build/test/gondul-db-test.Dockerfile
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-05-22 00:54:09 +0200
committerKristian Lyngstol <kristian@bohemians.org>2016-05-22 00:54:09 +0200
commitacfb9a7a84f133d5e1e2fd549f575c13a1d324a0 (patch)
treed6739d9020c5c37c5a19024fd2579c4b2608207d /build/test/gondul-db-test.Dockerfile
parente67f54f2f8ea63ff71c15e7d5622fe3c3cff4b88 (diff)
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.
Diffstat (limited to 'build/test/gondul-db-test.Dockerfile')
-rw-r--r--build/test/gondul-db-test.Dockerfile1
1 files changed, 1 insertions, 0 deletions
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