Mercurial > gemma
diff 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 |
line wrap: on
line diff
--- a/schema/Dockerfile Thu Jul 26 18:56:01 2018 +0200 +++ b/schema/Dockerfile Thu Jul 26 19:22:07 2018 +0200 @@ -29,11 +29,7 @@ COPY *.sql *.sh ./ COPY demo-data ./demo-data/ RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \ - psql -f roles.sql && \ - createdb gemma && \ - psql -f gemma.sql -f auth.sql -f manage_users.sql -d gemma && \ - psql -f demo-data/responsibility_areas.sql -d gemma && \ - psql -f demo-data/roles.sql -f demo-data/users.sql -d gemma && \ + ./install-db.sh --demo && \ $PGBIN/pg_ctl stop -m smart # Set the default command to run when starting the container