comparison schema/Dockerfile @ 157:a85c44438d48

fix: Replaced MAINTAINER by LABEL The Maintainer instruction is deprecated. https://docs.docker.com/engine/reference/builder/#maintainer-deprecated
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 03 Jul 2018 11:43:55 +0200
parents 4ade330e571e
children a422471db08a
comparison
equal deleted inserted replaced
156:4ade330e571e 157:a85c44438d48
1 FROM centos:7 1 FROM centos:7
2 MAINTAINER tom.gottfried@intevation.de 2 LABEL authors="tom.gottfried@intevation.de"
3 3
4 # Add the PostgreSQL PGP key to verify the official yum repository packages 4 # Add the PostgreSQL PGP key to verify the official yum repository packages
5 RUN rpm --import https://yum.postgresql.org/RPM-GPG-KEY-PGDG-10 &&\ 5 RUN rpm --import https://yum.postgresql.org/RPM-GPG-KEY-PGDG-10 &&\
6 # Add PostgreSQL's repository. It contains the most recent release 6 # Add PostgreSQL's repository. It contains the most recent release
7 # of PostgreSQL, 10: 7 # of PostgreSQL, 10:
8 yum -q -y install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm &&\ 8 yum -q -y install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm &&\
9 # Install PostgreSQL 10 and PostGIS 9 # Install PostgreSQL 10 and PostGIS
10 yum -q -y install postgresql10-server &&\ 10 yum -q -y install postgresql10-server &&\
11 yum -q -y install epel-release &&\ 11 yum -q -y install epel-release &&\
12 yum -q -y install postgis24_10 pgtap10 12 yum -q -y install postgis24_10 pgtap10
13 USER postgres 13 USER postgres
14 ENV PGBIN /usr/pgsql-10/bin/ 14 ENV PGBIN /usr/pgsql-10/bin/
15 15
16 # initdb PostgreSQL 10: 16 # initdb PostgreSQL 10:
17 ENV PGDATA /var/lib/pgsql/10/data 17 ENV PGDATA /var/lib/pgsql/10/data
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 # Expose the PostgreSQL port 24 # Expose the PostgreSQL port
25 EXPOSE 5432 25 EXPOSE 5432
26 26