From 87c4307c06494b36e829960f8f6fecd2bf153a99 Mon Sep 17 00:00:00 2001 From: Christopher Desiniotis Date: Thu, 16 Jan 2025 09:35:47 -0800 Subject: [PATCH] Use CUDA base images from nvcr.io Signed-off-by: Christopher Desiniotis --- deployments/container/Dockerfile.ubi8 | 6 +++--- deployments/container/Dockerfile.ubuntu | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deployments/container/Dockerfile.ubi8 b/deployments/container/Dockerfile.ubi8 index c365f123..6e666bb1 100644 --- a/deployments/container/Dockerfile.ubi8 +++ b/deployments/container/Dockerfile.ubi8 @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved. +# Copyright (c) 2019-2025, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ ARG GOLANG_VERSION=1.23.1 ARG CUDA_IMAGE=cuda ARG CUDA_VERSION=11.8.0 ARG BASE_DIST=ubi8 -FROM --platform=${TARGETARCH} nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build +FROM --platform=${TARGETARCH} nvcr.io/nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build RUN yum install -y \ wget make git gcc \ @@ -39,7 +39,7 @@ ARG VERSION="N/A" ARG GIT_COMMIT="unknown" RUN make PREFIX=/artifacts cmds -FROM nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST} +FROM nvcr.io/nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST} ENV NVIDIA_DISABLE_REQUIRE="true" ENV NVIDIA_VISIBLE_DEVICES=all diff --git a/deployments/container/Dockerfile.ubuntu b/deployments/container/Dockerfile.ubuntu index ea5d58a3..a43402e9 100644 --- a/deployments/container/Dockerfile.ubuntu +++ b/deployments/container/Dockerfile.ubuntu @@ -1,4 +1,4 @@ -# Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved. +# Copyright (c) 2019-2025, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ ARG GOLANG_VERSION=1.23.1 ARG CUDA_IMAGE=cuda ARG CUDA_VERSION=11.8.0 ARG BASE_DIST=ubuntu20.04 -FROM --platform=${BUILDOS}/amd64 nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build +FROM --platform=${BUILDOS}/amd64 nvcr.io/nvidia/cuda:${CUDA_VERSION}-base-${BASE_DIST} as build RUN apt-get update && \ apt-get install -y wget make git gcc-aarch64-linux-gnu gcc \ @@ -44,7 +44,7 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \ fi && \ make CC=${cc} GOARCH=${TARGETARCH} PREFIX=/artifacts cmds -FROM nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST} +FROM nvcr.io/nvidia/${CUDA_IMAGE}:${CUDA_VERSION}-base-${BASE_DIST} ENV NVIDIA_DISABLE_REQUIRE="true" ENV NVIDIA_VISIBLE_DEVICES=all