1
0

Accepting request 974556 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/974556
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=2
This commit is contained in:
Alexander Herzig 2022-05-04 07:56:59 +00:00 committed by Git OBS Bridge
parent 84ef167fd4
commit 2c217ce8f7
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
#!BuildTag: suse/rmt-server:2.7 #!BuildTag: suse/rmt-server:2.7
#!BuildTag: suse/rmt-server:latest
#!BuildTag: suse/rmt-server:2.7-%RELEASE% #!BuildTag: suse/rmt-server:2.7-%RELEASE%
FROM opensuse/tumbleweed:latest FROM opensuse/tumbleweed:latest
@ -23,11 +24,11 @@ LABEL com.suse.release-stage="beta"
# endlabelprefix # endlabelprefix
RUN set -euo pipefail && zypper -n in --no-recommends rmt-server catatonit && zypper -n clean && rm -rf /var/log/* RUN set -euo pipefail; zypper -n in --no-recommends rmt-server catatonit; zypper -n clean; rm -rf /var/log/*
ENV RAILS_ENV="production" ENV RAILS_ENV="production"
ENV LANG="en" ENV LANG="en"
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["/usr/share/rmt/bin/rails", "server", "-e", "production"] CMD ["/usr/share/rmt/bin/rails", "server", "-e", "production"]
COPY entrypoint.sh /usr/local/bin/entrypoint.sh COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh RUN set -euo pipefail; chmod +x /usr/local/bin/entrypoint.sh

View File

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