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
fb873d8b
Commit
fb873d8b
authored
Jul 01, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Plain Diff
[FIX] merge c24b-docker.
parents
640460ae
db640a66
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
98 deletions
+6
-98
Dockerfile
install/docker/config/Dockerfile
+6
-3
export.sh
install/docker/config/export.sh
+0
-0
Dockerfile
install/docker/dev/Dockerfile
+0
-72
build
install/docker/dev/build
+0
-23
install.sh
install/docker/install.sh
+0
-0
No files found.
install/docker/config/Dockerfile
View file @
fb873d8b
...
@@ -44,13 +44,12 @@ RUN apt-get update && apt-get install -y \
...
@@ -44,13 +44,12 @@ RUN apt-get update && apt-get install -y \
postgresql-server-dev-9.5 libpq-dev libxml2
\
postgresql-server-dev-9.5 libpq-dev libxml2
\
libxml2-dev xml-core libgfortran-5-dev
\
libxml2-dev xml-core libgfortran-5-dev
\
virtualenv python3-virtualenv
\
virtualenv python3-virtualenv
\
python3.4 python3.4-dev
\
python3.5 python3-dev
\
python3.5 python3.5-dev
\
python3-six python3-numpy python3-setuptools
\
python3-six python3-numpy python3-setuptools
\
# ^for numpy, pandas
# ^for numpy, pandas
python3-numexpr \
python3-numexpr \
# ^ for numpy performance
# ^ for numpy performance
libxml2-dev libxslt-dev
libxml2-dev libxslt-dev
# ^ for lxml
# ^ for lxml
#libxslt1-dev zlib1g-dev
#libxslt1-dev zlib1g-dev
...
@@ -75,3 +74,7 @@ RUN python3-pip install -r /srv/gargantex/install/python/requirements.txt
...
@@ -75,3 +74,7 @@ RUN python3-pip install -r /srv/gargantex/install/python/requirements.txt
#in docker database
#in docker database
#RUN sed -iP 's%^data_directory.*%data_directory = '\/srv\/gargantext_data'%' /etc/postgresql/9.5/main/postgresql.conf
#RUN sed -iP 's%^data_directory.*%data_directory = '\/srv\/gargantext_data'%' /etc/postgresql/9.5/main/postgresql.conf
######################################################################
######################################################################
#INSTALLATION AND CONFIG python and postgresql module
COPY
. /install
CMD
[./install/python/configure, ./install/postgres/configure]
install/docker/
dev
/export.sh
→
install/docker/
config
/export.sh
View file @
fb873d8b
File moved
install/docker/dev/Dockerfile
deleted
100755 → 0
View file @
640460ae
###########################################################
# ____ ____ _____ __ ___ #
# / ___| __ _ _ __ / ___| __ _ _ _|_ _|__\ \/ / |_ #
# | | _ / _` | '__| | _ / _` | '_ \| |/ _ \\ /| __| #
# | |_| | (_| | | | |_| | (_| | | | | | __// \| |_ #
# \____|\__,_|_| \____|\__,_|_| |_|_|\___/_/\_\\__| #
# #
###########################################################
# https://docs.docker.com/compose/django/
######################################################################
FROM
debian:stretch
#FROM gargantext
MAINTAINER
ISCPIF <alexandre.delanoe@iscpif.fr>
######################################################################
USER
root
RUN
apt-get update
&&
\
apt-get
install
-y
\
apt-utils ca-certificates locales man dialog
\
sudo
aptitude gcc g++ 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
### Install Database, main dependencies and Python
### (installing some Debian version before pip to get dependencies)
RUN
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 python3-dev
\
python3.5 python3.5-dev
\
python3-six python3-numpy python3-setuptools
\
# ^for numpy, pandas
python3-numexpr \
# ^ for numpy performance
libxml2-dev libxslt-dev \
# ^ for lxml
bzip2
# ^ for the Gargantext librairies
### PROD VERSION OF GARGANTEXT ONLY
#RUN apt-get install -y uwsgi nginx uwsgi-plugin-python rabbitmq-server
#
## ## 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
#####################################################################
# CONFIGURE POSTGRESQL
#####################################################################
RUN
sed
-iP
"s%^data_directory.*%data_directory =
\'\/
srv
\/
gargantext_data
\'
%"
/etc/postgresql/9.5/main/postgresql.conf
#####################################################################
COPY
. /install
CMD
[./install/python/configure, ./install/posgres/configure, sudo pip install virtualenvwrapper]
install/docker/dev/build
deleted
100755 → 0
View file @
640460ae
#!/bin/bash
#######################################################################
# ____ _
# | _ \ ___ ___| | _____ _ __
# | | | |/ _ \ / __| |/ / _ \ '__|
# | |_| | (_) | (__| < __/ |
# |____/ \___/ \___|_|\_\___|_|
#
######################################################################
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
install/docker/
dev/
install.sh
→
install/docker/install.sh
View file @
fb873d8b
File moved
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