Skip to content

Commit

Permalink
[[ to [
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaingaudan committed Apr 29, 2024
1 parent bff8a58 commit a7a2537
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/start_stack.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
set -o errexit
# Set env variable
source ./test/env.sh
. ./test/env.sh
# Copy heavy data for test from gcp bucket
if [ -d "${ROOT_DIRECTORY}/DIMAP" ]; then
echo "${ROOT_DIRECTORY}/DIMAP exists, files are not downloaded."
Expand All @@ -17,7 +17,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 [ "$code" != *$code_OK* ];do
code="$(curl -IL --silent http://localhost:9000/minio/health/live | grep "^HTTP\/")"
eval "sleep 5"
done
Expand All @@ -27,15 +27,16 @@ 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 [ "$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 [ "$code" != *$code_OK* ];do
code="$(curl -IL --silent http://localhost:9999 | grep "^HTTP\/")"
eval "sleep 5"
done

0 comments on commit a7a2537

Please sign in to comment.