From bd8c1e641c4ea264e35bf8bf0201adac59ef1489 Mon Sep 17 00:00:00 2001 From: Jermanis Date: Wed, 3 Oct 2018 23:40:46 -0400 Subject: [PATCH 01/11] Create requirements.txt --- 3.7/alpine3.8/requirements.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 3.7/alpine3.8/requirements.txt diff --git a/3.7/alpine3.8/requirements.txt b/3.7/alpine3.8/requirements.txt new file mode 100644 index 000000000..10c67b7a4 --- /dev/null +++ b/3.7/alpine3.8/requirements.txt @@ -0,0 +1,3 @@ +Django==2.1.2 +djangorestframework==3.8.2 +djongo==1.2.30 From 260dbcab4571b28200918e301b0d111c53a3cea8 Mon Sep 17 00:00:00 2001 From: Jermanis Date: Wed, 3 Oct 2018 23:56:32 -0400 Subject: [PATCH 02/11] ADD requirements.txt /requirements.txt --- 3.7/alpine3.8/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3.7/alpine3.8/Dockerfile b/3.7/alpine3.8/Dockerfile index 93295309e..f4a521ddc 100644 --- a/3.7/alpine3.8/Dockerfile +++ b/3.7/alpine3.8/Dockerfile @@ -9,6 +9,8 @@ FROM alpine:3.8 # ensure local python is preferred over distribution python ENV PATH /usr/local/bin:$PATH +ADD requirements.txt /requirements.txt + # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 From 4e2aa1e8af0f0cb634bd4a51ba43fb781c538ec4 Mon Sep 17 00:00:00 2001 From: Jermanis Date: Thu, 4 Oct 2018 08:49:51 -0400 Subject: [PATCH 03/11] ENTRYPOINT and CMD --- 3.7/alpine3.8/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/3.7/alpine3.8/Dockerfile b/3.7/alpine3.8/Dockerfile index f4a521ddc..6fa4f4972 100644 --- a/3.7/alpine3.8/Dockerfile +++ b/3.7/alpine3.8/Dockerfile @@ -128,4 +128,6 @@ RUN set -ex; \ \) -exec rm -rf '{}' +; \ rm -f get-pip.py -CMD ["python3"] +ENTRYPOINT ["/django"] +#CMD ["python3"] +CMD ["python manage.py runserver" From 21c1b6d1724621f2dcf8536493bfd566ee1cc9b7 Mon Sep 17 00:00:00 2001 From: Jermanis Date: Thu, 4 Oct 2018 08:55:02 -0400 Subject: [PATCH 04/11] mkdir django --- 3.7/alpine3.8/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3.7/alpine3.8/Dockerfile b/3.7/alpine3.8/Dockerfile index 6fa4f4972..1ed6b132d 100644 --- a/3.7/alpine3.8/Dockerfile +++ b/3.7/alpine3.8/Dockerfile @@ -128,6 +128,10 @@ RUN set -ex; \ \) -exec rm -rf '{}' +; \ rm -f get-pip.py + +RUN cd / +RUN mkdir django + ENTRYPOINT ["/django"] #CMD ["python3"] CMD ["python manage.py runserver" From a3c299541f5a9704afc8af5e644b9fe415497b9a Mon Sep 17 00:00:00 2001 From: Jermanis Date: Thu, 4 Oct 2018 08:58:32 -0400 Subject: [PATCH 05/11] Update Dockerfile --- 3.7/alpine3.8/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/3.7/alpine3.8/Dockerfile b/3.7/alpine3.8/Dockerfile index 1ed6b132d..b8d275382 100644 --- a/3.7/alpine3.8/Dockerfile +++ b/3.7/alpine3.8/Dockerfile @@ -131,7 +131,8 @@ RUN set -ex; \ RUN cd / RUN mkdir django +RUN ECHO pwd ENTRYPOINT ["/django"] #CMD ["python3"] -CMD ["python manage.py runserver" +CMD ["python manage.py runserver"] From de2aab290e76b6d4494b1a1024f78103aa8ce420 Mon Sep 17 00:00:00 2001 From: Jermanis Date: Thu, 4 Oct 2018 09:05:14 -0400 Subject: [PATCH 06/11] Update Dockerfile --- 3.7/alpine3.8/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3.7/alpine3.8/Dockerfile b/3.7/alpine3.8/Dockerfile index b8d275382..791cbd835 100644 --- a/3.7/alpine3.8/Dockerfile +++ b/3.7/alpine3.8/Dockerfile @@ -131,7 +131,7 @@ RUN set -ex; \ RUN cd / RUN mkdir django -RUN ECHO pwd +RUN pwd ENTRYPOINT ["/django"] #CMD ["python3"] From d9e4b486160491eb64a5fdbdbffc084eda2c6426 Mon Sep 17 00:00:00 2001 From: Jermanis Date: Thu, 4 Oct 2018 09:07:05 -0400 Subject: [PATCH 07/11] Update Dockerfile --- 3.7/alpine3.8/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3.7/alpine3.8/Dockerfile b/3.7/alpine3.8/Dockerfile index 791cbd835..2de19695c 100644 --- a/3.7/alpine3.8/Dockerfile +++ b/3.7/alpine3.8/Dockerfile @@ -131,6 +131,8 @@ RUN set -ex; \ RUN cd / RUN mkdir django +RUN cd django +RUN chmod 777 . RUN pwd ENTRYPOINT ["/django"] From 5fade975790a7b167f941b3a0f9bd7e059ffb1e0 Mon Sep 17 00:00:00 2001 From: Jermanis Date: Thu, 4 Oct 2018 09:10:17 -0400 Subject: [PATCH 08/11] Update Dockerfile --- 3.7/alpine3.8/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/3.7/alpine3.8/Dockerfile b/3.7/alpine3.8/Dockerfile index 2de19695c..62fe76b5a 100644 --- a/3.7/alpine3.8/Dockerfile +++ b/3.7/alpine3.8/Dockerfile @@ -129,12 +129,12 @@ RUN set -ex; \ rm -f get-pip.py -RUN cd / -RUN mkdir django -RUN cd django -RUN chmod 777 . +#RUN cd / +#RUN mkdir django +#RUN cd django +#RUN chmod 777 . RUN pwd -ENTRYPOINT ["/django"] +#ENTRYPOINT ["/django"] #CMD ["python3"] CMD ["python manage.py runserver"] From c98dfef150ee9ab1fdf428d1ae91350279064454 Mon Sep 17 00:00:00 2001 From: Jermanis Date: Thu, 4 Oct 2018 09:17:23 -0400 Subject: [PATCH 09/11] Update Dockerfile --- 3.7/alpine3.8/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/3.7/alpine3.8/Dockerfile b/3.7/alpine3.8/Dockerfile index 62fe76b5a..b4195b5ed 100644 --- a/3.7/alpine3.8/Dockerfile +++ b/3.7/alpine3.8/Dockerfile @@ -9,8 +9,6 @@ FROM alpine:3.8 # ensure local python is preferred over distribution python ENV PATH /usr/local/bin:$PATH -ADD requirements.txt /requirements.txt - # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 @@ -128,13 +126,14 @@ RUN set -ex; \ \) -exec rm -rf '{}' +; \ rm -f get-pip.py +ADD requirements.txt /requirements.txt +pip install -r /path/to/requirements.txt #RUN cd / #RUN mkdir django #RUN cd django #RUN chmod 777 . -RUN pwd #ENTRYPOINT ["/django"] #CMD ["python3"] -CMD ["python manage.py runserver"] +CMD ["cd django; python manage.py runserver"] From 2194bfd88e4b11197a62d63dce94438b5c18c289 Mon Sep 17 00:00:00 2001 From: Jermanis Date: Thu, 4 Oct 2018 09:18:23 -0400 Subject: [PATCH 10/11] Update Dockerfile --- 3.7/alpine3.8/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3.7/alpine3.8/Dockerfile b/3.7/alpine3.8/Dockerfile index b4195b5ed..61c949e74 100644 --- a/3.7/alpine3.8/Dockerfile +++ b/3.7/alpine3.8/Dockerfile @@ -127,7 +127,7 @@ RUN set -ex; \ rm -f get-pip.py ADD requirements.txt /requirements.txt -pip install -r /path/to/requirements.txt +RUN pip install -r /path/to/requirements.txt #RUN cd / #RUN mkdir django From 721533644ae6e19e233fdd63f728e9b5d45814e7 Mon Sep 17 00:00:00 2001 From: Jermanis Date: Thu, 4 Oct 2018 09:19:09 -0400 Subject: [PATCH 11/11] Update Dockerfile --- 3.7/alpine3.8/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3.7/alpine3.8/Dockerfile b/3.7/alpine3.8/Dockerfile index 61c949e74..868b57cf4 100644 --- a/3.7/alpine3.8/Dockerfile +++ b/3.7/alpine3.8/Dockerfile @@ -127,7 +127,7 @@ RUN set -ex; \ rm -f get-pip.py ADD requirements.txt /requirements.txt -RUN pip install -r /path/to/requirements.txt +RUN pip install -r requirements.txt #RUN cd / #RUN mkdir django