aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Copeland <ben.copeland@linaro.org>2018-04-11 14:28:16 +0100
committerFathi Boudra <fathi.boudra@linaro.org>2018-04-11 14:05:02 +0000
commitca1ab08daae7b99f4afbc7d209bd36cba2de31c8 (patch)
tree4ff4e19b8787123bb82530313ba30a400962afa0
parent87b58aa4fb85da630fb5de8192fdb45d004df823 (diff)
downloadlinaro-license-protection-master.tar.gz
Dockerfile: Update READMEHEADmaster
Update README to use the commands to use Django in runserver mode and gunicorn mode. Change-Id: Ibe7e41aa762071eb16c41f3866cf7efc1ce6fd28 Reviewed-on: https://review.linaro.org/24657 Reviewed-by: Kyle Kirkby <kyle.kirkby@linaro.org> Reviewed-by: Fathi Boudra <fathi.boudra@linaro.org>
-rw-r--r--Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 4c275f0..bd5fc43 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,7 +8,12 @@ ENV allowed_hosts="*"
ENV DJANGO_DEBUG="y"
RUN /srv/linaro-license-protection/manage.py migrate # Used to build the sqlite database. Temp fix as codebase needs to be updated to delete old DB calls
+# README
+# RUN Django "runserver"
+# docker run -it --mount src="$(pwd)",target=/srv/linaro-license-protection,type=bind -e DJANGO_DEBUG=Y -p 8080:8080 linaro/ci-amd64-llp-alpine
+#
+# RUN in "production" mode
# Runs docker in "S3" mode (settings.production) in django runserver
# Mount a docker "bind" mount for on-the-fly reloading
# docker build -t llp .
-# docker run -it --mount src="$(pwd)",target=/srv/linaro-license-protection,type=bind -p 8080:8080 llp
+# docker run -it --mount src="$(pwd)",target=/srv/linaro-license-protection,type=bind -p 8080:8080 linaro/ci-amd64-llp-alpine