comparison db_schema/Dockerfile @ 1086:259a6b638968

Prepare for easier schema update testing.
author Tom Gottfried <tom@intevation.de>
date Thu, 13 Oct 2016 17:10:02 +0200
parents 299f4ba86090
children ea6b062e5305 902bc2190fec
comparison
equal deleted inserted replaced
1085:1d1c50b7a23b 1086:259a6b638968
1 # Docker file for postgresql 9.4 on debain 1 # Docker file for postgresql 9.4 on debain
2 # 2 #
3 # build with e.g. `docker build --force-rm=true -t koala/lada_db .', 3 # build with e.g. `docker build --force-rm=true -t koala/lada_db .',
4 # then run with e.g. 4 # then run with e.g.
5 # `docker run --name lada_db -dp 2345:5432 koala/lada_db:latest' 5 # `docker run --name lada_db -dp 2345:5432 koala/lada_db:latest'
6 #
7 # For easier testing of schema or example data changes, it can be useful to add
8 # `-v $PWD:/opt/lada_sql/' and run setup-db.sh within the container.
6 # 9 #
7 10
8 FROM debian:jessie 11 FROM debian:jessie
9 MAINTAINER tom.gottfried@intevation.de 12 MAINTAINER tom.gottfried@intevation.de
10 13
55 # Don't mind scary messages like 58 # Don't mind scary messages like
56 # 'FATAL: the database system is starting up'. 59 # 'FATAL: the database system is starting up'.
57 # It's because of the -w 60 # It's because of the -w
58 # 61 #
59 ADD . /opt/lada_sql/ 62 ADD . /opt/lada_sql/
63 WORKDIR /opt/lada_sql/
60 64
61 RUN /usr/lib/postgresql/9.4/bin/pg_ctl start -wD /etc/postgresql/9.4/main/ && \ 65 RUN /usr/lib/postgresql/9.4/bin/pg_ctl start -wD /etc/postgresql/9.4/main/ && \
62 /opt/lada_sql/setup-db.sh 66 /opt/lada_sql/setup-db.sh
63 67
64 # 68 #
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)