changeset 1086:259a6b638968

Prepare for easier schema update testing.
author Tom Gottfried <tom@intevation.de>
date Thu, 13 Oct 2016 17:10:02 +0200
parents 1d1c50b7a23b
children 626ed546329f
files db_schema/Dockerfile
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/db_schema/Dockerfile	Thu Oct 13 17:01:31 2016 +0200
+++ b/db_schema/Dockerfile	Thu Oct 13 17:10:02 2016 +0200
@@ -4,6 +4,9 @@
 # then run with e.g.
 # `docker run --name lada_db -dp 2345:5432 koala/lada_db:latest'
 #
+# For easier testing of schema or example data changes, it can be useful to add
+# `-v $PWD:/opt/lada_sql/' and run setup-db.sh within the container.
+#
 
 FROM debian:jessie
 MAINTAINER tom.gottfried@intevation.de
@@ -57,6 +60,7 @@
 # It's because of the -w
 #
 ADD . /opt/lada_sql/
+WORKDIR /opt/lada_sql/
 
 RUN /usr/lib/postgresql/9.4/bin/pg_ctl start -wD /etc/postgresql/9.4/main/ && \
     /opt/lada_sql/setup-db.sh
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)