Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Przemyslaw Kaminski
haskell-gargantext
Commits
dea7b403
Commit
dea7b403
authored
Dec 13, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ADMIN] script to install (WIP).
parent
4e076676
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
12 deletions
+25
-12
debianPkgs
devops/debian/debianPkgs
+1
-1
install
devops/debian/install
+23
-10
create
devops/postgres/create
+1
-1
No files found.
devops/debian/debianPkgs
View file @
dea7b403
...
...
@@ -14,5 +14,5 @@ sudo apt install liblzma-dev libpcre3-dev libblas-dev liblapack-dev pkg-config l
# Phylo management
sudo
apt
install
graphviz
sudo
apt
install
postgresql-server-dev-
9.6
sudo
apt
install
postgresql-server-dev-
11
devops/debian/
debian-
install
→
devops/debian/install
View file @
dea7b403
#!/bin/bash
sudo
apt update
sudo
apt upgrade
sudo sed
-i
"s/stretch/buster/g"
/etc/apt/sources.list
sudo
apt update
sudo
apt dist-upgrade
sudo
adduser
--disabled-password
--gecos
""
gargantua
if
git
--version
;
then
...
...
@@ -10,7 +18,7 @@ else
fi
sudo
apt update
sudo
apt
install
liblzma-dev libpcre3-dev libblas-dev liblapack-dev pkg-config libgsl-dev libbz2-dev postgresql postgresql-server-dev-
9.6 nginx libigraph
-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
#echo "Which user?"
#read USER
...
...
@@ -21,20 +29,21 @@ curl -sSL https://get.haskellstack.org/ | sh
stack update
stack upgrade
git clone https://gitlab.iscpif.fr/gargantext/haskell-gargantext.git
cd
haskell-gargantext
git clone https://gitlab.iscpif.fr/gargantext/purescript-gargantext
##########
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
mkdir
deps
cd
deps
git clone https://gitlab.iscpif.fr/gargantext/clustering-louvain.git
git clone https://github.com/np/servant-job.git
git clone https://github.com/np/patches-map
git clone https://gitlab.com/npouillard/patches-class.git
git clone https://github.com/delanoe/haskell-opaleye
git clone
-b
next
--single-branch
https://github.com/delanoe/hsparql
cd
..
stack setup
...
...
@@ -65,7 +74,11 @@ update-locale LC_ALL=fr_FR.UTF-8
#######################################################################
## POSTGRESQL DATA (as ROOT)
#######################################################################
sed
-iP
"s%^data_directory.*%data_directory =
\'\/
srv
\/
gargandata
\'
%"
/etc/postgresql/9.6/main/postgresql.conf
echo
"host all all 0.0.0.0/0 md5"
>>
/etc/postgresql/9.6/main/pg_hba.conf
echo
"listen_addresses='*'"
>>
/etc/postgresql/9.6/main/postgresql.conf
PGVersion
=
11
mkdir
/srv/gargantua/gargandata
sed
-iP
"s%^data_directory.*%data_directory =
\'\/
srv
\/
gargantua
\/
gargandata
\'
%"
/etc/postgresql/
$PGVersion
/main/postgresql.conf
#echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/$PGVersion/main/pg_hba.conf
#echo "listen_addresses='*'" >> /etc/postgresql/$PGVersion/main/postgresql.conf
devops/postgres/create
View file @
dea7b403
...
...
@@ -9,7 +9,7 @@ DB="gargandbV5"
USER
=
"gargantua"
psql
-c
"CREATE USER
\"
${
USER
}
\"
"
psql
-c
"ALTER USER
\"
${
USER
}
\"
with PASSWORD
\
"
${
PW
}
\"
"
psql
-c
"ALTER USER
\"
${
USER
}
\"
with PASSWORD
\
'
${
PW
}
\'
"
psql
-c
"DROP DATABASE IF EXISTS
\"
${
DB
}
\"
"
createdb
"
${
DB
}
"
...
...
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