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
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
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
7a3a6d9c
Commit
7a3a6d9c
authored
Jun 28, 2023
by
Alexandre Delanoë
Committed by
Alfredo Di Napoli
Jun 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install
parent
2a72ec0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
56 deletions
+14
-56
install
devops/debian/install
+14
-56
No files found.
devops/debian/install
View file @
7a3a6d9c
...
...
@@ -18,7 +18,7 @@ sudo apt upgrade
# Tmux to avoid disconnections during the installation process
# Htop for visual monitoring
sudo
apt
install
tmux htop
sudo
apt
install
tmux htop
git iptables curl
########################################################################
sudo sed
-i
"s/bullseye/bookworm/g"
/etc/apt/sources.list
...
...
@@ -28,74 +28,33 @@ sudo apt dist-upgrade
########################################################################
#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-9-dev
sudo
apt
install
postgresql postgresql-server-dev-15
sudo
apt
install
git
#git config --global user.email "contact@gargantext.org"
#git config --global user.name "Gargantua"
########################################################################
echo
"Which user?"
#read USER
USER
=
"gargantua"
sudo
adduser
--disabled-password
--gecos
""
$USER
########################################################################
#cd /home
#sudo mv -if /home/$USER /srv/
#sudo ln -s /srv/$USER
curl
-sSL
https://get.haskellstack.org/ | sh
sudo
apt
install
curl
sudo
su
$USER
stack update
stack upgrade
#git clone https://gitlab.iscpif.fr/gargantext/haskell-gargantext.git
#cd haskell-gargantext
##########
if
[[
!
-d
"purescript-gargantext"
]]
;
then
./devops/debian/install-purescript
fi
#########################################################################
echo
"Installing Nix"
sh <
(
curl
-L
https://nixos.org/nix/install
)
--daemon
# stack install should be enough but all process is the following steps
stack setup
&&
stack build
&&
stack
install
echo
"Installing GHCUP"
curl
--proto
'=https'
--tlsv1
.2
-sSf
https://get-ghcup.haskell.org | sh
#########################################################################
# build deps
if
[[
!
-d
"deps"
]]
;
then
mkdir
-v
deps
cd
deps
sudo
apt
install
default-jdk
if
[[
!
-f
"coreNLP.tar.bz2"
]]
;
then
wget https://dl.gargantext.org/coreNLP.tar.bz2
fi
if
[[
!
-d
"home"
]]
;
then
tar
xvjf coreNLP.tar.bz2
fi
# CoreNLP needs to be started
# ./startServer.sh
cd
..
fi
#######################################################################
# Get the Sources
git clone https://gitlab.iscpif.fr/gargantext/haskell-gargantext.git
cd
haskell-gargantext
git clone https://gitlab.iscpif.fr/gargantext/haskell-gargantext.git
# Specific to our servers
#### Configure timezone and locale ###################################
# todo sync dates
#echo "########### LOCALES & TZ #################"
#echo "Europe/Paris" > /etc/timezone
#dpkg-reconfigure --frontend=noninteractive tzdata
#
sudo
dpkg-reconfigure --frontend=noninteractive tzdata
##ENV TZ "Europe/Paris"
#
#sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen && \
...
...
@@ -109,13 +68,12 @@ fi
# Database configuration
# CREATE USER gargantua WITH PASSWORD $(grep DB_PASS gargantext.ini)
# GRANT ALL PRIVILEGES ON DATABASE gargandbV4 to gargantua
# sudo su postgres
# createdb gargandb
#######################################################################
## POSTGRESQL DATA (as ROOT)
#######################################################################
./devops/debian/install-postgres
# configure the database with script in devops/postgres
# edit gargantext.ini
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