Skip to content

Commit cf92b53

Browse files
committed
Amend heartbeat check.
1 parent f920c6d commit cf92b53

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

docker-compose/orion-ld.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
#
1919
version: "3.8"
2020
services:
21-
# Orion LD is the context broker
22-
orion:
21+
# Orion-LD is an NGSI-LD context broker
22+
orion-ld:
2323
labels:
2424
org.fiware: 'tutorial'
2525
image: quay.io/fiware/orion-ld:${ORION_LD_VERSION}
2626
hostname: orion
27-
container_name: fiware-orion
27+
container_name: fiware-orion-ld
2828
depends_on:
2929
- mongo-db
3030
networks:

services

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ getHeartbeat(){
4141
eval "response=$(docker run --network fiware_default --rm quay.io/curl/curl -s -o /dev/null -w "%{http_code}" "$1")"
4242
}
4343

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

47-
while ! [ `docker inspect --format='{{.State.Health.Status}}' fiware-orion` == "healthy" ]
47+
while ! [ `docker inspect --format='{{.State.Health.Status}}' fiware-orion-ld` == "healthy" ]
4848
do
4949
echo -e "\nContext Broker HTTP state: ${response} (waiting for 200)"
5050
pause 6
@@ -177,7 +177,7 @@ case "${command}" in
177177
${dockerCmd} -f docker-compose/common.yml -f docker-compose/orion-ld.yml up -d --remove-orphans --renew-anon-volumes
178178
waitForMongo
179179
addDatabaseIndex
180-
waitForOrion
180+
waitForOrionLD
181181
export CONTEXT_BROKER=orion:1026
182182
loadData
183183
displayServices fiware

0 commit comments

Comments
 (0)