comparison docker/Dockerfile.db @ 4897:638a61fb881b fairway-marks-import

Merge branch default into fairway-marks-import
author Tom Gottfried <tom@intevation.de>
date Fri, 31 Jan 2020 16:53:06 +0100
parents 3fc3f1ed8531
children
comparison
equal deleted inserted replaced
4896:dd888bbb7e43 4897:638a61fb881b
32 sed -i '/logging_collector/s/on/off/' $PGCONF 32 sed -i '/logging_collector/s/on/off/' $PGCONF
33 33
34 # Expose the PostgreSQL port 34 # Expose the PostgreSQL port
35 EXPOSE 5432 35 EXPOSE 5432
36 36
37 # Create GEMMA role and database 37 # Create GEMMA roles and database
38 WORKDIR /opt/gemma 38 WORKDIR /opt/gemma
39 COPY schema/*.sql schema/*.sh ./ 39 COPY --chown=postgres schema/*.sql schema/*.sh ./
40 COPY schema/demo-data ./demo-data/ 40 COPY --chown=postgres schema/demo-data ./demo-data/
41 RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \ 41 RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \
42 ./install-db.sh --demo --metapw "geo2Serv" && \ 42 ./install-db.sh --demo --metapw "geo2Serv" && \
43 $PGBIN/pg_ctl stop -m smart 43 $PGBIN/pg_ctl stop -m smart
44 44
45 # Set the default command to run when starting the container 45 # Set the default command to run when starting the container