Skip to content

Commit d6e6b3e

Browse files
quaresmajosericardosalveti
authored andcommitted
lmp/build-sdk-container: refactor the timeout
Use the same timeout but exit as quick as possible Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
1 parent 72c1b42 commit d6e6b3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lmp/build-sdk-container.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ LATEST=${LATEST:-latest}
88
status Launching dockerd
99
unset DOCKER_HOST
1010
/usr/local/bin/dockerd-entrypoint.sh --experimental --raw-logs >/archive/dockerd.log 2>&1 &
11-
for i in `seq 12 -1 0` ; do
12-
sleep 5
11+
for i in `seq 60 -1 0` ; do
1312
docker info >/dev/null 2>&1 && break
1413
if [ $i = 0 ] ; then
1514
status Timed out trying to connect to internal docker host
1615
exit 1
1716
fi
17+
sleep 1
1818
done
1919

2020
container="hub.foundries.io/lmp-sdk"

0 commit comments

Comments
 (0)