From c04c879b57d75f92bb3f4f6abe0c66ebed4f3640 Mon Sep 17 00:00:00 2001 From: Jonathan Serafini Date: Mon, 29 Apr 2024 10:39:46 -0400 Subject: [PATCH] add dind wait --- scanner.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scanner.yml b/scanner.yml index d411df0..5598042 100644 --- a/scanner.yml +++ b/scanner.yml @@ -28,7 +28,15 @@ boost_init_config boost_init_cli - - docker info > /dev/null || echo "docker in docker failed to start" + - | + for i in $(seq 1 30); do + if ! docker info &> /dev/null; then + echo "Docker not responding yet. Sleeping for 1s..." && sleep 1s + else + echo "Docker ready. Continuing build..." + break + fi + done .boost_dind: services: