File tree Expand file tree Collapse file tree
dev-tools/packaging/templates/docker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,18 +79,14 @@ FROM {{ .from }}
7979
8080ENV BEAT_SETUID_AS= {{ .user }}
8181
82- <<<<<<< HEAD
83- {{- if contains .from " ubi-minimal" }}
82+ {{- if (and (contains .from " redhat/ubi" ) (contains .from " -minimal" )) }}
8483RUN for iter in {1..10 }; do microdnf update -y && microdnf install -y tar gzip findutils shadow-utils && microdnf clean all && exit_code= 0 && break || exit_code= $ ? && echo " microdnf error: retry $iter in 10s" && sleep 10; done; (exit $exit_code )
8584{{- end }}
8685
8786{{- if contains .from " ubuntu" }}
8887# Delete the existing " ubuntu" user to prevent conflict with the user that is added later.
8988# See https://bugs.launchpad.net /cloud-images/+bug/2005129/comments/2.
9089RUN touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu
91- =======
92- {{- if (and (contains .from " redhat/ubi" ) (contains .from " -minimal" )) }}
93- >>>>>>> 56f5d9053 (docker: use the official Red Hat images (#7817))
9490RUN for iter in {1..10 }; do \
9591 apt-get update -y && \
9692 DEBIAN_FRONTEND= noninteractive apt-get install --no-install-recommends --yes ca-certificates curl gawk xz-utils && \
You can’t perform that action at this time.
0 commit comments