-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ LABEL maintainer="Christophe Antoniewski <[email protected]>" | |
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
|
||
# Install ``python-software-properties``, ``software-properties-common`` and PostgreSQL 12 | ||
# Install ``python-software-properties`` and ``software-properties-common`` | ||
# There are some warnings (in red) that show up during the build. You can hide | ||
# them by prefixing each apt-get statement with DEBIAN_FRONTEND=noninteractive | ||
RUN apt update && \ | ||
|
@@ -16,6 +16,7 @@ RUN apt update && \ | |
apt-utils git nano python3-pip python3-virtualenv \ | ||
ca-certificates locales dirmngr lsb-release curl | ||
|
||
# PostgreSQL 15 | ||
RUN apt update && \ | ||
\ | ||
echo "===> Allow start of services" && \ | ||
|
@@ -32,7 +33,7 @@ RUN apt update && \ | |
RUN python3 -m pip install -U pip && python3 -m pip install ansible==3.0 && \ | ||
python3 -m pip install -U cryptography pyyaml | ||
|
||
# Run the rest of the commands as the ``postgres`` user created by the ``postgres-12`` | ||
# Run the rest of the commands as the ``postgres`` user created by the ``postgres-15`` | ||
# package when it was ``apt-get installed`` | ||
|
||
USER postgres | ||
|
@@ -55,10 +56,10 @@ RUN /etc/init.d/postgresql start &&\ | |
|
||
# Adjust PostgreSQL configuration so that remote connections to the | ||
# database are possible. | ||
RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/12/main/pg_hba.conf | ||
RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/15/main/pg_hba.conf | ||
|
||
# And add ``listen_addresses`` to ``/etc/postgresql/12/main/postgresql.conf`` | ||
RUN echo "listen_addresses='*'" >> /etc/postgresql/12/main/postgresql.conf | ||
# And add ``listen_addresses`` to ``/etc/postgresql/15/main/postgresql.conf`` | ||
RUN echo "listen_addresses='*'" >> /etc/postgresql/15/main/postgresql.conf | ||
|
||
USER root | ||
|
||
|