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
87f5a934
Commit
87f5a934
authored
Mar 29, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ADMIN] Install files.
parent
dbedae3c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
311 additions
and
0 deletions
+311
-0
README_Debian.md
install/debian/README_Debian.md
+58
-0
asGargantua.sh
install/debian/asGargantua.sh
+30
-0
asPostgres.sh
install/debian/asPostgres.sh
+6
-0
asRoot.sh
install/debian/asRoot.sh
+55
-0
README.md
install/docker/README.md
+4
-0
Dockerfile
install/docker/dev/Dockerfile
+111
-0
install.sh
install/docker/dev/install.sh
+17
-0
requirements.txt
install/python/requirements.txt
+30
-0
No files found.
install/debian/README_Debian.md
0 → 100644
View file @
87f5a934
#!/bin/dash
# TODO do apt-get install --force-yes --force-yes
#postgresql3.4-server-dev
#+libxml2-dev
sudo apt-get install --force-yes postgresql
sudo apt-get install --force-yes postgresql-contrib
sudo apt-get install --force-yes rabbitmq-server
sudo apt-get install --force-yes tmux
sudo apt-get install --force-yes uwsgi uwsgi-plugin-python3
#apt-get install --force-yes python-virtualenv
sudo apt-get install --force-yes libpng12-dev
sudo apt-get install --force-yes libpng-dev
sudo apt-get install --force-yes libfreetype6-dev
sudo apt-get install --force-yes python-dev
sudo apt-get install --force-yes libpq-dev
sudo apt-get install --force-yes libpq-dev
#apt-get build-dep python-matplotlib
#apt-get install --force-yes python-matplotlib
#Paquets Debian a installer
# easy_install --force-yes -U distribute (matplotlib)
#lxml
sudo apt-get install --force-yes libffi-dev
sudo apt-get install --force-yes libxml2-dev
sudo apt-get install --force-yes libxslt1-dev
# ipython readline
sudo apt-get install --force-yes libncurses5-dev
sudo apt-get install --force-yes pandoc
# scipy:
sudo apt-get install --force-yes gfortran
sudo apt-get install --force-yes libopenblas-dev
sudo apt-get install --force-yes liblapack-dev
#nlpserver
sudo apt-get install --force-yes libgflags-dev
sudo apt-get install --force-yes libgoogle-glog-dev
# MElt
# soon
## SERVER Configuration
# server configuration
sudo apt-get install --force-yes nginx
# UWSGI with pcre support
sudo apt-get install --force-yes libpcre3 libpcre3-dev
sudo apt-get install --force-yes python3-pip
#pip3 install --force-yes uwsgi
install/debian/asGargantua.sh
0 → 100755
View file @
87f5a934
#!/bin/bash
#MAINTAINER ISCPIF <alexandre.delanoe@iscpif.fr>
git clone ssh://gitolite@delanoe.org:1979/gargantext /srv/gargantext
\
&&
cd
/srv/gargantext
\
&&
git fetch origin refactoring-alex
\
&&
git checkout refactoring-alex
cd
/srv/gargantext/install
\
&&
/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'
\
## INSTALL MAIN DEPENDENCIES
cd
/tmp
&&
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
## End of configuration
## be sure that postgres is running
cd
/srv/gargantext
&&
/bin/bash
-c
'source /srv/bin/env_3-5/bin/activate'
\
&&
/srv/gargantext/manage.py shell < /srv/gargantext/init.py
echo
"Gargantua: END of the installation of Gargantext"
install/debian/asPostgres.sh
0 → 100755
View file @
87f5a934
#!/bin/bash
# ## CONFIGURE POSTGRESQL
psql
-c
"CREATE user gargantua WITH PASSWORD 'C8kdcUrAQy66U'"
&&
createdb
-O
gargantua gargandb
install/debian/asRoot.sh
0 → 100755
View file @
87f5a934
#!/bin/bash
#MAINTAINER ISCPIF <alexandre.delanoe@iscpif.fr>
apt-get update
&&
\
apt-get
install
-y
\
apt-utils ca-certificates locales
\
sudo
aptitude gcc wget git postgresql-9.5 vim
### Configure timezone and locale
echo
"Europe/Paris"
>
/etc/timezone
&&
\
dpkg-reconfigure
-f
noninteractive tzdata
&&
\
sed
-i
-e
's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/'
/etc/locale.gen
&&
\
sed
-i
-e
's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/'
/etc/locale.gen
&&
\
echo
'LANG="fr_FR.UTF-8"'
>
/etc/default/locale
&&
\
dpkg-reconfigure
--frontend
=
noninteractive locales
&&
\
update-locale
LANG
=
fr_FR.UTF-8
## PROD VERSION OF GARGANTEXt
apt-get
install
uwsgi nginx
### CREATE USER and adding it to sudo
## USER gargantua cannot not connect with password but SSH key
adduser
--disabled-password
--gecos
""
gargantua
\
&&
adduser gargantua
sudo
\
&&
echo
'%sudo ALL=(ALL) NOPASSWD:ALL'
>>
/etc/sudoers
# addgroup gargantext here with specific users
## Install Database, main dependencies and Python
## (installing some Debian version before pip to get dependencies)
apt-get update
&&
apt-get
install
-y
\
postgresql-server-dev-9.5 libpq-dev libxml2
\
libxml2-dev xml-core libgfortran-5-dev
\
virtualenv python3-virtualenv
\
python3.4 python3.4-dev
\
python3.5 python3.5-dev
\
python3-six python3-numpy
#if [[ -e "/srv/gargantext" ]]
#rm -rf /srv/gargantext /srv/env_3-5
for
dir
in
"/srv/gargantext"
\
"/srv/gargantext_lib"
\
"/srv/env_3-5"
\
"/var/www/gargantext"
;
do
\
mkdir
$dir
chown
gargantua:gargantua
$dir
done
echo
"Root: END of the installation of Gargantext by Root."
install/docker/README.md
0 → 100644
View file @
87f5a934
Docker installation
For dev: cd dev and run install
Fro prod : install dev-version, cd prod and run install
install/docker/dev/Dockerfile
0 → 100644
View file @
87f5a934
#FROM debian:stretch
FROM
gargantext
#MAINTAINER ISCPIF <alexandre.delanoe@iscpif.fr>
#
## Install docker.io
## Install sudo
## wget http://dl.gargantext.
## cd /srv/gargantext/install
## sudo docker build -t gargantext .
# docker run -i -t gargantext /bin/bash
USER
root
# RUN apt-get update && \
# apt-get install -y \
# apt-utils ca-certificates locales \
# sudo aptitude gcc wget git postgresql-9.5 vim
#
# ## Configure timezone and locale
# RUN echo "Europe/Paris" > /etc/timezone && \
# dpkg-reconfigure -f noninteractive tzdata && \
# sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen && \
# sed -i -e 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen && \
# echo 'LANG="fr_FR.UTF-8"' > /etc/default/locale && \
# dpkg-reconfigure --frontend=noninteractive locales && \
# update-locale LANG=fr_FR.UTF-8
#
#
# RUN apt-get update \
# && apt-get install -y postgresql-server-dev-9.5 \
# libpq-dev libxml2 libxml2-dev xml-core libgfortran-5-dev
#
# # PROD VERSION OF GARGANTEXt
# # RUN apt-get install uwsgi nginx
#
#
# ## CREATE USER and adding it to sudo
# ## TODO ask user for password
# RUN adduser --disabled-password --gecos "" gargantua
# RUN apt-get install -y sudo && adduser gargantua sudo \
# && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
#
# # Python dependencies
# # (installing Debian version before pip to get dependencies)
# # TODO: update it with requirements.txt
# RUN apt-get update && apt-get install -y \
# virtualenv python3-virtualenv \
# python3.4 python3.4-dev \
# python3.5 python3.5-dev \
# python3-six python3-numpy
#
# # Installing pip version of python libs
WORKDIR
/home/gargantua
# FIXME : pip install -r all requirements does not work, need to split the list
#RUN wget http://dl.delanoe.org/requirements.txt \
# && /usr/bin/virtualenv --py=/usr/bin/python3.5 env_3-5 \
# && /bin/bash -c 'source env_3-5/bin/activate' \
# && /bin/bash -c 'env_3-5/bin/pip install git+https://github.com/zzzeek/sqlalchemy.git@rel_1_1' \
# && /bin/bash -c 'env_3-5/bin/pip install -r requirements.txt'
# chown gargantua
#
## CONFIGURE POSTGRESQL
#
#VOLUME ["/home/gargantua","/data/gargantext"]
## INSTALL MAIN DEPENDENCIES
#WORKDIR /srv
#RUN mkdir -p gargantext
# configure postgres here
# OK
USER
postgres
RUN
/etc/init.d/postgresql start
&&
\
psql -c "CREATE user gargantua WITH PASSWORD 'C8kdcUrAQy66U'" &&\
createdb -O gargantua gargandb
# GET CONFIG FILES
# USER gargantua
#RUN wget http://dl.delanoe.org/gargantext_big.txt -o /srv/gargantext_big.txt
#RUN cd /srv/ && git clone https://gogs.iscpif.fr/gargantext.git
# script pour peupler la base
# mount /srv
# execute
##################### INSTALLATION END #####################
# Expose the default port
#EXPOSE 54332
# Default port to execute the entrypoint (MongoDB)
#CMD ["--port 27017"]
# Set default container command
#ENTRYPOINT usr/bin/mongod
# ENTRYPOINT /etc/init.d/postgresql start
install/docker/dev/install.sh
0 → 100755
View file @
87f5a934
#/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
# launch
#cd /srv/gargantext
#source /srv/env_3-5/bin/activate &&
#docker run -d -p 8000:8000 -v /srv:/srv -t gargantext python /srv/gargantext/gargantext.py
docker build
-t
gargantext
.
install/python/requirements.txt
0 → 100644
View file @
87f5a934
amqp==1.4.9
anyjson==0.3.3
billiard==3.3.0.22 # multiprocessing fork
celery==3.1.20
chardet==2.3.0
dateparser==0.3.2
Django==1.9.2
django-celery==3.1.17
django-pgfields==1.4.4
django-pgjsonb==0.0.16
djangorestframework==3.3.2
html5lib==0.9999999
jdatetime==1.7.2
kombu==3.0.33 # messaging
lxml==3.5.0
nltk==3.1
numpy==1.10.4
psycopg2==2.6.1
pycountry==1.20
python-dateutil==2.4.2
pytz==2015.7 # timezones
PyYAML==3.11
RandomWords==0.1.12
SQLAlchemy==1.1.0b1.dev0
ujson==1.35
umalqurra==0.2 # arabic calendars (?? why use ??)
wheel==0.29.0
pandas==0.18.0
networkx==1.11
six==1.10.0
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