@@ -17,6 +17,14 @@ RUN for iter in {1..10}; do \
1717
1818COPY beat {{ $beatHome }}
1919
20+ {{- if (and (contains .buildFrom " redhat/ubi" ) (contains .buildFrom " -minimal" )) }}
21+ RUN for iter in {1..10 }; do \
22+ microdnf update -y && \
23+ microdnf install -y findutils && \
24+ microdnf clean all && \
25+ exit_code= 0 && break || exit_code= $ ? && echo " microdnf error: retry $iter in 10s" && sleep 10; done; (exit $exit_code )
26+ {{- end }}
27+
2028RUN true && \
2129 # ECE needs to create config here under non-1000 user
2230 chmod 0777 {{ $beatHome }} && \
@@ -71,6 +79,7 @@ FROM {{ .from }}
7179
7280ENV BEAT_SETUID_AS= {{ .user }}
7381
82+ <<<<<<< HEAD
7483{{- if contains .from " ubi-minimal" }}
7584RUN 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 )
7685{{- end }}
@@ -79,6 +88,9 @@ RUN for iter in {1..10}; do microdnf update -y && microdnf install -y tar gzip f
7988# Delete the existing " ubuntu" user to prevent conflict with the user that is added later.
8089# See https://bugs.launchpad.net /cloud-images/+bug/2005129/comments/2.
8190RUN 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))
8294RUN for iter in {1..10 }; do \
8395 apt-get update -y && \
8496 DEBIAN_FRONTEND= noninteractive apt-get install --no-install-recommends --yes ca-certificates curl gawk xz-utils && \
@@ -193,7 +205,11 @@ RUN apk add --no-cache git make python-3.11 py3.11-pip && \
193205 chmod 0755 {{ $beatHome }}/data/elastic-agent-*/components/connectors
194206{{- end }}
195207
208+ <<<<<<< HEAD
196209{{- if (and (eq .Variant " complete" ) (contains .from " ubuntu" )) }}
210+ =======
211+ {{- if (and (eq .Variant " complete" ) (and (contains .from " redhat/ubi" ) (contains .from " -minimal" ) )) }}
212+ >>>>>>> 56f5d9053 (docker: use the official Red Hat images (#7817))
197213USER root
198214ENV NODE_PATH= {{ $beatHome }}/.node
199215RUN echo \
0 commit comments