diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 26 | ||||
-rw-r--r-- | docker/Dockerfile-django-1.4.22-wheezy | 18 | ||||
-rw-r--r-- | docker/Dockerfile-django-1.5.12-jessie | 26 | ||||
-rw-r--r-- | docker/backports.list | 1 | ||||
-rw-r--r-- | docker/docker-cmd | 7 | ||||
-rw-r--r-- | docker/requirements.txt | 7 | ||||
-rw-r--r-- | docker/requirements.txt.dj-1.4.22 | 7 | ||||
-rw-r--r-- | docker/requirements.txt.dj-1.5.12 | 7 | ||||
-rw-r--r-- | docker/requirements.txt.dj-1.6.11 | 7 |
9 files changed, 106 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..c11a8b0 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,26 @@ +FROM python:2.7-stretch + +#COPY backports.list /etc/apt/sources.list.d/ + +RUN apt-get -y update && apt-get install -y mercurial fonts-freefont-ttf locales survex + +#RUN apt-get -y -t -backports install survex + +# Set the locale +RUN locale-gen en_GB.UTF-8 +ENV LANG en_GB.UTF-8 +ENV LANGUAGE en_GB:en +ENV LC_ALL en_GB.UTF-8 + +WORKDIR /opt/expo/troggle +COPY requirements.txt . + +RUN pip install --upgrade pip + +RUN pip install -r requirements.txt + +EXPOSE 8000 + +WORKDIR /expo/troggle + +#CMD ["python","manage.py","runserver","0.0.0.0:8000"]
\ No newline at end of file diff --git a/docker/Dockerfile-django-1.4.22-wheezy b/docker/Dockerfile-django-1.4.22-wheezy new file mode 100644 index 0000000..f6d5554 --- /dev/null +++ b/docker/Dockerfile-django-1.4.22-wheezy @@ -0,0 +1,18 @@ +FROM python:2.7-wheezy + +RUN apt-get -y update && apt-get install -y mercurial fonts-freefont-ttf survex locales + +# Set the locale +RUN locale-gen en_GB.UTF-8 +ENV LANG en_GB.UTF-8 +ENV LANGUAGE en_GB:en +ENV LC_ALL en_GB.UTF-8 + +WORKDIR /opt/expo/troggle +COPY requirements.txt . + +RUN pip install -r requirements.txt + +EXPOSE 8000 + +#CMD ["python","manage.py","runserver","0.0.0.0:8000"]
\ No newline at end of file diff --git a/docker/Dockerfile-django-1.5.12-jessie b/docker/Dockerfile-django-1.5.12-jessie new file mode 100644 index 0000000..2cf1a51 --- /dev/null +++ b/docker/Dockerfile-django-1.5.12-jessie @@ -0,0 +1,26 @@ +FROM python:2.7-jessie + +COPY backports.list /etc/apt/sources.list.d/ + +RUN apt-get -y update && apt-get install -y mercurial fonts-freefont-ttf locales + +RUN apt-get -y -t jessie-backports install survex + +# Set the locale +RUN locale-gen en_GB.UTF-8 +ENV LANG en_GB.UTF-8 +ENV LANGUAGE en_GB:en +ENV LC_ALL en_GB.UTF-8 + +WORKDIR /opt/expo/troggle +COPY requirements.txt . + +RUN pip install --upgrade pip + +RUN pip install -r requirements.txt + +EXPOSE 8000 + +WORKDIR /expo/troggle + +#CMD ["python","manage.py","runserver","0.0.0.0:8000"]
\ No newline at end of file diff --git a/docker/backports.list b/docker/backports.list new file mode 100644 index 0000000..c29532b --- /dev/null +++ b/docker/backports.list @@ -0,0 +1 @@ +deb http://ftp.debian.org/debian jessie-backports main
\ No newline at end of file diff --git a/docker/docker-cmd b/docker/docker-cmd new file mode 100644 index 0000000..2898a60 --- /dev/null +++ b/docker/docker-cmd @@ -0,0 +1,7 @@ +cd docker + +docker run -it --name expo-mysql -e MYSQL_ROOT_PASSWORD=expo123 mariadb + +docker build -t expo/troggle:django-1.5.12 . + +docker run -it --rm --link expo-mysql:mysql -v /home/sam/expo:/expo expo/troggle:django-1.5.12 /bin/bash
\ No newline at end of file diff --git a/docker/requirements.txt b/docker/requirements.txt new file mode 100644 index 0000000..15ab393 --- /dev/null +++ b/docker/requirements.txt @@ -0,0 +1,7 @@ +Django==1.7.11 +django-registration==2.1.2 +mysql +imagekit +Image +django-tinymce==2.7.0 +smartencoding diff --git a/docker/requirements.txt.dj-1.4.22 b/docker/requirements.txt.dj-1.4.22 new file mode 100644 index 0000000..dac7b30 --- /dev/null +++ b/docker/requirements.txt.dj-1.4.22 @@ -0,0 +1,7 @@ +Django==1.4.22 +django-registration==0.8 +mysql +imagekit +Image +django-tinymce==1.5.3 +smartencoding diff --git a/docker/requirements.txt.dj-1.5.12 b/docker/requirements.txt.dj-1.5.12 new file mode 100644 index 0000000..9f9b5ae --- /dev/null +++ b/docker/requirements.txt.dj-1.5.12 @@ -0,0 +1,7 @@ +Django==1.5.12 +django-registration==1.0 +mysql +imagekit +Image +django-tinymce==1.5.3 +smartencoding diff --git a/docker/requirements.txt.dj-1.6.11 b/docker/requirements.txt.dj-1.6.11 new file mode 100644 index 0000000..b26bc10 --- /dev/null +++ b/docker/requirements.txt.dj-1.6.11 @@ -0,0 +1,7 @@ +Django==1.6.11 +django-registration==1.0 +mysql +imagekit +Image +django-tinymce==1.5.3 +smartencoding |