Mercurial > gemma
comparison schema/Dockerfile @ 185:a9d9c2b1d08c
Add database function to create role and user profile
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 19 Jul 2018 16:37:52 +0200 |
parents | 0c0826063561 |
children | e7826710d9c4 |
comparison
equal
deleted
inserted
replaced
184:bc7829defa99 | 185:a9d9c2b1d08c |
---|---|
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 psql -f roles.sql && \ |
33 createdb gemma && \ | 33 createdb gemma && \ |
34 psql -f gemma.sql -d gemma && \ | 34 psql -f gemma.sql -f auth.sql -f manage_users.sql -d gemma && \ |
35 psql -f auth.sql -d gemma && \ | |
36 psql -f demo-data/roles.sql -f demo-data/users.sql -d gemma && \ | 35 psql -f demo-data/roles.sql -f demo-data/users.sql -d gemma && \ |
37 psql -f demo-data/responsibility_areas.sql -d gemma && \ | 36 psql -f demo-data/responsibility_areas.sql -d gemma && \ |
38 $PGBIN/pg_ctl stop -m smart | 37 $PGBIN/pg_ctl stop -m smart |
39 | 38 |
40 # Set the default command to run when starting the container | 39 # Set the default command to run when starting the container |