]> Git — Sourcephile - gargantext.git/blob - install
[DOC] Types for Phylo.
[gargantext.git] / install
1 #!/bin/bash
2
3
4 if git --version;
5 then
6 echo "git installed, ok"
7 else
8 sudo apt update && sudo apt install git
9 fi
10
11 if docker --version;
12 then
13 echo "Docker installed, ok"
14 else
15 curl -sSL https://get.docker.com/ | sh
16 echo "Docker has been installed"
17 echo "Configure your user rights:"
18 echo " sudo usermod -a -G docker $USER"
19 echo " or : adduser $(whoami) docker"
20 fi
21
22 echo "---------------script docker-----------------------------"
23
24 ########################################################################
25 # Docker path conf
26 if [ -f "/usr/local/bin/docker" ]
27 then
28 echo "docker alias exists already"
29 else
30 DOCKERBIN="/usr/local/bin/docker"
31 sudo touch $DOCKERBIN
32 sudo chmod o+w $DOCKERBIN
33 sudo echo "#!/bin/sh
34 exec sudo -E /usr/bin/docker \"\$@\"" >> $DOCKERBIN
35 sudo chmod gou+x $DOCKERBIN
36 sudo chmod o-w $DOCKERBIN
37 fi
38 ########################################################################
39
40 curl -sSL https://get.haskellstack.org/ | sh
41 stack update
42 stack upgrade
43
44
45 git clone https://gitlab.iscpif.fr/gargantext/haskell-gargantext.git
46
47 cd haskell-gargantext
48 git clone https://gitlab.iscpif.fr/gargantext/purescript-gargantext
49
50 mkdir deps
51 cd deps
52 git clone https://gitlab.iscpif.fr/gargantext/clustering-louvain.git
53 git clone https://github.com/np/servant-job.git
54 git clone https://github.com/np/patches-map
55 git clone https://gitlab.com/npouillard/patches-class.git
56 git clone https://github.com/delanoe/haskell-opaleye
57 git clone -b next --single-branch https://github.com/delanoe/hsparql
58 cd ..
59
60 stack docker pull
61 stack --docker setup
62 stack --docker build
63 stack --docker install
64
65
66 # Database configuration
67 # CREATE USER gargantua WITH PASSWORD $(grep DB_PASS gargantext.ini)
68 # GRANT ALL PRIVILEGES ON DATABASE gargandbV4 to gargantua