mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 09:59:12 +00:00
44 lines
1.6 KiB
Docker
44 lines
1.6 KiB
Docker
|
FROM ubuntu:18.04
|
||
|
LABEL maintainer "Robert Maynard<robert.maynard@kitware.com>"
|
||
|
|
||
|
# Base dependencies for building VTK-m projects
|
||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||
|
cmake \
|
||
|
curl \
|
||
|
g++ \
|
||
|
git \
|
||
|
git-lfs \
|
||
|
libmpich-dev \
|
||
|
libomp-dev \
|
||
|
libtbb-dev \
|
||
|
mpich \
|
||
|
ninja-build \
|
||
|
software-properties-common
|
||
|
|
||
|
# extra dependencies for charm machine
|
||
|
RUN add-apt-repository ppa:jonathonf/gcc-9.2
|
||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||
|
clang-8 \
|
||
|
g++-9 \
|
||
|
&& \
|
||
|
rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
# Need to run git-lfs install manually on ubuntu based images when using the
|
||
|
# system packaged version
|
||
|
RUN git-lfs install
|
||
|
|
||
|
# Provide a consistent CMake path across all images
|
||
|
# Allow tests that require CMake to work correctly
|
||
|
RUN mkdir /opt/cmake && \
|
||
|
curl -L https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-Linux-x86_64.sh > cmake-3.16.4-Linux-x86_64.sh && \
|
||
|
sh cmake-3.16.4-Linux-x86_64.sh --prefix=/opt/cmake/ --exclude-subdir --skip-license
|
||
|
|
||
|
# 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/ && \
|
||
|
curl -L https://github.com/Kitware/CMake/releases/download/v3.17.0/cmake-3.17.0-Linux-x86_64.sh > cmake-3.17.0-Linux-x86_64.sh && \
|
||
|
sh cmake-3.17.0-Linux-x86_64.sh --prefix=/opt/cmake-latest/ --exclude-subdir --skip-license && \
|
||
|
ln -s /opt/cmake-latest/bin/ctest /opt/cmake-latest/bin/ctest-latest
|
||
|
|
||
|
ENV PATH "/opt/cmake/bin:/opt/cmake-latest/bin:${PATH}"
|