aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Copeland <ben.copeland@linaro.org>2019-10-22 14:25:05 +0100
committerBenjamin Copeland <ben.copeland@linaro.org>2019-10-29 12:59:02 +0000
commitc1d7e20344026be1b9b4e57071e03459e12ec6e6 (patch)
treef5b05b32d22c7b63275e93dc4d9de16cc83e23bd
parent453ce66dcac200d6124d4341ea580e044e533507 (diff)
downloadlinaro-license-protection-c1d7e20344026be1b9b4e57071e03459e12ec6e6.tar.gz
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--Dockerfile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 5bf5ef6..0d6d2cd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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
#