Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,21 @@ WORKDIR /workspace/bun

ENV BUN_NO_CORE_DUMP=1

# Bootstrap development environment and prepare build directories
RUN sh -c "git pull && scripts/bootstrap.sh"
# Bootstrap development environment and prepare build directories.
#
# bootstrap.sh pulls LLVM from apt.llvm.org, which intermittently rejects
# requests from CI runners; llvm.sh then reports either "GPG key not
# reachable" or the misleading "Distribution 'debian' ... is not supported"
# (its HEAD probe of apt.llvm.org/<codename>/ failed). bootstrap.sh is
# idempotent, so retry it a few times with a pause instead of failing the
# whole multi-hour pipeline on one flaky request.
RUN git pull && \
for attempt in 1 2 3 4; do \
scripts/bootstrap.sh && break; \
if [ "$attempt" -eq 4 ]; then echo "bootstrap.sh failed after $attempt attempts"; exit 1; fi; \
echo "bootstrap.sh failed (attempt $attempt), retrying in 60s..."; \
sleep 60; \
done

# Install the Rust toolchain the checked-out ref actually wants.
#
Expand Down