Move the pid files inside the container so they don't conflict.

This commit is contained in:
jakedt 2014-04-17 12:29:23 -04:00
parent 91c1342ffb
commit 9e88414773
3 changed files with 5 additions and 2 deletions

View file

@ -4,6 +4,8 @@ ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
RUN apt-get update
# New ubuntu packages should be added as their own apt-get install lines below the existing install commands
RUN apt-get install -y git python-virtualenv python-dev phantomjs libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev libevent-dev gdebi-core g++ libmagic1
ADD binary_dependencies binary_dependencies
@ -42,6 +44,7 @@ ADD conf/init/webhookworker.sh /etc/service/webhookworker/run
RUN TEST=true venv/bin/python -m unittest discover
RUN rm -rf /conf/stack
VOLUME ["/conf/stack", "/mnt/logs"]
EXPOSE 443 80

View file

@ -2,7 +2,7 @@ bind = 'unix:/tmp/gunicorn.sock'
workers = 8
worker_class = 'gevent'
timeout = 2000
pidfile = '/mnt/logs/gunicorn.pid'
pidfile = '/tmp/gunicorn.pid'
errorlog = '/mnt/logs/application.log'
loglevel = 'debug'
logger_class = 'util.glogger.LogstashLogger'

View file

@ -1,4 +1,4 @@
pid /mnt/logs/nginx.pid;
pid /tmp/nginx.pid;
error_log /mnt/logs/nginx.error.log;
events {