[info=195a621047dca280dbab11887405b08c]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postgres-12-image?expand=0&rev=18
This commit is contained in:
parent
a13c2ceb6f
commit
93b35f68e6
@ -27,18 +27,20 @@ RUN set -euo pipefail; zypper -n in --no-recommends postgresql12-server distribu
|
|||||||
ENV LANG="en_US.utf8"
|
ENV LANG="en_US.utf8"
|
||||||
ENV PG_MAJOR="12"
|
ENV PG_MAJOR="12"
|
||||||
ENV PG_VERSION="%%pg_version%%"
|
ENV PG_VERSION="%%pg_version%%"
|
||||||
ENV PGDATA="/var/lib/postgresql/data"
|
ENV PGDATA="/var/lib/pgsql/data"
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
||||||
CMD ["postgres"]
|
CMD ["postgres"]
|
||||||
VOLUME /var/lib/postgresql/data
|
|
||||||
EXPOSE 5432
|
EXPOSE 5432
|
||||||
COPY docker-entrypoint.sh /usr/local/bin/
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||||||
RUN set -euo pipefail; chmod +x /usr/local/bin/docker-entrypoint.sh; \
|
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; \
|
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/postgresql12/postgresql.conf.sample
|
sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql12/postgresql.conf.sample
|
||||||
|
|
||||||
STOPSIGNAL SIGINT
|
STOPSIGNAL SIGINT
|
||||||
HEALTHCHECK --interval=10s --start-period=10s --timeout=5s \
|
HEALTHCHECK --interval=10s --start-period=10s --timeout=5s \
|
||||||
CMD pg_isready -U ${POSTGRES_USER:-postgres} -h localhost -p 5432
|
CMD pg_isready -U ${POSTGRES_USER:-postgres} -h localhost -p 5432
|
||||||
|
|
||||||
|
VOLUME $PGDATA
|
||||||
|
@ -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>
|
Wed Mar 29 13:44:26 UTC 2023 - Dan Čermák <dcermak@suse.com>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user