Updated docker files

This commit is contained in:
2015-10-21 15:33:44 +02:00
parent 322530761e
commit cbccc3b94a
6 changed files with 49 additions and 42 deletions

View File

@@ -10,7 +10,7 @@
# EnableSendfile on
XSendFile on
XSendFilePath /storage/pillar
XSendFilePath /data/storage/pillar
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
@@ -34,10 +34,10 @@
WSGIDaemonProcess pillar
WSGIPassAuthorization On
WSGIScriptAlias / /data/dev/pillar/pillar/runserver.wsgi \
WSGIScriptAlias / /data/git/pillar/pillar/runserver.wsgi \
process-group=pillar application-group=%{GLOBAL}
<Directory /data/dev/pillar/pillar>
<Directory /data/git/pillar/pillar>
<Files runserver.wsgi>
Require all granted
</Files>

View File

@@ -5,7 +5,6 @@ RUN apt-get update && apt-get install -y \
python \
python-dev \
python-pip \
git \
vim \
nano \
zlib1g-dev \
@@ -23,16 +22,11 @@ RUN add-apt-repository ppa:mc3man/trusty-media \
&& apt-get update && apt-get install -y \
ffmpeg
RUN mkdir /data \
&& mkdir /data/www \
&& mkdir /data/www/pillar \
&& mkdir /data/dev \
&& mkdir /data/dev/pillar \
&& mkdir /storage \
&& mkdir /storage/shared \
&& mkdir /storage/pillar \
&& mkdir /data/config \
&& mkdir /storage/logs
RUN mkdir -p /data/git/pillar \
&& mkdir -p /data/storage/shared \
&& mkdir -p /data/storage/pillar \
&& mkdir -p /data/config \
&& mkdir -p /data/storage/logs
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
@@ -43,18 +37,19 @@ ENV APACHE_LOCK_DIR /var/lock/apache2
RUN mkdir -p $APACHE_RUN_DIR $APACHE_LOCK_DIR $APACHE_LOG_DIR
RUN git clone https://github.com/armadillica/pillar.git /data/www/pillar
RUN pip install virtualenv \
&& virtualenv /data/venv
RUN . /data/venv/bin/activate \
&& pip install -r /data/www/pillar/requirements.txt
ENV PIP_PACKAGES_VERSION = 1
ADD requirements.txt /requirements.txt
VOLUME /data/dev/pillar
RUN . /data/venv/bin/activate \
&& pip install -r /requirements.txt
VOLUME /data/git/pillar
VOLUME /data/config
VOLUME /storage/shared
VOLUME /storage/pillar
VOLUME /data/storage/shared
VOLUME /data/storage/pillar
ENV MONGO_HOST mongo_pillar