File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ services:
74
74
- IOTA_DEFAULT_RESOURCE= # Default is blank. I'm using MQTT so I don't need a resource
75
75
- IOTA_PROVIDER_URL=http://iot-agent:${IOTA_NORTH_PORT}
76
76
healthcheck :
77
- test : curl --fail -s http://iot-agent:${IOTA_NORTH_PORT}/iot/about || exit 1
77
+ interval : 5s
78
+
78
79
79
80
# Tutorial acts as a series of dummy IoT Sensors over HTTP
80
81
tutorial :
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ waitForOrion () {
88
88
89
89
waitForIoTAgent () {
90
90
echo -e " \n⏳ Waiting for \033[1;36mIoT-Agent\033[0m to be available\n"
91
- while [ ` docker run --network fiware_default --rm curlimages/curl -s -o /dev/null -w %{http_code} ' http://iot-agent:4041/version' ` -eq 000 ]
91
+ while ! [ ` docker inspect --format=' {{.State.Health.Status}}' fiware-iot-agent` == " healthy" ]
92
+
92
93
do
93
94
echo -e " IoT Agent HTTP state: " ` curl -s -o /dev/null -w %{http_code} ' http://localhost:4041/version' ` " (waiting for 200)"
94
95
sleep 1
You can’t perform that action at this time.
0 commit comments