1
0

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:
Alexander Herzig 2022-05-04 07:53:49 +00:00 committed by Git OBS Bridge
parent 7136cff92e
commit 4c735f0187
2 changed files with 8 additions and 4 deletions

View File

@ -25,7 +25,7 @@ LABEL com.suse.release-stage="beta"
# 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 PG_MAJOR="14"
@ -37,9 +37,9 @@ CMD ["postgres"]
VOLUME /var/lib/postgresql/data
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 && \
mkdir /docker-entrypoint-initdb.d && \
RUN set -euo pipefail; chmod +x /usr/local/bin/docker-entrypoint.sh; \
ln -s su /usr/bin/gosu; \
mkdir /docker-entrypoint-initdb.d; \
sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql14/postgresql.conf.sample
STOPSIGNAL SIGINT

View File

@ -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