Skip to content

Commit

Permalink
Amend heartbeat check.
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Jan 30, 2024
1 parent 5ad2549 commit 0976150
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ getHeartbeat(){
eval "response=$(docker run --network fiware_default --rm quay.io/curl/curl -s -o /dev/null -w "%{http_code}" "$1")"
}

waitForOrion () {
waitForOrionLD () {
echo -e "\n⏳ Waiting for \033[1;34mOrion-LD\033[0m to be available\n"

while ! [ `docker inspect --format='{{.State.Health.Status}}' fiware-orion` == "healthy" ]
while ! [ `docker inspect --format='{{.State.Health.Status}}' fiware-orion-ld` == "healthy" ]
do
echo -e "\nContext Broker HTTP state: ${response} (waiting for 200)"
pause 6
Expand Down Expand Up @@ -160,7 +160,7 @@ case "${command}" in
addDatabaseIndex
displayServices fiware
waitForUserContext
waitForOrion
waitForOrionLD
;;
"scorpio")
export $(cat .env | grep "#" -v)
Expand Down

0 comments on commit 0976150

Please sign in to comment.