2020-02-12 20:19:29 +00:00
|
|
|
FROM nvidia/cuda:10.2-devel-centos7
|
|
|
|
LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>"
|
|
|
|
|
2021-02-08 16:12:29 +00:00
|
|
|
RUN yum install make gcc gcc-c++ curl cuda-compat-10-2 centos-release-scl -y
|
2020-02-12 20:19:29 +00:00
|
|
|
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash
|
2021-02-08 16:12:29 +00:00
|
|
|
RUN yum install git git-lfs devtoolset-7-gcc-c++ -y
|
2020-02-12 20:19:29 +00:00
|
|
|
|
|
|
|
# Provide a consistent CMake path across all images
|
|
|
|
# Install CMake 3.13 as it is the minium for cuda builds
|
|
|
|
RUN mkdir /opt/cmake && \
|
|
|
|
curl -L https://github.com/Kitware/CMake/releases/download/v3.13.5/cmake-3.13.5-Linux-x86_64.sh > cmake-3.13.5-Linux-x86_64.sh && \
|
2020-05-29 21:04:18 +00:00
|
|
|
sh cmake-3.13.5-Linux-x86_64.sh --prefix=/opt/cmake/ --exclude-subdir --skip-license && \
|
|
|
|
rm cmake-3.13.5-Linux-x86_64.sh
|
2020-02-12 20:19:29 +00:00
|
|
|
|
|
|
|
# Provide CMake 3.17 so we can re-run tests easily
|
|
|
|
# This will be used when we run just the tests
|
|
|
|
RUN mkdir /opt/cmake-latest/ && \
|
2020-05-29 21:04:18 +00:00
|
|
|
curl -L https://github.com/Kitware/CMake/releases/download/v3.17.3/cmake-3.17.3-Linux-x86_64.sh > cmake-3.17.3-Linux-x86_64.sh && \
|
|
|
|
sh cmake-3.17.3-Linux-x86_64.sh --prefix=/opt/cmake-latest/ --exclude-subdir --skip-license && \
|
|
|
|
rm cmake-3.17.3-Linux-x86_64.sh && \
|
2020-02-12 20:19:29 +00:00
|
|
|
ln -s /opt/cmake-latest/bin/ctest /opt/cmake-latest/bin/ctest-latest
|
|
|
|
|
2021-02-08 16:12:29 +00:00
|
|
|
ENV PATH "/opt/rh/devtoolset-7/root/bin:/opt/cmake/bin:/opt/cmake-latest/bin:${PATH}"
|