From d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073 Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Fri, 23 Sep 2016 22:48:02 +0100 Subject: [PATCH] Docker permissions changes --- Dockerfile | 8 ++++++++ dss/settings.py | 2 +- run_web.sh | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd64e60..947d87b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,14 @@ RUN mkdir /files/static RUN mkdir /files/media RUN mkdir /files/cache/mixes RUN mkdir /files/cache/waveforms + RUN touch /files/tmp/dss.log +RUN chmod 777 /files/tmp/dss.log +RUN chmod 777 /files/cache -R + +RUN chmod +x /code/bin/wav2png +RUN chmod +x /code/run_web.sh +RUN chmod +x /code/run_celery.sh WORKDIR /code + diff --git a/dss/settings.py b/dss/settings.py index 1d80e09..3072266 100644 --- a/dss/settings.py +++ b/dss/settings.py @@ -20,7 +20,7 @@ DEVELOPMENT = DEBUG # AUTH_USER_MODEL = 'spa.UserProfile' TEMPLATE_DEBUG = DEBUG -VERSION = '3.0.1' +VERSION = '3.0.2' ADMINS = ( ('Fergal Moran', 'fergal.moran@gmail.com'), diff --git a/run_web.sh b/run_web.sh index a2db8f4..680ecb9 100644 --- a/run_web.sh +++ b/run_web.sh @@ -1,6 +1,8 @@ #!/bin/bash python manage.py migrate +chmod 777 /files/tmp/dss.log + touch /srv/logs/gunicorn.log touch /srv/logs/access.log tail -n 0 -f /srv/logs/*.log & @@ -12,4 +14,4 @@ exec gunicorn dss.wsgi:application \ --log-level=info \ --log-file=/srv/logs/gunicorn.log \ --access-logfile=/srv/logs/access.log \ - "$@" \ No newline at end of file + "$@"