Mercurial > gemma
comparison schema/Dockerfile @ 246:299568ad3c37
Use database setup script for tests and Dockerfile
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 26 Jul 2018 19:22:07 +0200 |
parents | e7826710d9c4 |
children | 70592a18c5c6 |
comparison
equal
deleted
inserted
replaced
245:9f6d29f8ac2b | 246:299568ad3c37 |
---|---|
27 # Create GEMMA role and database | 27 # Create GEMMA role and database |
28 WORKDIR /opt/gemma | 28 WORKDIR /opt/gemma |
29 COPY *.sql *.sh ./ | 29 COPY *.sql *.sh ./ |
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 ./install-db.sh --demo && \ |
33 createdb 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 && \ | |
36 psql -f demo-data/roles.sql -f demo-data/users.sql -d gemma && \ | |
37 $PGBIN/pg_ctl stop -m smart | 33 $PGBIN/pg_ctl stop -m smart |
38 | 34 |
39 # Set the default command to run when starting the container | 35 # Set the default command to run when starting the container |
40 CMD ["/usr/pgsql-10/bin/postgres", "-D", "/var/lib/pgsql/10/data"] | 36 CMD ["/usr/pgsql-10/bin/postgres", "-D", "/var/lib/pgsql/10/data"] |