- Notifications
You must be signed in to change notification settings - Fork1.1k
Commit1e407fb
fix: improve build reliability with fallback apt mirrors (#18155)
## Summary- Fixes image build failure by adding fallback to kernel.org mirrorswhen Ubuntu/Debian repositories fail- Ensures unzip is available during Bun installation process- Improves apt repository configuration to prevent 403 errors in CI## Root CauseThe build was failing for two reasons:1. Network issues with Ubuntu/Debian package repositories returning 403Forbidden errors2. Unzip package not being reliably available in the image layer whereBun 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 sizedown## Test plan- The CI workflow that was previously failing should now succeed- Build the dogfood image locally with `cd dogfood/coder && docker build-t codercom/oss-dogfood:test .`- Verify Bun is correctly installed and can be usedFixes build failure from PR#18154 (original PR that added Bun)🤖 Generated with [Claude Code](https://claude.ai/code)---------Co-authored-by: Claude <noreply@anthropic.com>1 parentbf07a14 commit1e407fb
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
122 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
| |||
334 | 339 | | |
335 | 340 | | |
336 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
337 | 345 | | |
338 | 346 | | |
339 | 347 | | |
340 | 348 | | |
341 | | - | |
| 349 | + | |
| 350 | + | |
342 | 351 | | |
343 | 352 | | |
344 | 353 | | |
| |||
0 commit comments
Comments
(0)