]> Git — Sourcephile - gargantext.git/blob - install
[INSTALL] Fix.
[gargantext.git] / install
1 #!/bin/bash
2
3
4 if docker --version;
5 then
6 echo "Docker installed, ok"
7 else
8 curl -sSL https://get.docker.com/ | sh
9 echo "Docker has been installed"
10 echo "Configure your user rights:"
11 echo " sudo usermod -a -G docker $USER"
12 echo " or : adduser $(whoami) docker"
13 fi
14
15 curl -sSL https://get.haskellstack.org/ | sh
16 stack update
17 stack upgrade
18
19 git clone https://gitlab.iscpif.fr/gargantext/haskell-gargantext.git
20
21 cd haskell-gargantext
22
23 git clone https://gitlab.iscpif.fr/gargantext/purescript-gargantext
24
25 mkdir deps
26 cd deps
27 git clone https://gitlab.iscpif.fr/gargantext/clustering-louvain.git
28 git clone https://github.com/np/servant-job.git
29 git clone https://github.com/np/patches-map
30 git clone https://gitlab.com/npouillard/patches-class.git
31 cd ..
32
33 stack docker pull
34 stack --docker setup
35 stack --docker build
36 stack --docker install
37
38
39 # Database configuration
40 # CREATE USER gargantua WITH PASSWORD $(grep DB_PASS gargantext.ini)
41 # GRANT ALL PRIVILEGES ON DATABASE gargandbV4 to gargantua