[damned-lies/oscp] No luck, handle it via the entrypoint directly



commit 80c12c64e09feeb20a23e0300732fbfe10fc6a7e
Author: Andrea Veri <averi redhat com>
Date:   Wed Sep 11 18:30:17 2019 +0200

    No luck, handle it via the entrypoint directly

 Dockerfile    | 2 --
 entrypoint.sh | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index c0e46f67..5a9bf403 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -29,5 +29,3 @@ RUN virtualenv /l10n/venv && \
 
 ADD entrypoint.sh /entrypoint.sh
 ENTRYPOINT ["/entrypoint.sh"]
-#CMD ["httpd", "-DFOREGROUND"]
-CMD ["/l10n/venv/bin/python", "/l10n/damnedlies/manage.py", "runserver", "0.0.0.0:8000"]
diff --git a/entrypoint.sh b/entrypoint.sh
index 1bfa2cbc..550ada91 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -9,4 +9,4 @@ sed -i "s/\$SENTRY_DSN/${SENTRY_DSN}/" /l10n/damnedlies/damnedlies/local_setting
 sed -i "s/\$GITLAB_TOKEN/${GITLAB_TOKEN}/" /l10n/damnedlies/damnedlies/local_settings.py
 
 /l10n/venv/bin/python manage.py collectstatic
-scl enable rh-python36 httpd24 "\"$@\""
+scl enable rh-python36 httpd24 "/l10n/venv/bin/python /l10n/damnedlies/manage.py runserver 0.0.0.0:8000" 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]