comparison schema/Dockerfile @ 306:70592a18c5c6

Keep log on stderr to be able to use docker logs
author Tom Gottfried <tom@intevation.de>
date Wed, 01 Aug 2018 15:18:26 +0200
parents 299568ad3c37
children 41b37a531843
comparison
equal deleted inserted replaced
305:8aa472939148 306:70592a18c5c6
18 ENV PGCONF /var/lib/pgsql/10/data/postgresql.conf 18 ENV PGCONF /var/lib/pgsql/10/data/postgresql.conf
19 RUN $PGBIN/initdb -E UTF8 2>&1 < /dev/null &&\ 19 RUN $PGBIN/initdb -E UTF8 2>&1 < /dev/null &&\
20 # Adjust PostgreSQL configuration so that remote connections to the 20 # Adjust PostgreSQL configuration so that remote connections to the
21 # database are possible. 21 # database are possible.
22 echo "host all all 0.0.0.0/0 md5" >> /var/lib/pgsql/10/data/pg_hba.conf &&\ 22 echo "host all all 0.0.0.0/0 md5" >> /var/lib/pgsql/10/data/pg_hba.conf &&\
23 echo "listen_addresses='*'" >> $PGCONF 23 echo "listen_addresses='*'" >> $PGCONF &&\
24 # Keep log on stderr to be able to use docker logs
25 sed -i '/logging_collector/s/on/off/' $PGCONF
24 # Expose the PostgreSQL port 26 # Expose the PostgreSQL port
25 EXPOSE 5432 27 EXPOSE 5432
26 28
27 # Create GEMMA role and database 29 # Create GEMMA role and database
28 WORKDIR /opt/gemma 30 WORKDIR /opt/gemma