Skip to content

Commit

Permalink
ubuntu24.04 ci pipeline fix
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <[email protected]>
  • Loading branch information
shivakunv committed Nov 19, 2024
1 parent 007a5ef commit 66c0ead
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions ubuntu24.04/precompiled/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN apt-key del 7fa2af80 && \
apt-key adv --fetch-keys "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/3bf863cc.pub"

RUN dpkg --add-architecture i386 && \
apt-get purge -y && apt-get update && apt-get install -y --no-install-recommends \
apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
build-essential \
ca-certificates \
Expand Down Expand Up @@ -66,7 +66,7 @@ RUN apt-get update -y; \
apt search nvidia; \
apt list *nvidia*; \
echo "SHIVA222"; \
apt-get-- install -y --no-install-recommends nvidia-driver-${DRIVER_BRANCH}-server \
apt-get install -y --no-install-recommends nvidia-driver-${DRIVER_BRANCH}-server \
${FABRIC_PACKAGE} \
${LIBNSCQ_PACKAGE} && \
apt-get purge -y \
Expand All @@ -75,17 +75,11 @@ RUN apt-get update -y; \
nvidia-kernel-source-${DRIVER_BRANCH}-server \
xserver-xorg-video-nvidia-${DRIVER_BRANCH}-server && \
rm -rf /var/lib/apt/lists/*;


# update pkg cache and download pkgs for driver module installation during runtime.
# this is done to avoid shipping .ko files.
# avoid cleaning the cache after this to retain these packages during runtime.
# RUN apt search linux-objects-nvidia* ; \
# apt search linux-signatures-nvidia*;

# RUN apt update && apt-get update && apt search linux-modules*

RUN apt-get purge -y && apt update && apt-get update && apt-get install --download-only --no-install-recommends -y linux-objects-nvidia-${DRIVER_BRANCH}-server-${KERNEL_VERSION} \
RUN apt-get update && apt-get install --download-only --no-install-recommends -y linux-objects-nvidia-${DRIVER_BRANCH}-server-${KERNEL_VERSION} \
linux-signatures-nvidia-${KERNEL_VERSION} \
linux-modules-nvidia-${DRIVER_BRANCH}-server-${KERNEL_VERSION} \
# add support for nvidia open source driver packages during runtime
Expand All @@ -98,5 +92,4 @@ WORKDIR /drivers
# Remove cuda repository to avoid GPG errors
RUN rm -f /etc/apt/sources.list.d/cuda*

RUN apt-get purge -y
ENTRYPOINT ["nvidia-driver", "init"]

0 comments on commit 66c0ead

Please sign in to comment.