File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -189,12 +189,11 @@ docker run -d --name gateway \
189189 local-gateway:latest
190190
191191echo " Waiting for gateway to be healthy..."
192- if docker ps | grep -q " gateway" ; then
193- echo " Gateway is running"
194- else
195- echo " Gateway failed to start. Check logs with: docker logs gateway"
196- exit 1
197- fi
192+ echo " Waiting for gateway to be available..."
193+
194+ # Ensure gateway is ready before testing
195+ # it might take a while to start(usually 5 minutes, why???)
196+ timeout 300 bash -c ' until curl -f http://localhost:7700/ > /dev/null 2>&1; do echo "Waiting for gateway service..."; sleep 5; done'
198197
199198echo " All services are now running!"
200199echo " You can enjoy your new local network setup for testing."
You can’t perform that action at this time.
0 commit comments