remove wait and delete volume

This commit is contained in:
burnettk 2022-07-11 22:55:38 -04:00
parent 40f4a946ff
commit 4295c1657c
1 changed files with 11 additions and 1 deletions

View File

@ -19,4 +19,14 @@ fi
docker compose build
docker compose stop
docker compose up --wait $additional_args
# i observed a case locally where the db had a stale sqlalchemy revision which
# caused the backend to exit and when docker compose up was running with
# --wait, it just said waiting forever (like we have seen in CI). so removing
# the volume would work around that case, if the volumes are not cleaned up in
# CI. also removing the wait prevents it from hanging forever in the case where
# the backend crashes, so then we'll just wait for the timeout to happen in the
# bin/wait_for_server_to_be_up script.
docker volume rm spiffworkflow-backend_spiffworkflow_backend || echo 'docker volume not found'
docker compose up $additional_args