Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.61 KB

README.md

File metadata and controls

35 lines (28 loc) · 1.61 KB

CI

docker-images

Repository to host the Docker images files used in conda-forge

Building and testing locally

It can be useful to build and test these images locally. For many images this can be done by running docker build from the root-level of this repo and passing in the path to the Dockerfile that you wish to build. For example:

docker build --rm --build-arg DISTRO_NAME=centos --build-arg DISTRO_VER=6 -f linux-anvil-comp7/Dockerfile .

However, certain images, such as those building CUDA, will need to have environment variables passed in to be able to build. In this case, you will want to use a command similar to the following:

docker build --rm --build-arg DISTRO_NAME=centos --build-arg DISTRO_VER=6 --build-arg CUDA_VER=10.2 -f linux-anvil-cuda/Dockerfile .

Environment variables

  • $CUDA_VER: This is the cuda & cudatoolkit version that will be used. The value of this variable should be in major-minor for, e.g. 9.2 for versions 9.x and 10.x. For versions 11.x the variable should be in major-minor-patch format, e.g. 11.2.0.
  • DISTRO_NAME: This is the Linux distro image name that should be built with. Should match the upstream Docker image, e.g. centos.
  • DISTRO_VER: This is version of Linux distro (typical CentOS) that the image should be built with. This is the major-only version number, e.g. 6 or 7. You'll usually want to build with the lowest working value for maximum compatibility.