Skip to content

Commit

Permalink
Merge pull request #1565 from AkihiroSuda/daemonless-show-log
Browse files Browse the repository at this point in the history
buildctl-daemonless.sh: show log on "could not connect to ..."
  • Loading branch information
AkihiroSuda authored Jul 25, 2020
2 parents 866c12f + d376a39 commit e226089
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/buildctl-daemonless/buildctl-daemonless.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ waitForBuildkitd() {
until $BUILDCTL --addr=$addr debug workers >/dev/null 2>&1; do
if [ $try -gt $max ]; then
echo >&2 "could not connect to $addr after $max trials"
echo >&2 "========== log =========="
cat >&2 $tmp/log
exit 1
fi
sleep $(awk "BEGIN{print (100 + $try * 20) * 0.001}")
Expand Down

0 comments on commit e226089

Please sign in to comment.