New Dockerfiles for development and production
This commit is contained in:
parent
1bda2142cd
commit
dc215134fc
43
docker/pro/000-default.conf
Normal file
43
docker/pro/000-default.conf
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
# The ServerName directive sets the request scheme, hostname and port that
|
||||||
|
# the server uses to identify itself. This is used when creating
|
||||||
|
# redirection URLs. In the context of virtual hosts, the ServerName
|
||||||
|
# specifies what hostname must appear in the request's Host: header to
|
||||||
|
# match this virtual host. For the default virtual host (this file) this
|
||||||
|
# value is not decisive as it is used as a last resort host regardless.
|
||||||
|
# However, you must set it for any further virtual host explicitly.
|
||||||
|
#ServerName 127.0.0.1
|
||||||
|
|
||||||
|
ServerAdmin webmaster@localhost
|
||||||
|
DocumentRoot /var/www/html
|
||||||
|
|
||||||
|
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
||||||
|
# error, crit, alert, emerg.
|
||||||
|
# It is also possible to configure the loglevel for particular
|
||||||
|
# modules, e.g.
|
||||||
|
#LogLevel info ssl:warn
|
||||||
|
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
|
||||||
|
# For most configuration files from conf-available/, which are
|
||||||
|
# enabled or disabled at a global level, it is possible to
|
||||||
|
# include a line for only one particular virtual host. For example the
|
||||||
|
# following line enables the CGI configuration for this host only
|
||||||
|
# after it has been globally disabled with "a2disconf".
|
||||||
|
#Include conf-available/serve-cgi-bin.conf
|
||||||
|
|
||||||
|
WSGIDaemonProcess pillar-web
|
||||||
|
WSGIPassAuthorization On
|
||||||
|
|
||||||
|
WSGIScriptAlias / /data/dev/pillar-web/pillar-web/runserver.wsgi \
|
||||||
|
process-group=pillar-web application-group=%{GLOBAL}
|
||||||
|
|
||||||
|
<Directory /data/dev/pillar-web/pillar-web>
|
||||||
|
<Files runserver.wsgi>
|
||||||
|
Require all granted
|
||||||
|
</Files>
|
||||||
|
</Directory>
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
55
docker/pro/Dockerfile
Normal file
55
docker/pro/Dockerfile
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
FROM ubuntu:14.04
|
||||||
|
MAINTAINER Francesco Siddi <francesco@blender.org>
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
python \
|
||||||
|
python-dev \
|
||||||
|
python-pip \
|
||||||
|
git \
|
||||||
|
vim \
|
||||||
|
nano \
|
||||||
|
zlib1g-dev \
|
||||||
|
libjpeg-dev \
|
||||||
|
python-crypto \
|
||||||
|
python-openssl \
|
||||||
|
libssl-dev \
|
||||||
|
libffi-dev \
|
||||||
|
software-properties-common \
|
||||||
|
apache2-mpm-event \
|
||||||
|
libapache2-mod-wsgi
|
||||||
|
|
||||||
|
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 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
|
||||||
|
|
||||||
|
VOLUME /data/dev/pillar
|
||||||
|
VOLUME /data/config
|
||||||
|
VOLUME /storage/shared
|
||||||
|
VOLUME /storage/pillar
|
||||||
|
|
||||||
|
ENV MONGO_HOST mongo_pillar
|
||||||
|
|
||||||
|
EXPOSE 5000
|
||||||
|
|
||||||
|
ADD 000-default.conf /etc/apache2/sites-available/000-default.conf
|
||||||
|
|
||||||
|
CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"]
|
Loading…
x
Reference in New Issue
Block a user