Skip to content

Commit

Permalink
docker: check that entrypoints and gunicorn work
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgm committed Jun 20, 2020
1 parent 3ea18e8 commit 47f16b8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,24 @@ jobs:
- run:
name: Test nose
command: docker run -it app:build test_nose
- run:
name: Test that the `python` entrypoint responds
command: |
set -e
docker run -it app:build python --version
- run:
name: Test that the `server` entrypoint starts ok
command: |
set -e
container_name=$(docker run -it -e MOZSVC_SQLURI="sqlite:////tmp/tokenserver.db" --rm -d app:build server)
# Grab the logs now in case this crashes and is removed.
(docker logs --follow $container_name &)
sleep 10
# If the container above stops before running 10 seconds, the
# `--rm` will remove it and this `docker inspect` will exit
# non-zero, failing this step.
docker inspect -f '{{.State.Running}}' $container_name
docker kill $container_name
- store_test_results:
path: test_results
- run:
Expand Down

0 comments on commit 47f16b8

Please sign in to comment.