Commit 1530d978 authored by Aflitos, Saulo Alves's avatar Aflitos, Saulo Alves
Browse files

new dockerfiles

parent 73d0ca46
......@@ -4,17 +4,7 @@
FROM sauloal/introgressionbrowser_runtime
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir -p /etc/apache2/mods-available/ && \
mkdir -p /var/www/ibrowser && \
ln -s /var/www/ibrowser/static/ /var/www/html/static
# sed -ie "s/Listen 80/Listen 8000/" /etc/apache2/ports.conf && \
ADD ibrowser.conf /etc/apache2/mods-enabled/ibrowser.conf
RUN cd /var/www && git clone https://github.com/sauloal/introgressionbrowser.git ibrowser
WORKDIR /var/www/ibrowser
VOLUME [ "/var/www/ibrowser" ]
VOLUME [ "/var/www/ibrowser/data" ]
#docker run -it --security-context -v $PWD:/var/www/ibrowser -v $PWD/data:/var/www/ibrowser/data -v $PWD/access.log:/var/log/apache2/access.log -v $PWD/error.log:/var/log/apache2/error.log sauloal/introgressionbrowser
#--security-context apparmor:unconfine
#docker build --rm -t sauloal/introgressionbrowser .
FROM sauloal/introgressionbrowser_runtime
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir -p /etc/apache2/mods-available/ && \
mkdir -p /var/www/ibrowser && \
ln -s /var/www/ibrowser/static/ /var/www/html/static
# sed -ie "s/Listen 80/Listen 8000/" /etc/apache2/ports.conf && \
ADD ibrowser.conf /etc/apache2/mods-enabled/ibrowser.conf
WORKDIR /var/www/ibrowser
VOLUME [ "/var/www/ibrowser" ]
VOLUME [ "/var/www/ibrowser/data" ]
#docker run -it --security-context -v $PWD:/var/www/ibrowser -v $PWD/data:/var/www/ibrowser/data -v $PWD/access.log:/var/log/apache2/access.log -v $PWD/error.log:/var/log/apache2/error.log sauloal/introgressionbrowser
#--security-context apparmor:unconfine
#docker build --rm -t sauloal/introgressionbrowser .
FROM sauloal/introgressionbrowser_runtime
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir -p /etc/apache2/mods-available/ && \
mkdir -p /var/www/ibrowser && \
ln -s /var/www/ibrowser/static/ /var/www/html/static
# sed -ie "s/Listen 80/Listen 8000/" /etc/apache2/ports.conf && \
ADD ibrowser.conf /etc/apache2/mods-enabled/ibrowser.conf
WORKDIR /var/www/ibrowser
VOLUME [ "/var/www/ibrowser" ]
VOLUME [ "/var/www/ibrowser/data" ]
ServerName assembly.ab.wurnet.nl
<VirtualHost *:8000>
ServerAdmin sauloalves.aflitos@wur.nl
#ServerName ibrowser.assembly.ab.wurnet.nl
#ServerAlias *.ibrowser.assembly.ab.wurnet.nl
DocumentRoot /var/www/ibrowser
RewriteEngine On
ProxyPreserveHost On
# Tells apache where /static/ should go
Alias /static/ /var/www/ibrowser/static/
ProxyPass /favicon.ico !
ProxyPass /static !
ProxyPass / http://localhost:10000/
ProxyPassReverse / http://localhost:10000/
LogLevel debug
</VirtualHost>
#docker build --rm -t sauloal/introgressionbrowser_local .
FROM sauloal/introgressionbrowser_runtime
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir -p /var/www/ibrowser
WORKDIR /var/www/ibrowser
......@@ -4,9 +4,10 @@ FROM ubuntu:14.10
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get clean all && apt-get update && apt-get -y upgrade && \
RUN sed -i 's/http:\/\/archive.ubuntu.com\/ubuntu\//mirror:\/\/mirrors.ubuntu.com\/mirrors.txt/' /etc/apt/sources.list &&\
apt-get clean all && apt-get update && apt-get -y upgrade && \
apt-get install -y -f libapache2-mod-wsgi apache2 nano build-essential \
checkinstall openssl sqlite3 libsqlite3-dev \
checkinstall openssl sqlite3 libsqlite3-dev git nano \
libfreetype6 libfreetype6-dev zlib1g-dev libjpeg62 libjpeg62-dev \
pkg-config libblas-dev liblapack-dev gfortran zlib1g-dev && \
apt-get install -y -f python-setuptools python-dev python-numpy python-scipy \
......
Supports Markdown
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