-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_container2.def
More file actions
55 lines (48 loc) · 1.48 KB
/
Copy pathsetup_container2.def
File metadata and controls
55 lines (48 loc) · 1.48 KB
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
Bootstrap: localimage
From: sandbox_container1
%files
root_v6.30.02.source.tar.gz /opt/
Generator-R-3_04_00.tar.gz /opt/
do_end_genie.sh /opt/
%post
cd /opt
tar -xzf root_v6.30.02.source.tar.gz
cd root-6.30.02
mkdir -p build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/opt/root \
-DPYTHON_EXECUTABLE=$(which python3) \
-Dpyroot=ON \
-Droofit=ON \
-Dbuiltin_afterimage=ON \
-Dminuit2=ON \
-Dgsl=ON \
-Dfftw3=ON \
-Dmathmore=ON \
-Dbuiltin_gsl=OFF \
-Dpythia6=ON \
-DPYTHIA6_INCLUDE_DIR=/opt/pythia/v6_428 \
-DPYTHIA6_LIBRARY=/opt/pythia/v6_428/lib/libPythia6.so \
-Dpython3=ON \
-Dxrootd=OFF \
-DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
make install
#GENIE environment
cd /opt
tar -xzf Generator-R-3_04_00.tar.gz
mv Generator-R-3_04_00 GENIE
mkdir -p /opt/GENIE_build
mv /opt/do_end_genie.sh GENIE
%environment
# ROOT environment variables
export ROOTSYS=/opt/root
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH
# GENIE
export GENIE=/opt/GENIE
export LD_LIBRARY_PATH=$GENIE/lib:$LD_LIBRARY_PATH
export PATH=$GENIE/bin:$PATH
%runscript
/bin/bash