README.md 3.27 KB
Newer Older
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
1
2
3
4
5
6
Instructions:

== Install docker on your system ==

https://www.docker.com/get-started

Sergey Gorbunov's avatar
Sergey Gorbunov committed
7
8
9
10
11
== Install X11 ==
For Mac OsX:
1. install XQuartz
2. in XQuartz Setting / Security allow connections from network clients (see X11Settings.png)
(Einstellungen / Sicherheit/ Verbindungen von Netzwerk-Clients erlauben)
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
12
13
14

== Run cbmdockInit.sh script ==

Sergey Gorbunov's avatar
Sergey Gorbunov committed
15
./cbmdockInit.sh
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
16
17
18
19
20

== Re-login, or type

source ~/.baschrc

Sergey Gorbunov's avatar
Sergey Gorbunov committed
21
== Run cbmdock alias. It opens a shell in the container with an actual DISPLAY value ==
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
22

Sergey Gorbunov's avatar
Sergey Gorbunov committed
23
( This command you call each time you want to enter the container. To exit, type "exit". )
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
24
25
26
27
28
29
30

cbmdock


======================================================
===== 
===== Software installation inside the container 
Sergey Gorbunov's avatar
Sergey Gorbunov committed
31
32
33
34
35
36
37
=====  
===== Instructions are just copied from FairSoft, FairRoot, CbmRoot installations  
===== https://git.cbm.gsi.de/computing/cbmroot  
===== https://github.com/FairRootGroup/FairSoft  
===== https://fairroot.gsi.de/  
=====  
======================================================  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
38
39
40
41
42
43


== External libraries, listed in the FairSoft dependencies ==

sudo apt-get update

Sergey Gorbunov's avatar
Sergey Gorbunov committed
44
sudo apt-get install -y cmake cmake-data g++ gcc gfortran debianutils build-essential make patch sed libx11-dev libxft-dev libxext-dev libxpm-dev libxmu-dev libglu1-mesa-dev libgl1-mesa-dev libncurses5-dev curl libcurl4-openssl-dev bzip2 libbz2-dev gzip unzip tar subversion git xutils-dev flex bison lsb-release python-dev libc6-dev-i386 libxml2-dev wget libssl-dev libkrb5-dev automake autoconf libtool
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
45
46
47
48
49
50
51
52
53
54
55

== External libraries needed to compile FairSoft for CBM ==

sudo apt-get install -y sqlite3 libsqlite3-dev

== Your lovely Linux tools ==

sudo apt-get install -y emacs mc x11-apps

== Configure GIT the way you like it ==

Sergey Gorbunov's avatar
Sergey Gorbunov committed
56
57
58
59
60
61
62
63
64
git config --global user.name \<my name\>  
git config --global user.email \<my email\>  
git config --global core.editor emacs  
git config --global core.autocrlf input  
git config --global core.safecrlf true  
git config --global branch.autosetuprebase always  
git config --global credential.helper 'cache --timeout 3600'  
git config --global color.ui true  
git config --global push.default simple  
Sergey Gorbunov's avatar
Sergey Gorbunov committed
65

Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
66
67
68
69
70
71
72
73
74
75
76
== Configure paths for FAIR packages ==

printf "\
\n export SIMPATH=/home/cbmdock/fairsoft \
\n export FAIRROOTPATH=/home/cbmdock/fairroot \
\n export CBMSRCDIR=/home/cbmdock/cbmroot \
\n source /home/cbmdock/build/config.sh \
" >> ~/.bashrc

source ~/.bashrc

Sergey Gorbunov's avatar
Sergey Gorbunov committed
77
mkdir ~/src  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
78

Sergey Gorbunov's avatar
Sergey Gorbunov committed
79
80
81
= Install FairSoft ==  

cd ~/src  
Sergey Gorbunov's avatar
Sergey Gorbunov committed
82
83
git clone -b jun19p2 https://github.com/FairRootGroup/FairSoft  
cd FairSoft  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
84

Sergey Gorbunov's avatar
Sergey Gorbunov committed
85
// Interactive Dialog Choices stored in the config.cache file:  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106

printf "\
compiler=gcc\n\
debug=yes\n\
optimize=yes\n\
build_MQOnly=no\n\
geant4_download_install_data_automatic=yes\n\
geant4_install_data_from_dir=no\n\
geant4mt=yes\n\
build_root6=yes\n\
build_python=yes\n\
install_sim=yes\n\
SIMPATH_INSTALL=$SIMPATH\n\
platform=linux\
" > config.cache

./configure.sh


== Install FairRoot ==

Sergey Gorbunov's avatar
Sergey Gorbunov committed
107
cd ~/src  
Sergey Gorbunov's avatar
Sergey Gorbunov committed
108
109
110
111
git clone -b v18.2.1 https://github.com/FairRootGroup/FairRoot.git  
cd FairRoot  
mkdir build  
cd build  
Sergey Gorbunov's avatar
Sergey Gorbunov committed
112

Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
113
cmake -DCMAKE_INSTALL_PREFIX=$FAIRROOTPATH -DBUILD_UNITTESTS=ON ../.
Sergey Gorbunov's avatar
Sergey Gorbunov committed
114

Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
115
116
117
118
119
nice make install -j


== Install CBMroot in the CBMshare directory, which is a shared Host directory ==

Sergey Gorbunov's avatar
Sergey Gorbunov committed
120
121
122
123
124
125
cd ~  
git clone https://git.cbm.gsi.de/computing/cbmroot  
mkdir build  
cd build  
cmake ../cbmroot  
make -j  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
126
source /home/cbmdock/build/config.sh