diff options
author | Ben Copeland <ben.copeland@linaro.org> | 2017-09-28 23:54:14 +0100 |
---|---|---|
committer | Benjamin Copeland <ben.copeland@linaro.org> | 2018-01-17 13:04:10 +0000 |
commit | 17a715ca79395d57e9cc77e095ec8304a1319bfe (patch) | |
tree | 6ce044f3fd900f9a58cc4592fe7513b61c73c127 | |
parent | 88f3a54978cf990a6dd81fceee313b910adb8fac (diff) |
Dockerfile: Include a dockerfile for debugging
Now we are moving over to use docker in production, we can build a
production server locally. This Dockerfile allows us to create a dev
env.
Change-Id: I476b51da75ff7b4a25c1fe8940cf5070a8c5e89f
Reviewed-on: https://review.linaro.org/21610
Reviewed-by: Kelley Spoon <kelley.spoon@linaro.org>
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Dockerfile | 13 |
2 files changed, 15 insertions, 1 deletions
@@ -6,4 +6,5 @@ static *.swp .idea download_report*.csv -.venv
\ No newline at end of file +.venv +secrets.py diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3be8ea1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM linaro/ci-amd64-llp-alpine + +ADD . /srv/linaro-license-protection + +ADD secrets.py /srv/secrets.py +RUN echo "*" >> /srv/allowed_hosts.txt +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 + +# Runs docker in "S3" mode (settings.production) in django runserver +# Mount a docker "bind" mount for on-the-fly reloading +# docker run -it --mount src="$(pwd)",target=/srv/linaro-license-protection,type=bind -p 8000:8000 llp |