forked from HeavyIonAnalysis/AnalysisTree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (18 loc) · 763 Bytes
/
Dockerfile
File metadata and controls
19 lines (18 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM centos:centos7
# install prerequisites
RUN yum install -y centos-release-scl-rh \
which wget git binutils libX11-devel libXpm-devel libXft-devel libXext-devel python-devel && \
yum install -y devtoolset-8-toolchain
# load new c++ toolchain
SHELL [ "/usr/bin/scl", "enable", "devtoolset-8"]
# install cmake
RUN wget -qO- "https://cmake.org/files/v3.17/cmake-3.17.0-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local
# install root
RUN wget -q https://root.cern/download/root_v6.20.04.source.tar.gz -O /tmp/root.tar.gz && \
tar -C /tmp -zxf /tmp/root.tar.gz && \
mkdir /tmp/build_root && \
cd /tmp/build_root && \
cmake ../root-6.20.04 -Dcxx17=ON -DMathMore=ON -Dbuiltin_gsl=ON && \
make install -j4 && \
rm -r /tmp/* && \
which root