Commit 0a603221 authored by delanoe's avatar delanoe

[FIX] Docker install. Should be ok for main environment.

parent 024fc6d9
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
########################################################### ###########################################################
###################################################################### ######################################################################
FROM debian:stretch #FROM debian:stretch
#FROM gargantext FROM gargantext
MAINTAINER ISCPIF <alexandre.delanoe@iscpif.fr> MAINTAINER ISCPIF <alexandre.delanoe@iscpif.fr>
###################################################################### ######################################################################
...@@ -59,16 +59,16 @@ VOLUME ["/srv","/var"] ...@@ -59,16 +59,16 @@ VOLUME ["/srv","/var"]
# Create directories in /srv # Create directories in /srv
# FIXME: not tested # FIXME: not tested
RUN for dir in "/srv/gargantext"\ RUN for dir in "/srv/gargantext"\
"/srv/gargantext_lib"\ "/srv/gargantext_lib"\
"/srv/gargantext_static"\ "/srv/gargantext_static"\
"/srv/gargantext_media"\ "/srv/gargantext_media"\
"/srv/env_3-5"\ "/srv/env_3-5"\
"/var/www/gargantext"; do \ "/var/www/gargantext"; do \
mkdir -p $dir \ mkdir -p $dir ;\
chown gargantua:gargantua $dir \ chown gargantua:gargantua $dir ; \
done \ done ;\
echo "Root: END of the installation of Gargantext by Root." echo "Root: END of the installation of Gargantext by Root." ;
###################################################################### ######################################################################
...@@ -87,18 +87,12 @@ RUN /etc/init.d/postgresql start &&\ ...@@ -87,18 +87,12 @@ RUN /etc/init.d/postgresql start &&\
###################################################################### ######################################################################
USER gargantua USER gargantua
# TODO (soon) : git clone https://gogs.iscpif.fr/gargantext.git
RUN git clone ssh://gitolite@delanoe.org:1979/gargantext /srv/gargantext \
&& cd /srv/gargantext \
&& git fetch origin refactoring \
&& git checkout refactoring
# Installing pip version of python libs
# Possible FIXME : if `pip install -r requirements.txt` fails # Possible FIXME : if `pip install -r requirements.txt` fails
# then: fixme >> maybe (split the list) # then: fixme >> maybe (split the list)
# else: enjoy # else: enjoy
# # Installing pip version of python libs
# TODO: user local file requirements with docker (and not wget) # TODO: user local file requirements with docker (and not wget)
RUN wget http://dl.delanoe.org/requirements.txt -o /tmp/requirements.txt \ RUN wget http://dl.delanoe.org/requirements.txt -o /tmp/requirements.txt \
...@@ -108,14 +102,22 @@ RUN wget http://dl.delanoe.org/requirements.txt -o /tmp/requirements.txt \ ...@@ -108,14 +102,22 @@ RUN wget http://dl.delanoe.org/requirements.txt -o /tmp/requirements.txt \
&& /bin/bash -c 'env_3-5/bin/pip install -r /tmp/requirements.txt' && /bin/bash -c 'env_3-5/bin/pip install -r /tmp/requirements.txt'
# GET CONFIG FILES ## GET CONFIG FILES (need update)
WORKDIR /tmp #WORKDIR /tmp
RUN wget http://dl.gargantext.org/gargantext_lib.tar.bz2 \ #RUN wget http://dl.gargantext.org/gargantext_lib.tar.bz2 \
&& tar xvjf gargantext_lib.tar.bz2 -o /srv/gargantext_lib \ # && tar xvjf gargantext_lib.tar.bz2 -o /srv/gargantext_lib \
&& chown -R gargantua:gargantua /srv/gargantext_lib \ # && chown -R gargantua:gargantua /srv/gargantext_lib \
&& echo "Root: END of the installation of Gargantexts Database by postgres." # && echo "Root: END of the installation of Gargantexts Database by postgres."
# TODO script pour peupler la base # TODO script pour peupler la base
###################################################################### ######################################################################
# Last step as user:
## TODO (soon) : git clone https://gogs.iscpif.fr/gargantext.git
#RUN git clone ssh://gitolite@delanoe.org:1979/gargantext /srv/gargantext \
# && cd /srv/gargantext \
# && git fetch origin refactoring \
# && git checkout refactoring
###################################################################### ######################################################################
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