Skip to content

Commit

Permalink
build: use 'baseos' as repo for iproute install
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 072884f)
  • Loading branch information
BlaineEXE authored and subhamkrai committed Mar 5, 2024
1 parent 2cf920b commit 158bfcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/ceph/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 158bfcb

Please sign in to comment.