From df4d14a6f7d0943ad74d210c69ca56d85535afd9 Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Thu, 23 Jul 2015 18:23:43 +0000 Subject: [PATCH] Added docker files --- Dockerfile | 13 +++++++++++++ docker-compose.yml | 11 +++++++++++ dss/settings.py | 3 +-- requirements.txt | 3 +-- 4 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1f9677d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:2.7 +ENV PYTHONBUFFERED 1 + +RUN mkdir /code +RUN mkdir /files/static +RUN mkdir /files/media +RUN mkdir /files/cache +RUN mkdir /files/tmp + +WORKDIR /code +ADD requirements.txt /code/ +RUN pip install -r requirements.txt +ADD . /code/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..25af2bd --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +db: + image: postgres +web: + build: . + command: python manage.py runserver 0.0.0.0:8000 + volumes: + - .:/code + ports: + - "8000:8000" + links: + - db diff --git a/dss/settings.py b/dss/settings.py index a91bf7a..1aed694 100755 --- a/dss/settings.py +++ b/dss/settings.py @@ -117,7 +117,6 @@ INSTALLED_APPS = ( 'corsheaders', 'sorl.thumbnail', 'spa', - 'tinymce', 'gunicorn', 'spa.signals', 'core', @@ -223,4 +222,4 @@ JWT_AUTH = { 'JWT_EXPIRATION_DELTA': timedelta(seconds=900), 'JWT_ALLOW_REFRESH': True, 'JWT_REFRESH_EXPIRATION_DELTA': timedelta(days=30), -} \ No newline at end of file +} diff --git a/requirements.txt b/requirements.txt index c8d12d2..83dc88d 100755 --- a/requirements.txt +++ b/requirements.txt @@ -26,7 +26,6 @@ git+git://github.com/tschellenbach/Django-facebook.git#django-facebook git+git://github.com/llazzaro/django-scheduler.git#django-scheduler git+git://github.com/omab/python-social-auth.git#egg=python-social-auth django-allauth -django-tinymce apache-libcloud mandrill djrill @@ -43,4 +42,4 @@ mutagen django-enumfield ipython -ipdb \ No newline at end of file +ipdb