README.md 3.59 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

cbmdock

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

======================================================    
  
 Software installation inside the container  
  
  Instructions are just copied from FairSoft, FairRoot, CbmRoot installations  

  [CbmRoot](https://git.cbm.gsi.de/computing/cbmroot)  
  [FairSoft](https://github.com/FairRootGroup/FairSoft)  
  [FairRoot](https://fairroot.gsi.de/)  
    
Sergey Gorbunov's avatar
Sergey Gorbunov committed
47
======================================================  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
48
49


Sergey Gorbunov's avatar
Sergey Gorbunov committed
50
== External libraries, listed in the FairSoft dependencies ==  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
51

Sergey Gorbunov's avatar
Sergey Gorbunov committed
52
sudo apt-get update  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
53

Sergey Gorbunov's avatar
Sergey Gorbunov committed
54
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
55

Sergey Gorbunov's avatar
Sergey Gorbunov committed
56
== External libraries needed to compile FairSoft for CBM ==  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
57

Sergey Gorbunov's avatar
Sergey Gorbunov committed
58
sudo apt-get install -y sqlite3 libsqlite3-dev  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
59

Sergey Gorbunov's avatar
Sergey Gorbunov committed
60
== Your lovely Linux tools ==  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
61

Sergey Gorbunov's avatar
Sergey Gorbunov committed
62
sudo apt-get install -y emacs mc x11-apps  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
63

Sergey Gorbunov's avatar
Sergey Gorbunov committed
64
== Configure GIT the way you like it ==  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
65

Sergey Gorbunov's avatar
Sergey Gorbunov committed
66
67
68
69
70
71
72
73
74
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
75

Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
76
77
78
79
80
81
82
83
84
85
86
== 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
87
mkdir ~/src  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
88

Sergey Gorbunov's avatar
Sergey Gorbunov committed
89
90
91
= Install FairSoft ==  

cd ~/src  
Sergey Gorbunov's avatar
Sergey Gorbunov committed
92
93
git clone -b jun19p2 https://github.com/FairRootGroup/FairSoft  
cd FairSoft  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
94

Sergey Gorbunov's avatar
Sergey Gorbunov committed
95
// Interactive Dialog Choices stored in the config.cache file:  
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116

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
117
cd ~/src  
Sergey Gorbunov's avatar
Sergey Gorbunov committed
118
119
120
121
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
122

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

Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
125
126
127
128
129
nice make install -j


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

Sergey Gorbunov's avatar
Sergey Gorbunov committed
130
131
132
133
134
135
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
136
source /home/cbmdock/build/config.sh