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 <blaine.gardner@ibm.com>
(cherry picked from commit 072884f451)
This commit is contained in:
1 parent
9801721833
commit
2f03c6e170
1 file changed
+1
-1
@@ -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 && \
|
||||
|
||||
Reference in new issue
Block a user