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
ae48d2a4
Commit
ae48d2a4
authored
Mar 17, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Docker install]
parent
01139ca8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
138 additions
and
0 deletions
+138
-0
Dockerfile
install/Dockerfile
+121
-0
install.sh
install/install.sh
+17
-0
No files found.
install/Dockerfile
0 → 100644
View file @
ae48d2a4
#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 .
#
RUN
apt-get update
&&
\
apt-get
install
-y
aptitude
\
apt-utils ca-certificates locales
\
sudo
gcc wget git postgresql-9.5 vim
#USER root
WORKDIR
/home/gargantua
#RUN apt-get update \
# && apt-get install -y postgresql-server-dev-9.5 \
# libpq-dev libxml2 libxml2-dev xml-core libgfortran-5-dev \
# && /bin/bash -c 'source env_3-5/bin/activate' \
# && /bin/bash -c 'env_3-5/bin/pip install -r requirements.txt'
#
RUN
wget http://dl.delanoe.org/debian.txt
\
&&
apt-get update
&&
dpkg
--set-selections
< debian.txt
\
&&
apt-get dselect-upgrade
\
&&
/bin/bash
-c
'source /home/gargantua/env_3-5/bin/activate'
\
&&
/bin/bash
-c
\
'/home/gargantua/env_3-5/bin/pip install -r
\
/home/gargantua/requirements.txt'
#RUN apt-get update && apt-get install -y \
# virtualenv python3-virtualenv \
# python3.4 python3.4-dev \
# python3.5 python3.5-dev \
# && 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'
#
#
## Configure timezone and locale
##USER root
#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
#
#
## CREATE USER and adding it to sudo
#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
#
#VOLUME ["/home/gargantua","/data/gargantext"]
## INSTALL MAIN DEPENDENCIES
#
#USER gargantua
#WORKDIR /home/gargantua
#RUN /usr/bin/virtualenv --py=/usr/bin/python3.4 env_3-4
#RUN wget http://dl.delanoe.org/requirements.txt &&\
# /usr/bin/virtualenv --py=/usr/bin/python3.5 env_3-5 &&\
# source env_3-5/bin/activate &&\
# pip install -R requirements.txt
#
#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/install.sh
0 → 100644
View file @
ae48d2a4
#/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
.
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