rapidsai / miniforge-cuda

https://hub.docker.com/r/rapidsai/miniforge-cuda/
12 stars 8 forks source link

Initial Work #1

Closed ajschmidt8 closed 2 years ago

ajschmidt8 commented 2 years ago

This PR adds the Dockerfile and associated GitHub Actions (for PRs & merges) for the new rapidsai/mambaforge-cuda images.

The images simply copy /opt/conda from the official condaforge/mambaforge images and install the expected Python version.

For posterity, the last few lines in the Dockerfile came from inspecting the mambaforge Dockerfile here:

# in Dockerfile
RUN \
  # ensure conda environment is always activated
  ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh; \
  echo ". /opt/conda/etc/profile.d/conda.sh; conda activate base" >> /etc/skel/.bashrc; \
  echo ". /opt/conda/etc/profile.d/conda.sh; conda activate base" >> ~/.bashrc; \
  # install expected Python version
  mamba install -y python="${PY_VER}"; \
  find /opt/conda -follow -type f -name '*.a' -delete; \
  find /opt/conda -follow -type f -name '*.pyc' -delete; \
  conda clean -afy