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

View File

@ -26,20 +26,20 @@ LABEL com.suse.release-stage="beta"
# endlabelprefix
RUN set -euo pipefail && zypper -n in --no-recommends pcp hostname shadow gettext-runtime util-linux-systemd && zypper -n clean && rm -rf /var/log/*
RUN set -euo pipefail; zypper -n in --no-recommends pcp hostname shadow gettext-runtime util-linux-systemd; zypper -n clean; rm -rf /var/log/*
ENTRYPOINT ["/usr/bin/container-entrypoint"]
CMD ["/usr/lib/systemd/systemd"]
RUN mkdir -p /usr/share/container-scripts/pcp && mkdir -p /etc/sysconfig
RUN set -euo pipefail; mkdir -p /usr/share/container-scripts/pcp; mkdir -p /etc/sysconfig
COPY container-entrypoint /usr/bin/
RUN chmod +x /usr/bin/container-entrypoint
RUN set -euo pipefail; chmod +x /usr/bin/container-entrypoint
COPY pmproxy.conf.template 10-host_mount.conf.template /usr/share/container-scripts/pcp/
COPY pmcd pmlogger /etc/sysconfig/
# This can be removed after the pcp dependency on sysconfig is removed
RUN systemctl disable wicked wickedd
RUN set -euo pipefail; systemctl disable wicked wickedd
VOLUME ["/var/log/pcp/pmlogger"]
EXPOSE 44321 44322 44323

View File

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