Mercurial > gemma
comparison schema/Dockerfile @ 116:dad6cf39691e
Renamed remaining wamos stuff to gemma.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 26 Jun 2018 16:40:44 +0200 |
parents | 25b28fd0e256 |
children | 4ade330e571e |
comparison
equal
deleted
inserted
replaced
115:d349db18bece | 116:dad6cf39691e |
---|---|
27 RUN echo "listen_addresses='*'" >> $PGCONF | 27 RUN echo "listen_addresses='*'" >> $PGCONF |
28 | 28 |
29 # Expose the PostgreSQL port | 29 # Expose the PostgreSQL port |
30 EXPOSE 5432 | 30 EXPOSE 5432 |
31 | 31 |
32 # Create WAMOS role and database | 32 # Create GEMMA role and database |
33 ADD *.sql ./ | 33 ADD *.sql ./ |
34 RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \ | 34 RUN $PGBIN/pg_ctl start -wo "--config_file=$PGCONF" && \ |
35 psql -c "CREATE USER wamos PASSWORD 'wamos'" && \ | 35 psql -c "CREATE USER gemma PASSWORD 'gemma'" && \ |
36 createdb wamos && \ | 36 createdb gemma && \ |
37 psql -f wamos.sql -d wamos && \ | 37 psql -f gemma.sql -d gemma && \ |
38 psql -f auth.sql -d wamos && \ | 38 psql -f auth.sql -d gemma && \ |
39 $PGBIN/pg_ctl stop -m smart | 39 $PGBIN/pg_ctl stop -m smart |
40 | 40 |
41 # Set the default command to run when starting the container | 41 # Set the default command to run when starting the container |
42 CMD ["/usr/pgsql-10/bin/postgres", "-D", "/var/lib/pgsql/10/data"] | 42 CMD ["/usr/pgsql-10/bin/postgres", "-D", "/var/lib/pgsql/10/data"] |