Skip to content

Commit

Permalink
Add Ubuntu version and Python version to args for cuda in order to in…
Browse files Browse the repository at this point in the history
…stall newer Python on image
  • Loading branch information
raulcd committed Sep 16, 2024
1 parent 04fba6b commit 2c71ba3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -917,15 +917,19 @@ services:
# Parameters:
# ARCH: amd64
# CUDA: <depends on your nvidia driver, should match system CUDA>
image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-python-3
# UBUNTU: 20.04, 22.04, ...
# PYTHON: 3.9, 3.10, 3.11, ...
image: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-python-${PYTHON}
build:
context: .
dockerfile: ci/docker/linux-apt-python-3.dockerfile
cache_from:
- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-python-3
- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-python-${PYTHON}
args:
base: ${REPO}:${ARCH}-ubuntu-${UBUNTU}-cuda-${CUDA}-cpp
numba: ${NUMBA}
ubuntu: ${UBUNTU}
python: ${PYTHON}
shm_size: *shm-size
environment:
<<: [*common, *ccache, *sccache]
Expand Down

0 comments on commit 2c71ba3

Please sign in to comment.