Skip to content

Commit

Permalink
feat: update cuda image
Browse files Browse the repository at this point in the history
  • Loading branch information
vaggeliskls authored Jan 20, 2024
1 parent 465a41e commit f4cd0a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gpu-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
K3S_GPU_IMG: ghcr.io/turintech/k3s:v1.27.4-k3s1-cuda
K3S_TAG: v1.27.4-k3s1
NVIDIA_CONTAINER_RUNTIME_VERSION: 3.7.0-1
NVIDIA_IMAGE: nvidia/cuda:11.2.2-base-ubuntu20.04
NVIDIA_IMAGE: nvidia/cuda:11.8.0-base-ubuntu22.04
jobs:
publish-image:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion docs/usage/advanced/cuda/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# https:/k3d-io/k3d/issues/1108
ARG K3S_TAG="v1.27.4-k3s1"
ARG NVIDIA_IMAGE="nvidia/cuda:11.2.0-base-ubuntu18.04"
ARG NVIDIA_IMAGE="nvidia/cuda:11.8.0-base-ubuntu22.04"
FROM rancher/k3s:$K3S_TAG as k3s

FROM $NVIDIA_IMAGE

ARG NVIDIA_CONTAINER_RUNTIME_VERSION
ENV NVIDIA_CONTAINER_RUNTIME_VERSION=$NVIDIA_CONTAINER_RUNTIME_VERSION

# # Install NVIDIA Container Runtime nvidia/cuda:11.2.2-base-ubuntu20.04
# RUN curl -s -L https://nvidia.github.io/nvidia-container-runtime/gpgkey | apt-key add -
# RUN curl -s -L https://nvidia.github.io/nvidia-container-runtime/ubuntu20.04/nvidia-container-runtime.list | tee /etc/apt/sources.list.d/nvidia-container-runtime.list

RUN apt-get update && \
apt-get -y install gnupg2 curl nvidia-container-runtime=${NVIDIA_CONTAINER_RUNTIME_VERSION} && \
chmod 1777 /tmp && \
Expand Down

0 comments on commit f4cd0a3

Please sign in to comment.