Skip to content

Commit

Permalink
Merge pull request bigbluebutton#21526 from gustavotrott/fix-retry-se…
Browse files Browse the repository at this point in the history
…tup-docker

fix (build): bypass docker error (retry script not working)
  • Loading branch information
gustavotrott authored Oct 25, 2024
2 parents 037d044 + 4bfc5a3 commit 757b6eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ max_retries=5
retry_wait=300 # wait time in seconds (5 minutes)

while [[ $retry_count -lt $max_retries ]]; do
if sudo docker pull "$DOCKER_IMAGE"; then
if sudo docker pull "$DOCKER_IMAGE" || false; then
echo "Docker image pulled successfully."
break
else
echo "Failed to pull Docker image, attempt $((retry_count+1))/$max_retries."
((retry_count++))
retry_count=$((retry_count+1))
if [[ $retry_count -lt $max_retries ]]; then
echo "Waiting for $retry_wait seconds before retrying..."
sleep $retry_wait
Expand Down

0 comments on commit 757b6eb

Please sign in to comment.