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:
parent
a4525ed816
commit
8733532709
@ -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
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user