File tree Expand file tree Collapse file tree 5 files changed +10
-25
lines changed Expand file tree Collapse file tree 5 files changed +10
-25
lines changed Original file line number Diff line number Diff line change @@ -62,15 +62,12 @@ RUN sh /tmp/install.sh depinstall && \
6262
6363ADD drivers drivers/
6464
65- # Fetch the installer automatically for passthrough/baremetal types
65+ # Fetch the installer, fabricmanager and libnvidia-nscq automatically for passthrough/baremetal types
6666RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
6767 cd drivers && \
6868 DRIVER_ARCH=${TARGETARCH/amd64/x86_64} && DRIVER_ARCH=${DRIVER_ARCH/arm64/aarch64} && \
6969 curl -fSsl -O $BASE_URL/$DRIVER_VERSION/NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run && \
70- chmod +x NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run; fi
71-
72- # Install fabric-manager packages
73- RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$TARGETARCH" != "arm64" ]; then \
70+ chmod +x NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run && \
7471 versionArray=(${DRIVER_VERSION//./ }); \
7572 DRIVER_BRANCH=${versionArray[0]}; \
7673 if [ ${versionArray[0]} -ge 470 ] || ([ ${versionArray[0]} == 460 ] && [ ${versionArray[1]} -ge 91 ]); then \
Original file line number Diff line number Diff line change @@ -61,15 +61,12 @@ RUN sh /tmp/install.sh depinstall && \
6161
6262ADD drivers drivers/
6363
64- # Fetch the installer automatically for passthrough/baremetal types
64+ # Fetch the installer, fabricmanager and libnvidia-nscq automatically for passthrough/baremetal types
6565RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
6666 cd drivers && \
6767 DRIVER_ARCH=${TARGETARCH/amd64/x86_64} && DRIVER_ARCH=${DRIVER_ARCH/arm64/aarch64} && \
6868 curl -fSsl -O $BASE_URL/$DRIVER_VERSION/NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run && \
69- chmod +x NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run; fi
70-
71- # Install fabric-manager packages
72- RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$TARGETARCH" != "arm64" ]; then \
69+ chmod +x NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run && \
7370 versionArray=(${DRIVER_VERSION//./ }); \
7471 DRIVER_BRANCH=${versionArray[0]}; \
7572 dnf module enable -y nvidia-driver:${DRIVER_BRANCH}-dkms && \
Original file line number Diff line number Diff line change @@ -75,13 +75,10 @@ COPY --from=build /work/vgpu-util /usr/local/bin
7575
7676ADD drivers drivers/
7777
78- # Fetch the installer automatically for passthrough/baremetal types
78+ # Fetch the installer, fabricmanager and libnvidia-nscq automatically for passthrough/baremetal types
7979RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
8080 cd drivers && \
81- /tmp/install.sh download_installer; fi
82-
83- # Fabric manager packages are not available for arm64
84- RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$TARGETARCH" != "arm64" ]; then \
81+ /tmp/install.sh download_installer && \
8582 apt-get update && \
8683 apt-get install -y --no-install-recommends nvidia-fabricmanager-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 \
8784 libnvidia-nscq-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 && \
Original file line number Diff line number Diff line change @@ -75,13 +75,10 @@ COPY --from=build /work/vgpu-util /usr/local/bin
7575
7676ADD drivers drivers/
7777
78- # Fetch the installer automatically for passthrough/baremetal types
78+ # Fetch the installer, fabricmanager and libnvidia-nscq automatically for passthrough/baremetal types
7979RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
8080 cd drivers && \
81- /tmp/install.sh download_installer; fi
82-
83- # Fabric manager packages are not available for arm64
84- RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$TARGETARCH" != "arm64" ]; then \
81+ /tmp/install.sh download_installer && \
8582 apt-get update && \
8683 apt-get install -y --no-install-recommends nvidia-fabricmanager-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 \
8784 libnvidia-nscq-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 && \
Original file line number Diff line number Diff line change @@ -72,13 +72,10 @@ COPY --from=build /work/vgpu-util /usr/local/bin
7272
7373ADD drivers drivers/
7474
75- # Fetch the installer automatically for passthrough/baremetal types
75+ # Fetch the installer, fabricmanager and libnvidia-nscq automatically for passthrough/baremetal types
7676RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
7777 cd drivers && \
78- /tmp/install.sh download_installer; fi
79-
80- # Fabric manager packages are not available for arm64
81- RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$TARGETARCH" != "arm64" ]; then \
78+ /tmp/install.sh download_installer && \
8279 apt-get update && \
8380 apt-get install -y --no-install-recommends nvidia-fabricmanager-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 \
8481 libnvidia-nscq-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 && \
You can’t perform that action at this time.
0 commit comments