From 50c301ff3def254715994206a6b705c6550b2b18 Mon Sep 17 00:00:00 2001 From: OpenShift Cherrypick Robot Date: Mon, 19 Aug 2024 17:00:51 +0200 Subject: [PATCH] add `-y` to `microdnf update` to unstuck builds (#1580) Builds would be stuck due to waiting on the promt to accept upgraded packages. Signed-off-by: Jacob Baungard Hansen Co-authored-by: Jacob Baungard Hansen --- collectors/metrics/Containerfile.operator | 2 +- collectors/metrics/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/collectors/metrics/Containerfile.operator b/collectors/metrics/Containerfile.operator index 6299af029..bca219192 100644 --- a/collectors/metrics/Containerfile.operator +++ b/collectors/metrics/Containerfile.operator @@ -43,7 +43,7 @@ LABEL org.label-schema.vendor="Red Hat" \ io.k8s.description="$IMAGE_DESCRIPTION" \ io.openshift.tags="$IMAGE_OPENSHIFT_TAGS" -RUN microdnf update &&\ +RUN microdnf update -y &&\ microdnf install ca-certificates vi -y --nodocs &&\ mkdir /licenses &&\ microdnf clean all diff --git a/collectors/metrics/Dockerfile b/collectors/metrics/Dockerfile index 197ca4a09..8351b8c56 100644 --- a/collectors/metrics/Dockerfile +++ b/collectors/metrics/Dockerfile @@ -42,7 +42,7 @@ LABEL org.label-schema.vendor="Red Hat" \ io.k8s.description="$IMAGE_DESCRIPTION" \ io.openshift.tags="$IMAGE_OPENSHIFT_TAGS" -RUN microdnf update &&\ +RUN microdnf update -y &&\ microdnf install ca-certificates vi -y --nodocs &&\ mkdir /licenses &&\ microdnf clean all