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
b9c4d559
Commit
b9c4d559
authored
Aug 31, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEBIAN INSTALL] Fixes and warnings for safety.
parent
55fcd165
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
43 deletions
+39
-43
Debian.sh
install/gargamelle/Debian.sh
+39
-43
No files found.
install/gargamelle/Debian.sh
View file @
b9c4d559
...
@@ -14,6 +14,7 @@ nginx rabbitmq-server
...
@@ -14,6 +14,7 @@ nginx rabbitmq-server
### Configure timezone and locale
### Configure timezone and locale
echo
"########### LOCALES & TZ #################"
echo
"########### LOCALES & TZ #################"
echo
"Europe/Paris"
>
/etc/timezone
echo
"Europe/Paris"
>
/etc/timezone
dpkg-reconfigure
--frontend
=
noninteractive tzdata
#ENV TZ "Europe/Paris"
#ENV TZ "Europe/Paris"
sed
-i
-e
's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/'
/etc/locale.gen
&&
\
sed
-i
-e
's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/'
/etc/locale.gen
&&
\
...
@@ -26,50 +27,45 @@ update-locale LC_ALL=fr_FR.UTF-8
...
@@ -26,50 +27,45 @@ update-locale LC_ALL=fr_FR.UTF-8
# see warning: https://wiki.debian.org/Locale
# see warning: https://wiki.debian.org/Locale
### Install main dependencies and python packages based on Debian distrib
### Install main dependencies and python packages based on Debian distrib
echo
"############# PYTHON DEPENDENCIES ###############"
echo
"############# PYTHON DEPENDENCIES ###############"
apt-get update
&&
apt-get
install
-y
\
apt-get update
&&
apt-get
install
-y
\
libxml2-dev xml-core libgfortran-5-dev
\
libxml2-dev xml-core libgfortran-5-dev
\
libpq-dev
\
libpq-dev
\
python3.5
\
python3.5
\
python3-dev
\
python3-dev
\
# for numpy, pandas and numpyperf
python3-six python3-numpy python3-setuptools
\
python3-six python3-numpy python3-setuptools
\
python3-numexpr
\
python3-numexpr
\
python3-pip
\
# python dependencies
libxml2-dev libxslt-dev
python3-pip
\
#libxslt1-dev zlib1g-dev
# for lxml
libxml2-dev libxslt-dev
UPDATE AND CLEAN
#libxslt1-dev zlib1g-dev
apt-get update
&&
apt-get autoclean
#NB: removing /var/lib will avoid to significantly fill up your /var/ folder on your native system
########################################################################
### PYTHON ENVIRONNEMENT (as ROOT)
########################################################################
#adduser --disabled-password --gecos "" gargantua
cd
/srv/
pip3
install
virtualenv
virtualenv /srv/env_3-5
echo
'alias venv="source /srv/env_3-5/bin/activate"'
>>
~/.bashrc
# CONFIG FILES
# UPDATE AND CLEAN
# su gargantua -c 'all commands below'
apt-get update
&&
apt-get autoclean
&&
\
# but nltk needs right access (so done in root, not really good for safety)
rm
-rf
/var/lib/apt/lists/
*
source
/srv/env_3-5/bin/activate
&&
pip3
install
-r
requirements.txt
&&
\
#NB: removing /var/lib will avoid to significantly fill up your /var/ folder on your native system
pip3
install
git+https://github.com/zzzeek/sqlalchemy.git@rel_1_1
&&
\
python3
-m
nltk.downloader averaged_perceptron_tagger
-d
/usr/local/share/nltk_data
########################################################################
### PYTHON ENVIRONNEMENT (as ROOT)
chown
gargantua:gargantua
-R
/srv/env_3-5
########################################################################
#######################################################################
#adduser --disabled-password --gecos "" gargantua
## POSTGRESQL DATA (as ROOT)
#######################################################################
cd
/srv/
pip3
install
virtualenv
virtualenv /srv/env_3-5
echo
'alias venv="source /srv/env_3-5/bin/activate"'
>>
~/.bashrc
# CONFIG FILES
#ADD requirements.txt /
#ADD psql_configure.sh /
#ADD django_configure.sh /
/srv/env_3-5/bin/activate
&&
pip3
install
-r
requirements.txt
&&
\
pip3
install
git+https://github.com/zzzeek/sqlalchemy.git@rel_1_1
&&
\
python3
-m
nltk.downloader averaged_perceptron_tagger
-d
/usr/local/share/nltk_data
chown
gargantua:gargantua
-R
/srv/env_3-5
########################################################################
### POSTGRESQL DATA (as ROOT)
########################################################################
sed
-iP
"s%^data_directory.*%data_directory =
\'\/
srv
\/
gargandata
\'
%"
/etc/postgresql/9.5/main/postgresql.conf
sed
-iP
"s%^data_directory.*%data_directory =
\'\/
srv
\/
gargandata
\'
%"
/etc/postgresql/9.5/main/postgresql.conf
echo
"host all all 0.0.0.0/0 md5"
>>
/etc/postgresql/9.5/main/pg_hba.conf
echo
"host all all 0.0.0.0/0 md5"
>>
/etc/postgresql/9.5/main/pg_hba.conf
...
...
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