comparison schema/Dockerfile @ 478:3af7ca761f6a

Purge password reset role The risk of SQL-injections and thus privilege escalation via the metamorphic user was estimated not high enough to justify the extra role. Thus, bring database back in line with rev. ffdb507d5b42 and re-enable password reset.
author Tom Gottfried <tom@intevation.de>
date Thu, 23 Aug 2018 16:41:44 +0200
parents 5611cf72cc92
children
comparison
equal deleted inserted replaced
477:00b52d653039 478:3af7ca761f6a
29 # Create GEMMA role and database 29 # Create GEMMA role and database
30 WORKDIR /opt/gemma 30 WORKDIR /opt/gemma
31 COPY *.sql *.sh ./ 31 COPY *.sql *.sh ./
32 COPY demo-data ./demo-data/ 32 COPY demo-data ./demo-data/
33 RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \ 33 RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \
34 ./install-db.sh --demo --servicepw "pw2Reset4" --metapw "geo2Serv" && \ 34 ./install-db.sh --demo --metapw "geo2Serv" && \
35 $PGBIN/pg_ctl stop -m smart 35 $PGBIN/pg_ctl stop -m smart
36 36
37 # Set the default command to run when starting the container 37 # Set the default command to run when starting the container
38 CMD ["/usr/pgsql-10/bin/postgres", "-D", "/var/lib/pgsql/10/data"] 38 CMD ["/usr/pgsql-10/bin/postgres", "-D", "/var/lib/pgsql/10/data"]