From 9311b61d7617c8bd159fb028cf871cb3d90bca70279ad9eba336334f2670ce3d Mon Sep 17 00:00:00 2001 From: Alexander Herzig Date: Wed, 4 May 2022 07:53:31 +0000 Subject: [PATCH] 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 --- Dockerfile | 8 ++++---- postgres-12-image.changes | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c8255d6..87dc105 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/postgres-12-image.changes b/postgres-12-image.changes index 473a0f4..eb38a97 100644 --- a/postgres-12-image.changes +++ b/postgres-12-image.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue May 3 09:10:26 UTC 2022 - Dan Čermák + +- Use set -euo pipefail in every RUN command, use ; instead of && to prevent masking failures