Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: improve build reliability with fallback apt mirrors#18155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bpmct merged 2 commits intomainfromfix-bun-installation
Jun 2, 2025

Conversation

bpmct
Copy link
Member

@bpmctbpmct commentedJun 1, 2025
edited
Loading

Summary

  • Fixes image build failure by adding fallback to kernel.org mirrors when Ubuntu/Debian repositories fail
  • Ensures unzip is available during Bun installation process
  • Improves apt repository configuration to prevent 403 errors in CI

Root Cause

The build was failing for two reasons:

  1. Network issues with Ubuntu/Debian package repositories returning 403 Forbidden errors
  2. Unzip package not being reliably available in the image layer where Bun installation happens

Fix

  • Added fallback mirrors for apt repositories using kernel.org mirrors
  • Explicitly installed unzip before using it in the Bun installation
  • Added proper cleanup after package installations to keep image size down

Test plan

  • The CI workflow that was previously failing should now succeed
  • Build the dogfood image locally withcd dogfood/coder && docker build -t codercom/oss-dogfood:test .
  • Verify Bun is correctly installed and can be used

Fixes build failure from PR#18154 (original PR that added Bun)

🤖 Generated withClaude Code

This fix explicitly installs unzip in the same command chain where it's used forthe Bun installation process. Even though unzip is installed earlier in theDockerfile, this ensures it's available at the exact point it's needed,avoiding potential issues in CI build environments like Depot.🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>
- Adds fallback to kernel.org mirrors when Ubuntu/Debian repositories fail- Ensures unzip is available for Bun installation process- Improves apt repository configuration to prevent 403 errors🤖 Generated with [Claude Code](https://claude.ai/code)Co-Authored-By: Claude <noreply@anthropic.com>
@bpmctbpmct changed the titlefix: ensure unzip is available for Bun installationfix: improve build reliability with fallback apt mirrorsJun 1, 2025
@bpmctbpmct marked this pull request as ready for reviewJune 1, 2025 23:36
@bpmctbpmct merged commit1e407fb intomainJun 2, 2025
36 checks passed
@bpmctbpmct deleted the fix-bun-installation branchJune 2, 2025 00:01
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 2, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@kylecarbskylecarbskylecarbs approved these changes

Assignees

@bpmctbpmct

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@bpmct@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp