Update PostgreSQL container image to Buster
This commit is contained in:
parent
d231f90c90
commit
a135fe9f73
3 changed files with 105 additions and 105 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM debian:stretch
|
FROM debian:buster
|
||||||
LABEL maintainer "Jan Dittberner <jan@dittberner.info>"
|
LABEL maintainer "Jan Dittberner <jan@dittberner.info>"
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
|
@ -11,7 +11,7 @@ RUN apt-get update \
|
||||||
EXPOSE 5432
|
EXPOSE 5432
|
||||||
|
|
||||||
VOLUME /var/lib/postgresql/
|
VOLUME /var/lib/postgresql/
|
||||||
COPY pg_hba.conf /etc/postgresql/9.6/main/pg_hba.conf
|
COPY pg_hba.conf /etc/postgresql/11/main/pg_hba.conf
|
||||||
COPY startup.sh /srv/
|
COPY startup.sh /srv/
|
||||||
|
|
||||||
ENTRYPOINT ["dumb-init"]
|
ENTRYPOINT ["dumb-init"]
|
||||||
|
|
|
@ -94,7 +94,7 @@ host all all 127.0.0.1/32 md5
|
||||||
host all all ::1/128 md5
|
host all all ::1/128 md5
|
||||||
# Allow replication connections from localhost, by a user with the
|
# Allow replication connections from localhost, by a user with the
|
||||||
# replication privilege.
|
# replication privilege.
|
||||||
#local replication postgres peer
|
#local replication all peer
|
||||||
#host replication postgres 127.0.0.1/32 md5
|
#host replication all 127.0.0.1/32 md5
|
||||||
#host replication postgres ::1/128 md5
|
#host replication all ::1/128 md5
|
||||||
host all all all md5
|
host all all all md5
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
/usr/bin/pg_ctlcluster 9.6 main start
|
/usr/bin/pg_ctlcluster 11 main start
|
||||||
|
|
||||||
echo -n "Waiting for database to become ready ."
|
echo -n "Waiting for database to become ready ."
|
||||||
while ! pg_isready -q; do sleep 1; echo -n "."; done
|
while ! pg_isready -q; do sleep 1; echo -n "."; done
|
||||||
|
@ -18,5 +18,5 @@ GRANT CREATE, CONNECT ON DATABASE gnuviechadmin TO gnuviechadmin;
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/usr/bin/pg_ctlcluster 9.6 main stop --foreground
|
/usr/bin/pg_ctlcluster 11 main stop --foreground
|
||||||
/usr/bin/pg_ctlcluster 9.6 main start --foreground -o '-h 0.0.0.0'
|
/usr/bin/pg_ctlcluster 11 main start --foreground -o '-h 0.0.0.0'
|
||||||
|
|
Loading…
Reference in a new issue