forked from pool/postgres-14-image
Accepting request 974579 from home:dancermak:auto_update:TW
Use set -euo pipefail in every RUN command, use ; instead of && to prevent masking failures OBS-URL: https://build.opensuse.org/request/show/974579 OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postgres-14-image?expand=0&rev=2
This commit is contained in:
parent
7136cff92e
commit
4c735f0187
@ -25,7 +25,7 @@ LABEL com.suse.release-stage="beta"
|
|||||||
# endlabelprefix
|
# endlabelprefix
|
||||||
|
|
||||||
|
|
||||||
RUN set -euo pipefail && zypper -n in --no-recommends postgresql14-server distribution-release && zypper -n clean && rm -rf /var/log/*
|
RUN set -euo pipefail; zypper -n in --no-recommends postgresql14-server distribution-release; zypper -n clean; rm -rf /var/log/*
|
||||||
|
|
||||||
ENV LANG="en_US.utf8"
|
ENV LANG="en_US.utf8"
|
||||||
ENV PG_MAJOR="14"
|
ENV PG_MAJOR="14"
|
||||||
@ -37,9 +37,9 @@ CMD ["postgres"]
|
|||||||
VOLUME /var/lib/postgresql/data
|
VOLUME /var/lib/postgresql/data
|
||||||
|
|
||||||
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 && \
|
ln -s su /usr/bin/gosu; \
|
||||||
mkdir /docker-entrypoint-initdb.d && \
|
mkdir /docker-entrypoint-initdb.d; \
|
||||||
sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql14/postgresql.conf.sample
|
sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql14/postgresql.conf.sample
|
||||||
|
|
||||||
STOPSIGNAL SIGINT
|
STOPSIGNAL SIGINT
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 3 09:10:10 UTC 2022 - Dan Čermák <dcermak@suse.com>
|
||||||
|
|
||||||
|
- Use set -euo pipefail in every RUN command, use ; instead of && to prevent masking failures
|
Loading…
Reference in New Issue
Block a user