From 541d23bbd1ef7905eafa07085dee158628a2248d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CA=88=E1=B5=83=E1=B5=A2?= Date: Fri, 2 Apr 2021 18:06:30 -0700 Subject: [PATCH] fix: enable installing docker/requirements-local.txt in docker-compose-non-dev.yml (#13926) --- docker-compose-non-dev.yml | 2 ++ docker/docker-bootstrap.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/docker-compose-non-dev.yml b/docker-compose-non-dev.yml index 94c2ac576dd9b..e7ed56a278b80 100644 --- a/docker-compose-non-dev.yml +++ b/docker-compose-non-dev.yml @@ -44,6 +44,8 @@ services: env_file: docker/.env-non-dev image: *superset-image container_name: superset_app + command: ["/app/docker/docker-bootstrap.sh", "app-gunicorn"] + user: "root" restart: unless-stopped ports: - 8088:8088 diff --git a/docker/docker-bootstrap.sh b/docker/docker-bootstrap.sh index ca7cd203bdabf..b934640efb0c0 100755 --- a/docker/docker-bootstrap.sh +++ b/docker/docker-bootstrap.sh @@ -45,4 +45,7 @@ elif [[ "${1}" == "beat" ]]; then elif [[ "${1}" == "app" ]]; then echo "Starting web app..." flask run -p 8088 --with-threads --reload --debugger --host=0.0.0.0 +elif [[ "${1}" == "app-gunicorn" ]]; then + echo "Starting web app..." + /app/docker/docker-entrypoint.sh fi