diff options
author | Benjamin Copeland <ben.copeland@linaro.org> | 2019-10-22 14:25:05 +0100 |
---|---|---|
committer | Benjamin Copeland <ben.copeland@linaro.org> | 2019-10-29 12:59:02 +0000 |
commit | c1d7e20344026be1b9b4e57071e03459e12ec6e6 (patch) | |
tree | f5b05b32d22c7b63275e93dc4d9de16cc83e23bd | |
parent | 453ce66dcac200d6124d4341ea580e044e533507 (diff) |
Docker: Fix broken production command
We need to mount the secrets.py file for the "S3" mode to work.
Change-Id: I78817f961200f8e171d6f8587625b80473f5ca19
Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/33094
Reviewed-by: Kelley Spoon <kelley.spoon@linaro.org>
-rw-r--r-- | Dockerfile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -23,6 +23,5 @@ RUN pip install -r /srv/linaro-license-protection/requirements.txt # Run docker in "S3" mode (settings.production) in django runserver # Requires putting snapshots/releases.linaro.org into /etc/hosts and secrets.py being copied # -# docker run -it --mount src="$(pwd)",target=/srv/linaro-license-protection,type=bind -e allowed_hosts=snapshots.linaro.org -p 8080:8080 linaro/ci-amd64-llp-alpine -# +# docker run -it --mount src="$(pwd)",target=/srv/linaro-license-protection,type=bind -e allowed_hosts=snapshots.linaro.org --mount src="$(pwd)/secrets.py",target=/srv/secrets.py,type=bind -p 8080:8080 linaro/ci-amd64-llp-alpine # |