Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# point to an image that exists, see here for list: https://hub.docker.com/r/nvidia/cuda/tags

# CUDA_VERSION
ARG CUDA_VERSION=12.5.1
# cuda image supports these images rockylinux9, rockylinux8, ubi9, ubi8, ubuntu24.04, ubuntu22.04, ubuntu20.04
ARG CUDA_VERSION=13.1.0
# cuda image supports these images rockylinux9, rockylinux8, ubi9, ubi8, ubuntu24.04, ubuntu22.04
# Note: Testing has only been done with the ubuntu variants.
ARG DISTRO_FLAVOR=ubuntu24.04

# Use build arguments to select our base image or just stick with the defaults above.
FROM nvidia/cuda:$CUDA_VERSION-base-$DISTRO_FLAVOR AS base
ARG DCGM_VERSION=4.2.3-2
ARG GO_VERSION=1.24.4
ARG DCGM_VERSION=4.4.2-1
ARG GO_VERSION=1.25.5
ENV DEBIAN_FRONTEND=noninteractive

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
Expand All @@ -22,8 +22,6 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# hadolint ignore=DL3015,DL3008
RUN apt-get update && apt-get install -y --no-install-recommends \
gnupg2 curl ca-certificates && \
curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb | apt-get install -y --no-install-recommends && \
curl -fsSL https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64/nvidia-machine-learning-repo-ubuntu2004_1.0.0-1_amd64.deb | apt-get install -y --no-install-recommends && \
curl -fsSL https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz | tar -C /usr/local -xz && \
apt-get purge --autoremove -y curl && \
apt-get install -y datacenter-gpu-manager-4-dev=1:${DCGM_VERSION} && \
Expand Down
8 changes: 4 additions & 4 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ target "default" {
tags = ["go-dcgm:${distro}-go${go}-cuda${cuda}-dcgm${dcgm}"]
platforms = ["linux/amd64"]
matrix = {
go = ["1.24.4"]
distro = ["ubuntu24.04", "ubuntu22.04", "ubuntu20.04"]
cuda = ["12.9.1", "12.5.1"]
dcgm = ["4.2.3-2"]
go = ["1.25.5"]
distro = ["ubuntu24.04", "ubuntu22.04"]
cuda = ["12.9.1", "13.1.0"]
dcgm = ["4.4.2-1"]
}
args = {
GO_VERSION = go
Expand Down
Loading