From cf92b5309042b664e39f4c3f318f25bf4bc8bd0e Mon Sep 17 00:00:00 2001 From: Jason Fox Date: Tue, 30 Jan 2024 13:25:13 +0100 Subject: [PATCH] Amend heartbeat check. --- docker-compose/orion-ld.yml | 6 +++--- services | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose/orion-ld.yml b/docker-compose/orion-ld.yml index 0f0de25..c65c54c 100644 --- a/docker-compose/orion-ld.yml +++ b/docker-compose/orion-ld.yml @@ -18,13 +18,13 @@ # version: "3.8" services: - # Orion LD is the context broker - orion: + # Orion-LD is an NGSI-LD context broker + orion-ld: labels: org.fiware: 'tutorial' image: quay.io/fiware/orion-ld:${ORION_LD_VERSION} hostname: orion - container_name: fiware-orion + container_name: fiware-orion-ld depends_on: - mongo-db networks: diff --git a/services b/services index cfcfc6e..3e8c7f8 100755 --- a/services +++ b/services @@ -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 @@ -177,7 +177,7 @@ case "${command}" in ${dockerCmd} -f docker-compose/common.yml -f docker-compose/orion-ld.yml up -d --remove-orphans --renew-anon-volumes waitForMongo addDatabaseIndex - waitForOrion + waitForOrionLD export CONTEXT_BROKER=orion:1026 loadData displayServices fiware