Accepting request 974581 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/974581
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postgres-12-image?expand=0&rev=2
This commit is contained in:
Alexander Herzig 2022-05-04 07:53:31 +00:00 committed by Git OBS Bridge
parent aee03d15ce
commit 9311b61d76
2 changed files with 8 additions and 4 deletions

View File

@ -24,7 +24,7 @@ LABEL com.suse.release-stage="beta"
# endlabelprefix
RUN set -euo pipefail && zypper -n in --no-recommends postgresql12-server distribution-release && zypper -n clean && rm -rf /var/log/*
RUN set -euo pipefail; zypper -n in --no-recommends postgresql12-server distribution-release; zypper -n clean; rm -rf /var/log/*
ENV LANG="en_US.utf8"
ENV PG_MAJOR="12"
@ -36,9 +36,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/postgresql12/postgresql.conf.sample
STOPSIGNAL SIGINT

View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue May 3 09:10:26 UTC 2022 - Dan Čermák <dcermak@suse.com>
- Use set -euo pipefail in every RUN command, use ; instead of && to prevent masking failures