Skip to content

Commit

Permalink
Add option to run swagger testing UI in Docker (#52)
Browse files Browse the repository at this point in the history
The testing UI is enabled by setting the `TESTING_UI="True"` environment
variable.

Resolves #50
  • Loading branch information
c-w committed Sep 16, 2018
1 parent d1f4c0c commit 12a8a7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker/api/Dockerfile
Expand Up @@ -19,6 +19,8 @@ ADD docker/api/healthcheck.sh /app/healthcheck.sh
ADD docker/api/run-gunicorn.sh /app/run-gunicorn.sh
ADD docker/docker-entrypoint.sh /docker-entrypoint.sh

ENV TESTING_UI="False"

EXPOSE 80
WORKDIR /app
HEALTHCHECK --interval=59m --timeout=5s CMD /app/healthcheck.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/api/run-gunicorn.sh
Expand Up @@ -13,4 +13,4 @@ done
/venv/bin/gunicorn \
--workers="${GUNICORN_WORKERS}" \
--bind="0.0.0.0:80" \
"server:build_app(apis=['${api_spec}','${healthcheck_spec}'], server='tornado')"
"server:build_app(apis=['${api_spec}','${healthcheck_spec}'], server='tornado', ui=${TESTING_UI})"

0 comments on commit 12a8a7e

Please sign in to comment.