Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump CUDA and base Ubuntu version #29

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ The following `--build-arg` are available for the `dockerdl-base` image.
| `USERNAME` | User name | `coder` | Any string or `$USER` |
| `USERID` | User ID | `1000` | `$(id -u $USER)` |
| `GROUPID` | Group ID | `1000` | `$(id -g $USER)` |
| `CUDA_VER` | CUDA version | `12.4.1` | |
| `UBUNTU_VER` | Ubuntu version | `22.04` | `22.04`, `20.04`, `18.04` |
| `CUDA_VER` | CUDA version | `12.6.1` | |
| `UBUNTU_VER` | Ubuntu version | `24.04` | `24.04`, `22.04`, `20.04` |

> [!WARNING]
> **Not all combinations of `--build-arg` are tested.**
Expand Down
7 changes: 4 additions & 3 deletions base.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build arguments
ARG CUDA_VER=12.4.1
ARG UBUNTU_VER=22.04
ARG CUDA_VER=12.6.1
ARG UBUNTU_VER=24.04
# Download the base image
FROM nvidia/cuda:${CUDA_VER}-cudnn-runtime-ubuntu${UBUNTU_VER}
# you can check for all available images at https://hub.docker.com/r/nvidia/cuda/tags
Expand Down Expand Up @@ -40,7 +40,8 @@ RUN curl -L -o zellij.tar.gz https://github.com/zellij-org/zellij/releases/downl
zellij --version

# Add a user `${USERNAME}` so that you're not developing as the `root` user
RUN groupadd -g ${GROUPID} ${USERNAME} && \
RUN userdel -r ubuntu && \
groupadd -g ${GROUPID} ${USERNAME} && \
useradd ${USERNAME} \
--create-home \
--uid ${USERID} \
Expand Down
7 changes: 4 additions & 3 deletions conda.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG CUDA_VER=12.4.1
ARG UBUNTU_VER=22.04
ARG CUDA_VER=12.6.1
ARG UBUNTU_VER=24.04
# Download the base image
FROM nvidia/cuda:${CUDA_VER}-cudnn-runtime-ubuntu${UBUNTU_VER}
# you can check for all available images at https://hub.docker.com/r/nvidia/cuda/tags
Expand Down Expand Up @@ -57,7 +57,8 @@ RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86
sudo wget --quiet https://github.com/tartansandal/conda-bash-completion/raw/master/conda -P /etc/bash_completion.d/

# Add a user `${USERNAME}` so that you're not developing as the `root` user
RUN groupadd -g ${GROUPID} ${USERNAME} && \
RUN userdel -r ubuntu && \
groupadd -g ${GROUPID} ${USERNAME} && \
useradd ${USERNAME} \
--create-home \
--uid ${USERID} \
Expand Down
Loading