1
0

[info=ab0f0dc9d644c1f5e4e24425766dea42]

OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postgres-15-image?expand=0&rev=3
This commit is contained in:
Dan Čermák 2023-04-05 16:01:36 +00:00 committed by Git OBS Bridge
parent 856d1686a0
commit 0120ccc200
2 changed files with 10 additions and 3 deletions

View File

@ -28,18 +28,20 @@ RUN set -euo pipefail; zypper -n in --no-recommends postgresql15-server distribu
ENV LANG="en_US.utf8"
ENV PG_MAJOR="15"
ENV PG_VERSION="%%pg_version%%"
ENV PGDATA="/var/lib/postgresql/data"
ENV PGDATA="/var/lib/pgsql/data"
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["postgres"]
VOLUME /var/lib/postgresql/data
EXPOSE 5432
COPY docker-entrypoint.sh /usr/local/bin/
RUN set -euo pipefail; chmod +x /usr/local/bin/docker-entrypoint.sh; \
ln -s su /usr/bin/gosu; \
sed -i -e 's/exec gosu postgres "/exec setpriv --reuid=postgres --regid=postgres --clear-groups -- "/g' /usr/local/bin/docker-entrypoint.sh; \
mkdir /docker-entrypoint-initdb.d; \
install -d -m 0700 -o postgres -g postgres $PGDATA; \
sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql15/postgresql.conf.sample
STOPSIGNAL SIGINT
HEALTHCHECK --interval=10s --start-period=10s --timeout=5s \
CMD pg_isready -U ${POSTGRES_USER:-postgres} -h localhost -p 5432
VOLUME $PGDATA

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 30 15:12:51 UTC 2023 - Dirk Mueller <dmueller@suse.com>
- Fix signal handling and use ~postgres/data as the default PGDATA location
-------------------------------------------------------------------
Wed Mar 29 13:44:26 UTC 2023 - Dan Čermák <dcermak@suse.com>