]> Git — Sourcephile - gargantext.git/blob - install
[INSTALL] docker version.
[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 fi
13
14 curl -sSL https://get.haskellstack.org/ | sh
15 stack update
16 stack upgrade
17
18 git clone ssh://git@gitlab.iscpif.fr:20022/gargantext/haskell-gargantext.git
19
20 cd haskell-gargantext
21
22 git clone ssh://git@gitlab.iscpif.fr:20022/gargantext/purescript-gargantext
23
24 mkdir deps
25 cd deps
26 git clone ssh://git@gitlab.iscpif.fr:20022/gargantext/clustering-louvain.git
27 git clone https://github.com/np/servant-job.git
28 git clone https://github.com/np/patches-map
29 git clone https://gitlab.com/npouillard/patches-class.git
30 cd ..
31
32 ~/.local/bin/stack docker pull
33 ~/.local/bin/stack --docker setup
34 ~/.local/bin/stack --docker build
35 ~/.local/bin/stack --docker install
36
37
38 # Database configuration
39 # CREATE USER gargantua WITH PASSWORD $(grep DB_PASS gargantext.ini)
40 # GRANT ALL PRIVILEGES ON DATABASE gargandbV4 to gargantua