Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaingaudan committed Apr 29, 2024
1 parent a7a2537 commit 9bbd7e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/start_stack.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env sh
set -o errexit
# Set env variable
. ./test/env.sh
# Copy heavy data for test from gcp bucket
Expand All @@ -17,7 +16,7 @@ docker compose -f docker-compose.yaml up -d minio
#Waiting for minio service up and running
code=""
code_OK="OK"
while [ "$code" != *$code_OK* ];do
while [ -n "$code" ] && [ "$code" != *$code_OK* ];do
code="$(curl -IL --silent http://localhost:9000/minio/health/live | grep "^HTTP\/")"
eval "sleep 5"
done
Expand All @@ -27,15 +26,15 @@ docker compose -f docker-compose.yaml up --build -d createbuckets elasticsearch
# Waiting for elastic ready
code=""
code_OK="OK"
while [ "$code" != *$code_OK* ];do
while [ -n "$code" ] && [ "$code" != *$code_OK* ];do
code="$(curl -IL --silent http://localhost:9200 | grep "^HTTP\/")"
eval "sleep 5"
done
docker compose -f docker-compose-tests.yaml up --build -d
# Waiting for arlas ready
code=""
code_OK="OK"
while [ "$code" != *$code_OK* ];do
while [ -n "$code" ] && [ "$code" != *$code_OK* ];do
code="$(curl -IL --silent http://localhost:9999 | grep "^HTTP\/")"
eval "sleep 5"
done
Expand Down

0 comments on commit 9bbd7e1

Please sign in to comment.