-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRecipe_full.17.09
95 lines (78 loc) · 2.2 KB
/
Recipe_full.17.09
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Ubuntu 14.04 based container with ROOT 5 and NuWro 17.09
BootStrap: docker
From: ubuntu:14.04
%help
See NuWro User Guide at https://nuwro.github.io/user-guide/
%labels
Maintainer [email protected]
OS Ubuntu14.04
ROOT 5.99/06
NuWro 17.09
%environment
export ROOTSYS=/opt/root/
export PATH=$PATH:$ROOTSYS/bin/:/opt/nuwro/bin/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib/
%post
##### INSTALL ALL DEPENDENCIES #####
apt update && apt install -y --no-install-recommends \
binutils \
ca-certificates \
cmake \
dpkg-dev \
g++ \
gcc \
gfortran \
git \
graphviz-dev \
libavahi-compat-libdnssd-dev \
libfftw3-dev \
libftgl-dev \
libglew1.5-dev \
libgsl0-dev \
libkrb5-dev \
libldap2-dev \
libmysqlclient-dev \
libpcre3-dev \
libqt4-dev \
libssl-dev \
libx11-dev \
libxext-dev \
libxft-dev \
libxml2-dev \
libxpm-dev \
python-dev \
xlibmesa-glu-dev \
wget
# clean after apt
rm -rf /var/lib/apt/lists/*
# create g77 symbolic link for pythia installer
ln -s /usr/bin/gfortran /usr/bin/g77
##### INSTALL ROOT with PYTHIA #####
# get ROOT
cd /opt/
wget https://root.cern.ch/download/root_v5.99.06.source.tar.gz
tar -zxf root_v5.99.06.source.tar.gz
rm root_v5.99.06.source.tar.gz
# get PYTHIA
wget http://neutrino.ift.uni.wroc.pl/files/pythia6.tar.gz
tar -zxf pythia6.tar.gz
rm pythia6.tar.gz
cd pythia6 && ./makePythia6.linux && cd ..
mkdir root/lib
mv pythia6/libPythia6.so root/lib
rm -rf pythia6
# compile ROOT
cd root && ./configure --with-pythia6-libdir=lib --enable-builtin-freetype
make
export ROOTSYS=/opt/root/
export PATH=$PATH:$ROOTSYS/bin/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib/
##### INSTALL NuWro #####
cd /opt/
# to avoid "Problem with the SSL CA cert (path? access rights?)"
update-ca-certificates
git clone -b nuwro_17.09 --depth 1 https://github.com/NuWro/nuwro.git
cd nuwro
make
%runscript
exec /opt/nuwro/bin/nuwro "$@"