Skip to content

Commit

Permalink
replace all 12's by 15
Browse files Browse the repository at this point in the history
  • Loading branch information
drosofff committed Dec 19, 2024
1 parent 0ec02d2 commit 84087fb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile.galaxyxpand
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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" && \
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 84087fb

Please sign in to comment.