diff options
Diffstat (limited to 'build/test/db-test.Dockerfile')
-rw-r--r-- | build/test/db-test.Dockerfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/build/test/db-test.Dockerfile b/build/test/db-test.Dockerfile index cd6161e..a182040 100644 --- a/build/test/db-test.Dockerfile +++ b/build/test/db-test.Dockerfile @@ -5,5 +5,6 @@ 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 schema.sql /schema.sql RUN service postgresql start && su postgres -c "cat /schema.sql | psql nms" && service postgresql stop +RUN echo "listen_addresses = '*'" >> /etc/postgresql/9.4/main/postgresql.conf CMD pg_ctlcluster --foreground 9.4 main start EXPOSE 5432 |