]>
Git — Sourcephile - gargantext.git/blob - devops/docker/install_garg_with_docker
6 echo "git installed, ok"
8 sudo apt update
&& sudo apt
install git
13 echo "Docker installed, ok"
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"
22 echo "---------------script docker-----------------------------"
24 ########################################################################
26 if [ -f "/usr/local/bin/docker" ]
28 echo "docker alias exists already"
30 DOCKERBIN
="/usr/local/bin/docker"
32 sudo
chmod o
+w
$DOCKERBIN
34 exec sudo -E /usr/bin/docker \"\$@\"" >> $DOCKERBIN
35 sudo
chmod gou
+x
$DOCKERBIN
36 sudo
chmod o
-w $DOCKERBIN
38 ########################################################################
42 echo "Haskell stack installed, ok"
44 curl
-sSL https
://get.haskellstack.org
/ | sh
49 git clone https
://gitlab.iscpif.fr
/gargantext
/haskell
-gargantext.git
52 git clone https
://gitlab.iscpif.fr
/gargantext
/purescript
-gargantext
54 ..
/install-deps $(pwd)
57 docker build
--pull -t fpco
/stack
-build:lts
-18.12
-garg .
63 stack
--docker install
66 # Database configuration
67 # CREATE USER gargantua WITH PASSWORD $(grep DB_PASS gargantext.ini)
68 # GRANT ALL PRIVILEGES ON DATABASE gargandbV4 to gargantua