From 2f03c6e170bd6c515f441e83d2b9a4709abfa7ec Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Mon, 4 Mar 2024 11:08:48 -0700 Subject: [PATCH] build: use 'baseos' as repo for iproute install The rook/ceph Dockerfile uses dnf to ensure iproute (containing the 'ip' CLI tool) is installed in the Rook image for Multus usage. This comes from the 'baseos' repo, but if any other repos are unavailable temporarily, it can cause the container build to fail. Use the '--repo baseos' flag to help prevent these kinds of failures. Additionally, this will speed up the build slightly since it does not attempt to load any non-necessary repos. This change may make the container build slightly fragile in the future if CentOS changes the name of its baseos repo, or if the Ceph image switches to a non-CentOS base image. Signed-off-by: Blaine Gardner (cherry picked from commit 072884f4512e5be28c6c929e46faa4a8e1f4c7ae) --- images/ceph/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/ceph/Dockerfile b/images/ceph/Dockerfile index 26f6dbb05..268926856 100644 --- a/images/ceph/Dockerfile +++ b/images/ceph/Dockerfile @@ -20,7 +20,7 @@ ARG S5CMD_VERSION ARG S5CMD_ARCH # install 'ip' tool for Multus -RUN dnf install -y --setopt=install_weak_deps=False iproute && dnf clean all +RUN dnf install -y --repo baseos --setopt=install_weak_deps=False iproute && dnf clean all # Install the s5cmd package to interact with s3 gateway RUN curl --fail -sSL -o /s5cmd.tar.gz https://github.com/peak/s5cmd/releases/download/v${S5CMD_VERSION}/s5cmd_${S5CMD_VERSION}_${S5CMD_ARCH}.tar.gz && \