Skip to content

Commit

Permalink
use trap to run docker compose down
Browse files Browse the repository at this point in the history
  • Loading branch information
widmogrod committed Oct 1, 2023
1 parent fa9d00e commit cbaaf0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ mkdir -p $cwd/_volume

echo "Starting localstack"
docker compose -f $cwd/compose.yml up -d
# trap exit and stop docker compose
trap "docker compose -f $cwd/compose.yml down" EXIT

echo "Waiting for localstack to be ready"
until awslocal sqs list-queues; do
Expand Down

0 comments on commit cbaaf0c

Please sign in to comment.