Commit b9c152b7 authored by delanoe's avatar delanoe

[FIX] uncomment comments for tests.

parent 4e26697e
...@@ -8,56 +8,56 @@ ...@@ -8,56 +8,56 @@
########################################################### ###########################################################
# https://docs.docker.com/compose/django/ # https://docs.docker.com/compose/django/
###################################################################### ######################################################################
#FROM debian:stretch FROM debian:stretch
FROM gargantext #FROM gargantext
MAINTAINER ISCPIF <alexandre.delanoe@iscpif.fr> MAINTAINER ISCPIF <alexandre.delanoe@iscpif.fr>
###################################################################### ######################################################################
USER root USER root
#RUN apt-get update && \ RUN apt-get update && \
# apt-get install -y \ apt-get install -y \
# apt-utils ca-certificates locales man dialog\ apt-utils ca-certificates locales man dialog\
# sudo aptitude gcc g++ wget git postgresql-9.5 vim sudo aptitude gcc g++ wget git postgresql-9.5 vim
#
#### Configure timezone and locale ### Configure timezone and locale
#RUN echo "Europe/Paris" > /etc/timezone && \ RUN echo "Europe/Paris" > /etc/timezone && \
# dpkg-reconfigure -f noninteractive tzdata && \ 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/# 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 && \ 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 && \ echo 'LANG="fr_FR.UTF-8"' > /etc/default/locale && \
# dpkg-reconfigure --frontend=noninteractive locales && \ dpkg-reconfigure --frontend=noninteractive locales && \
# update-locale LANG=fr_FR.UTF-8 update-locale LANG=fr_FR.UTF-8
#
#### Install Database, main dependencies and Python ### Install Database, main dependencies and Python
#### (installing some Debian version before pip to get dependencies) ### (installing some Debian version before pip to get dependencies)
#RUN apt-get update && apt-get install -y \ 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.4 python3.4-dev \
# python3.5 python3.5-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
#
#### PROD VERSION OF GARGANTEXT ONLY ### PROD VERSION OF GARGANTEXT ONLY
##RUN apt-get install -y uwsgi nginx uwsgi-plugin-python rabbitmq-server #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
# #
## ## 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 \
## CONFIGURE POSTGRESQL && 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 RUN sed -iP "s%^data_directory.*%data_directory = \'\/srv\/gargantext_data\'%" /etc/postgresql/9.5/main/postgresql.conf
......
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