]> Git — Sourcephile - gargantext.git/blob - install
[FIX] insertOn conflict do Nothing.
[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 sudo echo "#!/bin/sh
16 exec sudo -E /usr/bin/docker \"\$@\"" > /usr/local/bin/docker
17 sudo chmod +x /usr/local/bin/docker
18
19 curl -sSL https://get.haskellstack.org/ | sh
20 stack update
21 stack upgrade
22
23 git clone https://gitlab.iscpif.fr/gargantext/haskell-gargantext.git
24
25 cd haskell-gargantext
26
27 git clone https://gitlab.iscpif.fr/gargantext/purescript-gargantext
28
29 mkdir deps
30 cd deps
31 git clone https://gitlab.iscpif.fr/gargantext/clustering-louvain.git
32 git clone https://github.com/np/servant-job.git
33 git clone https://github.com/np/patches-map
34 git clone https://gitlab.com/npouillard/patches-class.git
35 cd ..
36
37 stack docker pull
38 stack --docker setup
39 stack --docker build
40 stack --docker install
41
42
43 # Database configuration
44 # CREATE USER gargantua WITH PASSWORD $(grep DB_PASS gargantext.ini)
45 # GRANT ALL PRIVILEGES ON DATABASE gargandbV4 to gargantua