README.md 2.84 KB
Newer Older
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
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
Instructions:

== Install docker on your system ==

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


== Run cbmdockInit.sh script ==


== Re-login, or type

source ~/.baschrc


== Run a shell in the container with an actual DISPLAY value ==

( This command you run each time you want to enter the container. To exit, type "exit". )

cbmdock


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


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

sudo apt-get update

Sergey Gorbunov's avatar
Sergey Gorbunov committed
36
37
38
39
40
41
42
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 \\
Sergey Gorbunov's avatar
update  
Sergey Gorbunov committed
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
  automake autoconf libtool

== 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 ==

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

== 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

= Install FairSoft ==

cd ~
git clone -b jun19p2 https://github.com/FairRootGroup/FairSoft
cd FairSoft

// Interactive Dialog Choices stored in the config.cache file: 

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 ==

cd ~
git clone -b v18.2.1 https://github.com/FairRootGroup/FairRoot.git
cd FairRoot
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$FAIRROOTPATH -DBUILD_UNITTESTS=ON ../.
nice make install -j


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

cd ~
git clone https://git.cbm.gsi.de/computing/cbmroot
mkdir build
cd build
cmake ../cbmroot
make -j

source /home/cbmdock/build/config.sh