remove wait and delete volume
This commit is contained in:
parent
40f4a946ff
commit
4295c1657c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue