diff --git a/rhel10/Dockerfile b/rhel10/Dockerfile index f1277c3a1..6af8c78ec 100644 --- a/rhel10/Dockerfile +++ b/rhel10/Dockerfile @@ -35,7 +35,9 @@ ENV TARGETARCH=$TARGETARCH SHELL ["/bin/bash", "-c"] -RUN dnf update -y && dnf clean all +RUN { grep -qE '^tsflags=.*nodocs' /etc/dnf/dnf.conf || \ + dnf config-manager --save --setopt=tsflags=nodocs; } && \ + dnf update -y && dnf clean all #ARG BASE_URL=http://us.download.nvidia.com/XFree86/Linux-x86_64 ARG BASE_URL=https://us.download.nvidia.com/tesla diff --git a/rhel8/Dockerfile b/rhel8/Dockerfile index efe12cb57..727757183 100644 --- a/rhel8/Dockerfile +++ b/rhel8/Dockerfile @@ -34,7 +34,10 @@ ENV TARGETARCH=$TARGETARCH SHELL ["/bin/bash", "-c"] -RUN dnf update -y && dnf clean all +RUN { dnf config-manager --help >/dev/null 2>&1 || \ + dnf install -y --nodocs 'dnf-command(config-manager)'; } && \ + dnf config-manager --save --setopt=tsflags=nodocs && \ + dnf update -y && dnf clean all #ARG BASE_URL=http://us.download.nvidia.com/XFree86/Linux-x86_64 ARG BASE_URL=https://us.download.nvidia.com/tesla diff --git a/rhel9/Dockerfile b/rhel9/Dockerfile index ae1d0f37b..db77e9604 100644 --- a/rhel9/Dockerfile +++ b/rhel9/Dockerfile @@ -34,7 +34,9 @@ ENV TARGETARCH=$TARGETARCH SHELL ["/bin/bash", "-c"] -RUN dnf update -y && dnf clean all +RUN { grep -qE '^tsflags=.*nodocs' /etc/dnf/dnf.conf || \ + dnf config-manager --save --setopt=tsflags=nodocs; } && \ + dnf update -y && dnf clean all #ARG BASE_URL=http://us.download.nvidia.com/XFree86/Linux-x86_64 ARG BASE_URL=https://us.download.nvidia.com/tesla diff --git a/vgpu-manager/rhel8/Dockerfile b/vgpu-manager/rhel8/Dockerfile index bb4f5b470..c34958554 100644 --- a/vgpu-manager/rhel8/Dockerfile +++ b/vgpu-manager/rhel8/Dockerfile @@ -23,7 +23,8 @@ RUN chmod +x NVIDIA-Linux-${DRIVER_ARCH}-${DRIVER_VERSION}-vgpu-kvm.run COPY nvidia-driver /usr/local/bin COPY ocp_dtk_entrypoint /usr/local/bin -RUN dnf install -y pciutils && \ +RUN dnf config-manager --save --setopt=tsflags=nodocs && \ + dnf install -y pciutils && \ dnf clean all && \ rm -rf /var/cache/dnf/* diff --git a/vgpu-manager/rhel9/Dockerfile b/vgpu-manager/rhel9/Dockerfile index 2a1ae8520..526e3b5f5 100644 --- a/vgpu-manager/rhel9/Dockerfile +++ b/vgpu-manager/rhel9/Dockerfile @@ -36,7 +36,8 @@ RUN chmod +x NVIDIA-Linux-${DRIVER_ARCH}-${DRIVER_VERSION}-vgpu-kvm.run COPY nvidia-driver /usr/local/bin COPY ocp_dtk_entrypoint /usr/local/bin -RUN dnf install -y pciutils && \ +RUN dnf config-manager --save --setopt=tsflags=nodocs && \ + dnf install -y pciutils && \ dnf clean all && \ rm -rf /var/cache/dnf/*