Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
158
Issues
158
List
Board
Labels
Milestones
Merge Requests
11
Merge Requests
11
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
28b3494c
Commit
28b3494c
authored
Sep 23, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[debian] install script refactoring
parent
16856882
Pipeline
#1094
failed with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
35 deletions
+57
-35
install
devops/debian/install
+26
-35
install-clustering-louvain
devops/debian/install-clustering-louvain
+6
-0
install-postgres
devops/debian/install-postgres
+9
-0
install-purescript
devops/debian/install-purescript
+16
-0
No files found.
devops/debian/install
View file @
28b3494c
...
@@ -22,12 +22,12 @@ sudo apt install tmux htop
...
@@ -22,12 +22,12 @@ sudo apt install tmux htop
########################################################################
########################################################################
sudo sed
-i
"s/stretch/buster/g"
/etc/apt/sources.list
sudo sed
-i
"s/stretch/buster/g"
/etc/apt/sources.list
sudo
apt update
#
sudo apt update
sudo
apt dist-upgrade
sudo
apt dist-upgrade
# sudo reboot #recommended
# sudo reboot #recommended
########################################################################
########################################################################
sudo
apt update
#
sudo apt update
sudo
apt
install
liblzma-dev libpcre3-dev libblas-dev liblapack-dev pkg-config libgsl-dev libbz2-dev postgresql postgresql-server-dev-11 nginx libigraph0-dev libgfortran-8-dev
sudo
apt
install
liblzma-dev libpcre3-dev libblas-dev liblapack-dev pkg-config libgsl-dev libbz2-dev postgresql postgresql-server-dev-11 nginx libigraph0-dev libgfortran-8-dev
sudo
apt
install
git
sudo
apt
install
git
...
@@ -37,7 +37,7 @@ sudo apt install git
...
@@ -37,7 +37,7 @@ sudo apt install git
########################################################################
########################################################################
echo
"Which user?"
echo
"Which user?"
read
USER
#
read USER
USER
=
"gargantua"
USER
=
"gargantua"
sudo
adduser
--disabled-password
--gecos
""
$USER
sudo
adduser
--disabled-password
--gecos
""
$USER
...
@@ -53,23 +53,14 @@ sudo su $USER
...
@@ -53,23 +53,14 @@ sudo su $USER
stack update
stack update
stack upgrade
stack upgrade
git clone https://gitlab.iscpif.fr/gargantext/haskell-gargantext.git
#
git clone https://gitlab.iscpif.fr/gargantext/haskell-gargantext.git
cd
haskell-gargantext
#
cd haskell-gargantext
##########
##########
git clone https://gitlab.iscpif.fr/gargantext/purescript-gargantext
cd
purescript-gargantext
# as sudoer
if
[[
!
-d
"purescript-gargantext"
]]
;
then
curl
-sS
https://dl.yarnpkg.com/debian/pubkey.gpg |
sudo
apt-key add -
./devops/debian/install-purescript
echo
"deb https://dl.yarnpkg.com/debian/ stable main"
|
sudo tee
/etc/apt/sources.list.d/yarn.list
fi
sudo
apt update
sudo
apt
install
yarn
# as user
yarn
install
&&
yarn install-ps
&&
yarn build
# temporary bug (help welcome)
cp
src/index.html dist/index.html
#########################################################################
#########################################################################
...
@@ -80,21 +71,26 @@ stack setup && stack build && stack install
...
@@ -80,21 +71,26 @@ stack setup && stack build && stack install
# build deps
# build deps
#!/bin/bash
if
[[
!
-d
"deps"
]]
;
then
mkdir
deps
mkdir
-v
deps
cd
deps
cd
deps
git clone https://gitlab.iscpif.fr/gargantext/clustering-louvain-cplusplus.git
if
[[
!
-d
"clustering-louvain-cplusplus"
]]
;
then
cd
clustering-louvain-cplusplus
../devops/debian/install-clustering-louvain
./install
fi
cd
..
sudo
apt
install
default-jdk
sudo
apt
install
default-jdk
wget https://dl.gargantext.org/coreNLP.tar.bz2
if
[[
!
-f
"coreNLP.tar.bz2"
]]
;
then
tar
xvjf coreNLP.tar.bz2
wget https://dl.gargantext.org/coreNLP.tar.bz2
# CoreNLP needs to be started
fi
# ./startServer.sh
if
[[
!
-d
"home"
]]
;
then
tar
xvjf coreNLP.tar.bz2
fi
# CoreNLP needs to be started
# ./startServer.sh
cd
..
fi
# Specific to our servers
# Specific to our servers
...
@@ -122,12 +118,7 @@ tar xvjf coreNLP.tar.bz2
...
@@ -122,12 +118,7 @@ tar xvjf coreNLP.tar.bz2
## POSTGRESQL DATA (as ROOT)
## POSTGRESQL DATA (as ROOT)
#######################################################################
#######################################################################
PGVersion
=
11
./devops/debian/install-postgres
GARGDATA
=
"/srv/gargantua/gargandata"
mkdir
$GARGDATA
sudo
apt
install
rsync
sudo sed
-iP
"s%^data_directory.*%data_directory =
\'
$GARGADATA
\'
%"
/etc/postgresql/
$PGVersion
/main/postgresql.conf
sudo
rsync
-av
/var/lib/postgresql/
$PGVersion
/main
$GARGDATA
# configure the database with script in devops/postgres
# configure the database with script in devops/postgres
# edit gargantext.ini
# edit gargantext.ini
...
...
devops/debian/install-clustering-louvain
0 → 100755
View file @
28b3494c
#!/bin/bash
git clone https://gitlab.iscpif.fr/gargantext/clustering-louvain-cplusplus.git
cd
clustering-louvain-cplusplus
./install
cd
..
devops/debian/install-postgres
0 → 100755
View file @
28b3494c
#!/bin/bash
PGVersion
=
11
GARGDATA
=
/srv/gargantua/gargandata
sudo mkdir
-vp
${
GARGDATA
}
sudo
apt
install
rsync
sudo sed
-iP
"s%^data_directory.*%data_directory =
\'
${
GARGDATA
}
\'
%"
/etc/postgresql/
${
PGVersion
}
/main/postgresql.conf
sudo
rsync
-av
/var/lib/postgresql/
${
PGVersion
}
/main
${
GARGDATA
}
sudo chown
-R
postgres:postgres
${
GARGDATA
}
devops/debian/install-purescript
0 → 100755
View file @
28b3494c
#!/bin/bash
git clone https://gitlab.iscpif.fr/gargantext/purescript-gargantext
cd
purescript-gargantext
# as sudoer
curl
-sS
https://dl.yarnpkg.com/debian/pubkey.gpg |
sudo
apt-key add -
echo
"deb https://dl.yarnpkg.com/debian/ stable main"
|
sudo tee
/etc/apt/sources.list.d/yarn.list
#sudo apt update
sudo
apt
install
yarn
# as user
yarn
install
&&
yarn install-ps
&&
yarn build
# temporary bug (help welcome)
cp
src/index.html dist/index.html
cd
..
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment