Skip to content
Snippets Groups Projects
Unverified Commit 887c3db9 authored by Sourabh Desai's avatar Sourabh Desai Committed by GitHub
Browse files

Update sleep in setup_localstack to actually check health endpoint (#53)

Actually ping localstack's health endpoint instead of just sleeping for 3 seconds and hoping that localstack is up
parent 691d3f37
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,11 @@ setup_localstack:
docker compose create localstack
docker compose start localstack
echo "Waiting for localstack to start..."
sleep 3
# Ping http://localhost:4566/health until we get a 200 response
until $$(curl --output /dev/null --silent --head --fail http://localhost:4566/health); do \
printf '.'; \
sleep 0.5; \
done
# Check that S3_ASSET_BUCKET_NAME is set
if [ -z ${S3_ASSET_BUCKET_NAME} ]; then \
echo "S3_ASSET_BUCKET_NAME is not set. Please set it and try again."; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment