Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
80067b10
Commit
80067b10
authored
Apr 26, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All the steps to install Gargantext. Not automatic, need some fixes.
parent
5c234cfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
106 additions
and
84 deletions
+106
-84
install.sh
install/docker/dev/install.sh
+106
-84
No files found.
install/docker/dev/install.sh
View file @
80067b10
#/bin/bash
## Quick Manual
## Install docker.io && sudo
## sudo docker build -t gargantext .
## docker run -i -t gargantext /bin/bash
# Install Docker
# Debian/Ubuntu: apt-get install docker
# run turboparser port, with python 3.4
#docker run -d -p 8000:8000 -v /srv:/srv -t gargantext python /srv/gargantext/gargantext.py
#######################################################################
#!/bin/bash
# Main user of Gargantext is Gargantua (role of Pantagruel soon)!
#sudo adduser --disabled-password --gecos "" gargantua
### Create directories in /srv
### FIXME: not tested
#for dir in "/srv/gargantext"\
# "/srv/gargantext_lib"\
# "/srv/gargantext_static"\
# "/srv/gargantext_media"\
# "/srv/gargantext_data"\
# "/srv/env_3-5"\
# "/var/www/gargantext"; do \
# sudo mkdir -p $dir ;\
# sudo chown gargantua:gargantua $dir ; \
#done
#
#######################################################################
## Last step as user:
### TODO (soon) : git clone https://gogs.iscpif.fr/gargantext.git
#git clone ssh://gitolite@delanoe.org:1979/gargantext /srv/gargantext \
# && cd /srv/gargantext \
# && git fetch origin refactoring \
# && git checkout refactoring
#
######################################################################
# ____ _
# | _ \ ___ ___| | _____ _ __
# | | | |/ _ \ / __| |/ / _ \ '__|
...
...
@@ -48,63 +12,121 @@
#
######################################################################
sudo
docker build
-t
gargantext
.
#sudo docker build -t gargantext .
# OR
# cd /tmp
# wget http://dl.gargantext.org/gargantext_docker_image.tar \
# && sudo docker import - gargantext:latest < gargantext_docker_image.tar
######################################################################
# ____ _
# | _ \ ___ ___| |_ __ _ _ __ ___ ___
# | |_) / _ \/ __| __/ _` | '__/ _ \/ __|
# | __/ (_) \__ \ || (_| | | | __/\__ \
# |_| \___/|___/\__\__, |_| \___||___/
# |___/
######################################################################
#
# sudo chown -R postgres:postgres /srv/gargantext_data/ \
# su postgres -c '/usr/lib/postgresql/9.5/bin/initdb -D /srv/gargantext_data/'
#
# sudo /etc/init.d/postgresql start \
# && psql -c "CREATE user gargantua WITH PASSWORD 'C8kdcUrAQy66U'" \
# && createdb -O gargantua gargandb \
# && echo "Root: END of the installation of Gargantexts Database by postgres."
#
function
do_cker
{
#sudo docker run -d -p 8000:8000 \
sudo
docker run
-d
\
-v
/srv2:/srv
\
-v
/home/alexandre:/home/alexandre
\
-t
gargantext:latest
\
/bin/bash
$1
}
######################################################################
# _
_ _ _ _
# |
| (_) |__ _ __ __ _(_)_ __(_) ___
___
# | |
| | '_ \| '__/ _` | | '__| |/ _ \
/ __|
# |
|___| | |_) | | | (_| | | | | | __/
\__ \
# |_
____|_|_.__/|_| \__,_|_|_| |_|\___|
|___/
#
######################################################################
######################################################################
#
# _
____ _ _
# |
___|__ | | __| | ___ _ __
___
# | |
_ / _ \| |/ _` |/ _ \ '__
/ __|
# |
_| (_) | | (_| | __/ |
\__ \
# |_
| \___/|_|\__,_|\___|_|
|___/
#
######################################################################
#
### Create directories in /srv
# Linux only
function
create_folders
{
for
dir
in
"/srv2/gargantext"
\
"/srv2/gargantext_lib"
\
"/srv2/gargantext_static"
\
"/srv2/gargantext_media"
\
"/srv2/gargantext_data"
\
"/srv2/env_3-5"
;
do
\
sudo mkdir
-p
$dir
;
\
sudo chown
gargantua:gargantua
$dir
;
\
done
}
#do_cker "create_folders"
function
git_config
{
### TODO (soon) : git clone https://gogs.iscpif.fr/gargantext.git
git clone ssh://gitolite@delanoe.org:1979/gargantext /srv2/gargantext
\
&&
cd
/srv2/gargantext
\
&&
git fetch origin refactoring
\
&&
git checkout refactoring
}
#su gargantua -c git_config
######################################################################
##
INSTALL MAIN DEPENDENCIES
##
####################################################################
#
USER gargantua
##
##
##
# Installing pip version of python libs
#
WORKDIR /home/gargantua
######################################################################
#
##
____ _
##
| _ \ ___ ___| |_ __ _ _ __ ___ ___
#
# | |_) / _ \/ __| __/ _` | '__/ _ \/ __|
##
| __/ (_) \__ \ || (_| | | | __/\__ \
##
|_| \___/|___/\__\__, |_| \___||___/
##
|___/
#
######################################################################
#
#RUN /usr/bin/virtualenv --py=/usr/bin/python3.5 /srv/env_3-5 \
# && /bin/bash -c 'source /srv/env_3-5/bin/activate' \
# && /bin/bash -c '/srv/env_3-5/bin/pip install git+https://github.com/zzzeek/sqlalchemy.git@rel_1_1' \
# && /bin/bash -c '/srv/env_3-5/bin/pip install -r /srv/gargantext/install/python/requirements.txt'
#
# TODO script pour peupler la base
sudo chown
-R
postgres:postgres /srv/gargantext_data/
function
postgres_config
{
/usr/lib/postgresql/9.5/bin/initdb
-D
/srv/gargantext_data/
}
do_cker
"su postgres -c postgres_config"
## GET CONFIG FILES (need update)
#wget http://dl.gargantext.org/gargantext_lib.tar.bz2 \
# && tar xvjf gargantext_lib.tar.bz2 -o /srv/gargantext_lib \
# && chown -R gargantua:gargantua /srv/gargantext_lib \
# && echo "Libs installed"
## sudo /etc/init.d/postgresql start \
## && psql -c "CREATE user gargantua WITH PASSWORD 'C8kdcUrAQy66U'" \
## && createdb -O gargantua gargandb \
## && echo "Root: END of the installation of Gargantexts Database by postgres."
##
#
#
#######################################################################
## _ _ _ _ _
## | | (_) |__ _ __ __ _(_)_ __(_) ___ ___
## | | | | '_ \| '__/ _` | | '__| |/ _ \/ __|
## | |___| | |_) | | | (_| | | | | | __/\__ \
## |_____|_|_.__/|_| \__,_|_|_| |_|\___||___/
##
#######################################################################
#
#
#######################################################################
### INSTALL MAIN DEPENDENCIES
#######################################################################
##USER gargantua
###
###
#### Installing pip version of python libs
#
#function install_python_env {
# /usr/bin/virtualenv --py=/usr/bin/python3.5 /srv/env_3-52 \
# && /bin/bash -c 'source /srv/env_3-52/bin/activate' \
# && /bin/bash -c '/srv/env_3-52/bin/pip install git+https://github.com/zzzeek/sqlalchemy.git@rel_1_1' \
# && /bin/bash -c '/srv/env_3-52/bin/pip install -r /srv/gargantext/install/python/requirements.txt'
#}
#
#do_cker "su gargantua -c install_python_env"
#
#######################################################################
#function init_gargantext {
# echo "TODO script pour peupler la base"
#}
#
#do_cker "su gargantua -c init_gargantext"
#######################################################################
#
### GET CONFIG FILES
##wget http://dl.gargantext.org/gargantext_lib.tar.bz2 \
## && tar xvjf gargantext_lib.tar.bz2 -o /srv/gargantext_lib \
## && sudo chown -R gargantua:gargantua /srv/gargantext_lib \
## && echo "Libs installed"
#
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