[Lada-commits] [PATCH 2 of 4] Prepare for easier schema update testing

Wald Commits scm-commit at wald.intevation.org
Thu Oct 13 18:36:57 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1476371402 -7200
# Node ID 259a6b638968d839f0b86689dcd93d03d662e940
# Parent  1d1c50b7a23be93c761fbd59070da221c27800a8
Prepare for easier schema update testing.

diff -r 1d1c50b7a23b -r 259a6b638968 db_schema/Dockerfile
--- 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 at 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


More information about the Lada-commits mailing list