comparison schema/Dockerfile @ 211:e7826710d9c4

Make responsibility area mandatory Each waterway administrator has to have a responsibility area assigned, which is now ensured by referencing the respective table instead of countries directly.
author Tom Gottfried <tom@intevation.de>
date Mon, 23 Jul 2018 16:45:27 +0200
parents a9d9c2b1d08c
children 299568ad3c37
comparison
equal deleted inserted replaced
210:a0e2c6bb3cb3 211:e7826710d9c4
30 COPY demo-data ./demo-data/ 30 COPY demo-data ./demo-data/
31 RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \ 31 RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \
32 psql -f roles.sql && \ 32 psql -f roles.sql && \
33 createdb gemma && \ 33 createdb gemma && \
34 psql -f gemma.sql -f auth.sql -f manage_users.sql -d gemma && \ 34 psql -f gemma.sql -f auth.sql -f manage_users.sql -d gemma && \
35 psql -f demo-data/responsibility_areas.sql -d gemma && \
35 psql -f demo-data/roles.sql -f demo-data/users.sql -d gemma && \ 36 psql -f demo-data/roles.sql -f demo-data/users.sql -d gemma && \
36 psql -f demo-data/responsibility_areas.sql -d gemma && \
37 $PGBIN/pg_ctl stop -m smart 37 $PGBIN/pg_ctl stop -m smart
38 38
39 # Set the default command to run when starting the container 39 # Set the default command to run when starting the container
40 CMD ["/usr/pgsql-10/bin/postgres", "-D", "/var/lib/pgsql/10/data"] 40 CMD ["/usr/pgsql-10/bin/postgres", "-D", "/var/lib/pgsql/10/data"]