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
0c82a191
Commit
0c82a191
authored
8 years ago
by
c24b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Instalation instruction MaJ
parent
762eb97f
master
anoe-gargantext-light
c24b-stable
c24b-stable-patch
c24b-testing-
dev
dev-graphExplorerJSON
gargantext-light
install
remote
simon-experimental
simon-gargantext-light
simon-rest-doc
simon-testing
simon-unstable
stable
stable-help
stable-imt
stable-imt-hal
stable-imt-link
stable-imt-merge
stable-imt-notebook
stable-notebook
stable-origin
stable-patch
stable-v3-imt
testing
testing-distri
testing-graph-growth
testing-graph-public
testing-imt
testing-jwt
testing-langParsing
testing-merge
testing-mine
testing-notebook
testing-share
unstable
unstable-docker
unstable-newBdd
unstable-notebook
unstable-philoNotebook
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
322 deletions
+19
-322
install.md
docs/install.md
+19
-13
README.md
install/README.md
+0
-309
No files found.
docs/install.md
View file @
0c82a191
...
...
@@ -69,6 +69,7 @@ Successfully built <container_id>
```
bash
./srv/gargantext/install/docker/enterGargantextImage
```
[
ICI
]
Tester si les config de postgresql et python sont faits en amont à la création du docker file
*
Install Python environment
...
...
@@ -82,10 +83,6 @@ Inside the docker image, execute as root:
```
bash
/srv/gargantext/install/postgres/configure
```
*
Exit the docker
```
exit (or Ctrl+D)
```
Install Gargantext server
...
...
@@ -100,21 +97,30 @@ Inside the docker container:
```
bash
service postgresql start
#su gargantua
#activate the virtualenv
source
/srv/env_3-5/bin/activate
python /srv/gargantext/dbmigrate.py
/srv/gargantext/manage.py makemigrations
/srv/gargantext/manage.py migrate
python /srv/gargantext/dbmigrate.py
```
You have entered the virtualenv as shown with (env_3-5)
```
bash
(
env_3-5
)
$
python /srv/gargantext/dbmigrate.py
(
env_3-5
)
$
/srv/gargantext/manage.py makemigrations
(
env_3-5
)
$
/srv/gargantext/manage.py migrate
(
env_3-5
)
$
python /srv/gargantext/dbmigrate.py
#will create tables and not hyperdata_nodes
python /srv/gargantext/dbmigrate.py
(
env_3-5
)
$
python /srv/gargantext/dbmigrate.py
#will create table hyperdata_nodes
#launch first time the server to create first user
/srv/gargantext/manage.py runserver 0.0.0.0:8000
/srv/gargantext/init_accounts.py /srv/gargantext/install/init/account.csv
(
env_3-5
)
$
/srv/gargantext/manage.py runserver 0.0.0.0:8000
(
env_3-5
)
$
/srv/gargantext/init_accounts.py /srv/gargantext/install/init/account.csv
```
FIXME: dbmigrate need to launched several times since tables are
ordered with alphabetical order (and not dependencies order)
*
Exit the docker
```
exit (or Ctrl+D)
```
####Debian way [advanced]
##Run Gargantext
...
...
@@ -133,9 +139,9 @@ su gargantua
#activate the virtualenv
source
/srv/env_3-5/bin/activate
#go to gargantext srv
cd
/srv/gargantext/
(
env_3-5
)
$
cd
/srv/gargantext/
#run the server
/manage.py runserver 0.0.0.0:8000
(
env_3-5
)
$
/manage.py runserver 0.0.0.0:8000
```
...
...
This diff is collapsed.
Click to expand it.
install/README.md
deleted
100644 → 0
View file @
762eb97f
#Gargantext
==========
Install Instructions for Gargantext (CNRS):
1.
[
SETUP
](
##SETUP
)
2.
[
INSTALL
](
##INSTALL
)
3.
[
RUN
](
##RUN
)
## Help needed ?
See http://gargantext.org/about and tools for the community
##SETUP
Prepare your environnement
Create user gargantua
Main user of Gargantext is Gargantua (role of Pantagruel soon)!
```
bash
sudo
adduser
--disabled-password
--gecos
""
gargantua
```
Create the directories you need
```
bash
for
dir
in
"/srv/gargantext"
"/srv/gargantext_lib"
"/srv/gargantext_static"
"/srv/gargantext_media"
"/srv/env_3-5"
;
do
sudo mkdir
-p
$dir
;
sudo chown
gargantua:gargantua
$dir
;
done
```
You should see:
```
bash
$tree
/srv
/srv
├── gargantext
├── gargantext_lib
├── gargantext_media
│ └── srv
│ └── env_3-5
├── gargantext_static
└── lost+found
[
error opening
dir
]
```
## Get the source code of Gargantext
Clone the repository of gargantext
```
bash
git clone ssh://gitolite@delanoe.org:1979/gargantext /srv/gargantext
\
&&
cd
/srv/gargantext
\
&&
git fetch origin unstable
\
&&
git checkout unstable
\
```
**Optionnal**
: if you want to contribute clone the repo into your own branch
```
bash
git checkout
-b
username-unstable unstable
```
! TODO (soon) : git clone https://gogs.iscpif.fr/gargantext.git
## SETUP
Build your OS dependencies
2 ways, for each you need to install Debian GNU/Linux dependencies.
1.
[
EASY
]
[
Docker way
]
(#DOCKER)
2.
[
EXPERT
]
[
Debian way
]
(#DEBIAN)
### DOCKER
*
Install docker
See
[
installation instruction for your distribution
](
https://docs.docker.com/engine/installation/
)
#### Build your docker image
```
bash
cd
/srv/gargantext/install/docker/dev
./build
```
You should see
```
Successfully built <container_id>
```
#### Enter into the docker environnement
```
bash
./srv/gargantext/install/docker/enterGargantextImage
```
#### Install Python environment
Inside the docker image, execute as root:
```
bash
/srv/gargantext/install/python/configure
```
#### Configure PostgreSql
Inside the docker image, execute as root:
```
bash
/srv/gargantext/install/postgres/configure
```
#### Exit the docker
```
exit
```
#### Get main librairies
Can be long, so be patient :)
```
bash
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"
```
### DEBIAN
[EXPERTS] Debian way (directory install/debian)
## INSTALL Gargantext
### Enter docker container
```
bash
/srv/gargantext/install/docker/enterGargantextImage
```
### Inside docker container configure the database
```
bash
service postgresql start
su gargantua
source /srv/env_3-5/bin/activate
python /srv/gargantext/dbmigrate.py
/srv/gargantext/manage.py migrate
python /srv/gargantext/dbmigrate.py
python /srv/gargantext/dbmigrate.py
echo "TODO: Init first user"
```
FIXME: dbmigrate need to launched several times since tables are
ordered with alphabetical order (and not dependencies order)
### Inside docker container launch Gargantext
```
bash
service postgresql start
su gargantua
source /srv/env_3-5/bin/activate
/srv/gargantext/manage.py runserver 0.0.0.0:8000
python /srv/gargantext/init_accounts.py /srv/gargantext/install/init/account.csv
```
## RUN
### Outside docker container launch browser
```
bash
chromium http://127.0.0.1:8000/
```
Click on Test Gargantext
Login : gargantua
Password : autnagrag
Enjoy :)
=======
Install Instructions for Gargantext (CNRS).
1. [SETUP](##SETUP)
2. [INSTALL](##INSTALL)
3. [RUN](##RUN)
## Support needed ?
See http://gargantext.org/about and tools for the community
## Setup
Prepare your environnement
Build your OS dependencies inside a docker
<<<<<<< HEAD
Main user of Gargantext is Gargantua (role of Pantagruel soon)!
>>>>>>> constance-docker
=======
>>>>>>> 8eac65c6d225deb05948c583367e8540ad95316d
```
bash
cd /srv/gargantext/install/docker/dev
./build
```
<<<<<<< HEAD
<<<<<<< HEAD
=======
## Create the directories you need
=======
## INSTALL
### Enter docker container
```
bash
/srv/gargantext/install/docker/enterGargantextImage
```
### Create the directories you need
>>>>>>> 8eac65c6d225deb05948c583367e8540ad95316d
```
bash
for dir in "/srv/gargantext"
"/srv/gargantext_lib"
"/srv/gargantext_static"
"/srv/gargantext_media"
"/srv/env_3-5"; do
sudo mkdir -p $dir ;
sudo chown gargantua:gargantua $dir ;
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
```
bash
cp ~/.ssh/id_rsa.pub id_rsa.pub
`
git clone ssh://gitolite@delanoe.org:1979/gargantext /srv/gargantext
\
&& cd /srv/gargantext
\
&& git fetch origin unstable
\
&& git checkout unstable
\
```
TODO (soon) : git clone https://gogs.iscpif.fr/gargantext.git
## Install Python environment
Inside the docker image, execute as root:
```
bash
/srv/gargantext/install/python/configure
```
## Configure PostgreSql
Inside the docker image, execute as root:
```
bash
/srv/gargantext/install/postgres/configure
```
## Get main librairies
Can be long, so be patient :)
```
bash
wget http://dl.gargantext.org/gargantext_lib.tar.bz2
\
&& sudo tar xvjf gargantext_lib.tar.bz2 --directory /srv/gargantext_lib
\
&& sudo chown -R gargantua:gargantua /srv/gargantext_lib
\
&& echo "Libs installed"
```
## Configure && Launch Gargantext
### Inside docker container configure the database
```
bash
service postgresql start
su gargantua
source /srv/env_3-5/bin/activate
python /srv/gargantext/dbmigrate.py
/srv/gargantext/manage.py migrate
python /srv/gargantext/dbmigrate.py
python /srv/gargantext/dbmigrate.py
python /srv/gargantext/init_accounts.py /srv/gargantext/install/init/account.csv
```
FIXME: dbmigrate need to launched several times since tables are
ordered with alphabetical order (and not dependencies order)
## RUN
Inside docker container launch Gargantext
```
bash
service postgresql start
su gargantua
source /srv/env_3-5/bin/activate
/srv/gargantext/manage.py runserver 0.0.0.0:8000
```
### Outside docker container launch browser
```
bash
chromium http://127.0.0.1:8000/
```
Click on Test Gargantext
Login : gargantua
Password : autnagrag
Enjoy :)
This diff is collapsed.
Click to expand it.
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