Commit 8109bcc6 authored by delanoe's avatar delanoe

Refactor install

parent b5eb0323
...@@ -3,18 +3,32 @@ Gargantext ...@@ -3,18 +3,32 @@ Gargantext
Install Instructions for Gargantext (CNRS). Install Instructions for Gargantext (CNRS).
## Help needed ? 1. [SETUP](##SETUP)
2. [INSTALL](##INSTALL)
3. [RUN](##RUN)
## Support needed ?
See http://gargantext.org/about and tools for the community See http://gargantext.org/about and tools for the community
## Create user Gargantua ## Setup
Prepare your environnement
Build your OS dependencies inside a docker
Main user of Gargantext is Gargantua (role of Pantagruel soon)!
``` bash ``` bash
sudo adduser --disabled-password --gecos "" gargantua cd /srv/gargantext/install/docker/dev
./build
``` ```
## Create the directories you need ## INSTALL
### Enter docker container
``` bash
/srv/gargantext/install/docker/enterGargantextImage
```
### Create the directories you need
``` bash ``` bash
for dir in "/srv/gargantext" for dir in "/srv/gargantext"
...@@ -27,29 +41,34 @@ for dir in "/srv/gargantext" ...@@ -27,29 +41,34 @@ for dir in "/srv/gargantext"
done done
``` ```
You should see:
```bash
$tree /srv
/srv
├── gargantext
├── gargantext_lib
├── gargantext_media
│   └── srv
│   └── env_3-5
└── gargantext_static
```
## Get the source code of Gargantext ## Get the source code of Gargantext
``` bash
```bash
cp ~/.ssh/id_rsa.pub id_rsa.pub
`
git clone ssh://gitolite@delanoe.org:1979/gargantext /srv/gargantext \ git clone ssh://gitolite@delanoe.org:1979/gargantext /srv/gargantext \
&& cd /srv/gargantext \ && cd /srv/gargantext \
&& git fetch origin refactoring \ && git fetch origin refactoring \
&& git checkout refactoring \ && git checkout refactoring \
``` ```
### TODO (soon) : git clone https://gogs.iscpif.fr/gargantext.git TODO (soon) : git clone https://gogs.iscpif.fr/gargantext.git
## Build your OS dependencies
2 ways, for each you need to install Debian GNU/Linux dependencies.
1) [EASY] Docker way (directory install/docker)
2) [EXPERTS] Debian way (directory install/debian)
## Build your docker image
``` bash
cd /srv/gargantext/install/docker/dev
./build
```
## Install Python environment ## Install Python environment
Inside the docker image, execute as root: Inside the docker image, execute as root:
...@@ -64,20 +83,17 @@ Inside the docker image, execute as root: ...@@ -64,20 +83,17 @@ Inside the docker image, execute as root:
``` ```
## Get main librairies ## Get main librairies
Can be long, so be patient :)
``` bash ``` bash
wget http://dl.gargantext.org/gargantext_lib.tar.bz2 \ wget http://dl.gargantext.org/gargantext_lib.tar.bz2 \
&& tar xvjf gargantext_lib.tar.bz2 -o /srv/gargantext_lib \ && sudo tar xvjf gargantext_lib.tar.bz2 --directory /srv/gargantext_lib \
&& sudo chown -R gargantua:gargantua /srv/gargantext_lib \ && sudo chown -R gargantua:gargantua /srv/gargantext_lib \
&& echo "Libs installed" && echo "Libs installed"
``` ```
## Configure && Launch Gargantext ## Configure && Launch Gargantext
### Enter docker container
``` bash
/srv/gargantext/install/docker/enterGargantextImage
```
### Inside docker container configure the database ### Inside docker container configure the database
``` bash ``` bash
service postgresql start service postgresql start
...@@ -93,7 +109,9 @@ python /srv/gargantext/init_accounts.py /srv/gargantext/install/init/account.csv ...@@ -93,7 +109,9 @@ python /srv/gargantext/init_accounts.py /srv/gargantext/install/init/account.csv
FIXME: dbmigrate need to launched several times since tables are FIXME: dbmigrate need to launched several times since tables are
ordered with alphabetical order (and not dependencies order) ordered with alphabetical order (and not dependencies order)
### Inside docker container launch Gargantext ## RUN
Inside docker container launch Gargantext
``` bash ``` bash
service postgresql start service postgresql start
su gargantua su gargantua
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment