forked from reanahub/reana-env-root6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
65 lines (63 loc) · 1.66 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Environment: ROOT6 on Ubuntu/Bionic:
FROM docker.io/library/ubuntu:bionic
# hadolint ignore=DL3008
RUN apt-get update -y && \
apt-get install --no-install-recommends -y \
binutils \
build-essential \
cmake \
cpp \
dpkg-dev \
g++ \
gcc \
gfortran \
git \
graphviz-dev \
libavahi-compat-libdnssd-dev \
libffi-dev \
libfftw3-dev \
libftgl-dev \
libglew1.5-dev \
libgsl0-dev \
libkrb5-dev \
libldap2-dev \
libmysqlclient-dev \
libpcre3-dev \
libpq-dev \
libqt4-dev \
libssl-dev \
libx11-dev \
libxext-dev \
libxext-dev \
libxft-dev \
libxml2-dev \
libxpm-dev \
libxpm-dev \
make \
openssl \
python-dev \
python-pip \
xlibmesa-glu-dev \
zlib1g-dev && \
rm -rf /var/lib/apt/lists/* && \
apt-get -y autoremove && \
apt-get -y clean
ENV ROOTSYS /usr/local
# hadolint ignore=DL3003
RUN git clone --quiet --depth 1 --branch v6-18-04 http://root.cern.ch/git/root.git /code/root && \
cd /code && \
mkdir _build && \
cd _build && \
cmake -Dcxx17=On -Dbuiltin_xrootd=On ../root && \
cmake --build . -- -j3 && \
cmake -P cmake_install.cmake && \
cd / && \
rm -rf /code
# Set helpful environment variables to point to local ROOT installation
ENV CMAKE_PREFIX_PATH=/usr/local
ENV DYLD_LIBRARY_PATH=/usr/local/lib
ENV JUPYTER_PATH=/usr/local/etc/notebook
ENV LD_LIBRARY_PATH=/usr/local/lib
ENV LIBPATH=/usr/local/lib
ENV PYTHONPATH=/usr/local/lib
ENV SHLIB_PATH=/usr/local/lib