4 # / ___| __ _ _ __ __ _ __ _ _ __ | |_ _____ _| |_
5 # | | _ / _` | '__/ _` |/ _` | '_ \| __/ _ \ \/ / __|
6 # | |_| | (_| | | | (_| | (_| | | | | || __/> <| |_
7 # \____|\__,_|_| \__, |\__,_|_| |_|\__\___/_/\_\\__|
10 # This receipe is for specific use (Open Stack && Debien)
11 # Step by step installation process (advanced user mainly)
12 # For others: a docker image is coming
14 ########################################################################
15 # To be sure to have updated packages
19 # Tmux to avoid disconnections during the installation process
20 # Htop for visual monitoring
21 sudo apt
install tmux htop
23 ########################################################################
24 #sudo sed -i "s/stretch/buster/g" /etc/apt/sources.list
26 #sudo apt dist-upgrade
27 # sudo reboot #recommended
28 ########################################################################
31 sudo apt
install liblzma
-dev libpcre3
-dev libblas
-dev liblapack
-dev pkg
-config libgsl
-dev libbz2
-dev postgresql postgresql
-server-dev-11 nginx libigraph0
-dev libgfortran
-8-dev
34 #git config --global user.email "contact@gargantext.org"
35 #git config --global user.name "Gargantua"
38 ########################################################################
42 sudo adduser
--disabled-password --gecos "" $USER
44 ########################################################################
46 #sudo mv -if /home/$USER /srv/
47 #sudo ln -s /srv/$USER
49 curl
-sSL https
://get.haskellstack.org
/ | sh
56 git clone https
://gitlab.iscpif.fr
/gargantext
/haskell
-gargantext.git
60 git clone https
://gitlab.iscpif.fr
/gargantext
/purescript
-gargantext
61 cd purescript
-gargantext
64 curl
-sS https
://dl.yarnpkg.com
/debian
/pubkey.gpg
| sudo apt
-key add
-
65 echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo
tee /etc
/apt
/sources.list.d
/yarn.list
69 yarn
install && yarn
install-ps && yarn build
71 # temporary bug (help welcome)
72 cp src
/index.html dist
/index.html
74 #########################################################################
76 # stack install should be enough but all process is the following steps
77 stack setup
&& stack build
&& stack
install
79 #########################################################################
87 git clone https
://gitlab.iscpif.fr
/gargantext
/clustering
-louvain-cplusplus.git
88 cd clustering
-louvain-cplusplus
92 sudo apt
install default
-jdk
93 wget https
://dl.gargantext.org
/coreNLP.
tar.bz2
94 tar xvjf coreNLP.
tar.bz2
95 # CoreNLP needs to be started
100 # Specific to our servers
102 #### Configure timezone and locale ###################################
104 #echo "########### LOCALES & TZ #################"
105 #echo "Europe/Paris" > /etc/timezone
106 #dpkg-reconfigure --frontend=noninteractive tzdata
107 ##ENV TZ "Europe/Paris"
109 #sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen && \
110 #sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen && \
112 #update-locale LANG=fr_FR.UTF-8 && \
113 #update-locale LANGUAGE=fr_FR.UTF-8 && \
114 #update-locale LC_ALL=fr_FR.UTF-8
115 #################################################################
117 # Database configuration
118 # CREATE USER gargantua WITH PASSWORD $(grep DB_PASS gargantext.ini)
119 # GRANT ALL PRIVILEGES ON DATABASE gargandbV4 to gargantua
121 #######################################################################
122 ## POSTGRESQL DATA (as ROOT)
123 #######################################################################
126 GARGDATA
= "/srv/gargantua/gargandata"
128 sudo apt
install rsync
129 sudo
sed -iP "s%^data_directory.*%data_directory = \'$GARGADATA\'%" /etc
/postgresql
/$PGVersion/main
/postgresql.conf
130 sudo rsync
-av /var
/lib
/postgresql
/$PGVersion/main
$GARGDATA
132 # configure the database with script in devops/postgres
133 # edit gargantext.ini
137 ..........
,,;;;;,,,oKXNNNNNNNNNXXXXXKK0OOxdl
::ccc
:::::;;;;,,,'..
138 .........';;;;;;,,,,'''''''''dXNMMMMMMMMMMMMMMMMMMMWWWNNNWNNNNNNXXXXKKK0Oxddlcc::::::::;;;,,,'....
139 .........
',,,;;;;,,,'''''''''''''''''''oXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWNNNNNNNXXXXKKK0Oxddlcccc
::;;
140 .
::cccllc
:;''''''''''''''''''''.
''''''''oXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNNXXXXKK0O
141 ...
';;;;;;;;;,'''''''''''''''''''''''''''''oXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWNNNNNNX0
142 ;;,,'''''''''''''''''''''''''''''''''''''''oXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
143 '''''''''''''''''''''''''''''''''',;:::cclldkOOOOO00000KKKXXNWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNX
144 '''''''''''''''''''''''''''';:loodkkOO0KKXXkc:;;;;:::::cccloodxkkO0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNX
145 ''''''''''''''''''','''''',,:okKKNMMMMMMMMMk
;,'''''''',''''''',;;cd0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNX
146 ''''''''''''''''''''''',:lxxk0KNNWMWWWNXKKKkoooolllcc
:;,''''''',,:lOMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
147 ''''''''''''''''''',:llx0XWWMMWWWX0kddolcccx0KXXXXKKK0Okxxo
:;'''';:OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
148 '''''''''''''''''':oOXXNMMMMNXOddl
:,'''''''oXNMMMMMMMMMMWWX0l'''';:kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
149 '''''''''''''''':lONWMMMMNXXkl:,,''''''''''dXNMMMMMMMMMMMMWWx,,'';:kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
150 ,'''''''''''',::xXNMMMMWWOoo:''''''''''''''dXNMMMMWNNNNWWWMMk:;'';cOMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
151 ,'''''''''''':oo0MMMMMMWXd,,,,''''''''''',,dXNMMMMNXXXXNWWMMOc
;'';cOMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
152 '''''''''''''lOOXMMMMMMXkl'''''''''''''''''dXNMMWNKOOOO0KKNMKxoccod0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
153 ,'''''''''',:kWWWMMMWWWk
:,'''''''''''''''''dXNMMXOkxxxxxxx0NNNXKKKXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
154 ,''''''''''cxKMMMMMMNKKo'''''''''''''''''''dXNMMXOkxxxxxxx0NWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
155 '''''''''''oKNMMMMMMKddc'''''''''''''''''''dXWMMNX0OOOkO00XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
156 ,''''''''''dNWMMMMMM0oo
:'''''''''''''''''''oXNMMWWX000OKNNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
157 ,'''''''',,xWWMMMMMMOcc;'''''''''''''''''''oXNMMMWNNNXXNWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
158 ,''''''',;;kMMMMMMMMk;;,'''''''''''''''''''dXWMMMMMMMMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
159 ,''''''',::kMMMMMMMMk;;,'''''''''''''''''''dXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
160 ,''''''';::kMMMMMMMMk;;,'''''''''''''''''''dXNMMNKOkkkkkkkkkkkkkkkkkkkkkOOOXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
161 ,''''''',;;kMMMMMMMMO::;'''''''''''''''''''dXNMMKxo
::::;,,,,,,,,,,,;;;;:cll0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
162 ,''''''',,,kMMMMMMMMOcc;'''''''''''''''''''oXNMMXkocc
::;,,,''''''''',,;:loo0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
163 ,'''''''',,xWWMMMMMM0ll:'''''''''''''''''''oXNMMNX0OOOkkxxc
'''''',,cxxkkO00XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
164 ,''''''''''oKNMMMMMMKkkc
'''''''''''''''''''dXWMMMMMMMMMWWWx,,'''',;kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
165 ,''''''''''cdKMMMMMMNXXo'''''''''''''''''''dXWMMMMMMMMMMMMk
,,'''',:kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
166 ,'''''''''',;xWWWMMMMWWk
:;'''''''''''''''''dXNMMMMMMMMMMMMk,,'''',:kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNX
167 ,''''''''''''lkkKMMMMMMX0o'''''''''''''''''dXNMMMMMMMMMMMMx
,,'''',:kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
168 ,'''''''''''':llOMMMMMMWWx
,,,''''''''''''''dXNWWMMMMMMMMMMk
,,'''',:kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
169 ,'''''''''''',::xXNMMMMMW0oo
:''''''''''''''dXNMMMMMMMMMMMMk
,,'''',;kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWX
170 ;,,''''''''''''':lONWMMMMWNNOl:''''''''''''oXNMMMMMMMMMMMMx,,'''',:kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNX
171 .';,,,,''''''''''':dONNWMMMMWXOddl:,'''''''dXNMMMMMMMMMMMMk
,,'''',:kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNX
172 .
',,,;,''''',,''',:ookKNMMMMWWWXOxddlc:;;xXNWWWWWWWNXXKKd,,'''',:kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNX
173 .'',:;''''''''''''''cxKMMMMMMMMMWNN0xollxKXWWWWNXXK0Okkl,''''';:kWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNX
174 ....
';;,''''''''''';cokk0XWMMMMWWWXK0OOkxxxxdddddoolcc
;'''',,:lOMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNK0
175 ...
,;,,,,'''',,'',,,:odkkO0KXXNNWWWk
:;'''',,,;;:ccclodxkkO0XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNNX0kko
:;,
176 .
';;;;,'''''''''''',,;:clloodddxxxxxxxkkkOO000KXNWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNXX0kocc:;'..
177 ....
';,''''''''''''''''''''''dXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNXX0koc:;;'.
178 ..
,;;;,''''''''''''''''''dXNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWNXKOOd
::;;'.
179 .cc:,''''''''''''''''''dXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNXXK0dcc.
180 ...,;;,,,''''''''''''''dXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNNNNKOdcc::,...
181 ..'',;,''''''''''''oXNMMMMMMMMMMMMMMMMMMMMMMMMMMWNNNXKOOd::::,..
182 ..';;,'''''''''oKNMMMMMMMMMMMMMMMMMMMWWNXXKOd::::,...
183 ..';;,,,''''oXNMMMMMMMMMMMMWWNXKOOdc
:;;,.. TODO
, too big
, what diet
for this ascii art ?
184 .
::;;,''''oXNWWMMMMMMMMMMWNK0d
::.
185 ..
',,,,,''oKNMMMMWWWNX0OOdc:;,..
186 ....';;o0KXXKOdcc
:;,...