-
Notifications
You must be signed in to change notification settings - Fork 271
feat: download busybox from fc-busybox release instead of embedding #2281
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
tomassrnka
wants to merge
9
commits into
main
Choose a base branch
from
feat/busybox-download-from-release
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2f40620
feat: download busybox from fc-busybox release instead of embedding
tomassrnka 38c5020
fix: fetch busybox in CI before tests and lint
tomassrnka b7cf8bc
fix: verify busybox checksum, handle stale version and partial downloads
tomassrnka 6480812
fix: verify busybox against published SHA256SUMS from fc-busybox release
tomassrnka 53d39c8
fix: move busybox download after COPY, fix sha256sum filename mismatch
tomassrnka 2a51117
fix: don't re-download busybox in Docker, restore version tracking fo…
tomassrnka dbb8e2c
fix: subshell for cd /tmp in checksum verify, add fetch-busybox to te…
tomassrnka 83229ac
fix: add SHA256 verification to fetch-busybox Makefile target
tomassrnka bf39424
fix: remove fetch-busybox from test/lint targets
tomassrnka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-1.23 MB
packages/orchestrator/pkg/template/build/core/systeminit/busybox_1.36.1-2_amd64
Binary file not shown.
Binary file removed
BIN
-1.82 MB
packages/orchestrator/pkg/template/build/core/systeminit/busybox_1.36.1-2_arm64
Binary file not shown.
6 changes: 3 additions & 3 deletions
6
packages/orchestrator/pkg/template/build/core/systeminit/busybox_amd64.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| //go:build amd64 | ||
|
|
||
| // Busybox v1.36.1 static binary for amd64 (musl, minimal ~16 applets). | ||
| // Custom build added in #1002 — origin unknown, no distro tag in binary. | ||
| // Busybox static binary for amd64. | ||
| // Downloaded from https://github.com/e2b-dev/fc-busybox/releases at build time. | ||
|
|
||
| package systeminit | ||
|
|
||
| import _ "embed" | ||
|
|
||
| //go:embed busybox_1.36.1-2_amd64 | ||
| //go:embed busybox | ||
| var BusyboxBinary []byte |
7 changes: 3 additions & 4 deletions
7
packages/orchestrator/pkg/template/build/core/systeminit/busybox_arm64.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,11 @@ | ||
| //go:build arm64 | ||
|
|
||
| // Busybox v1.36.1 static binary for arm64 (glibc, full 271 applets). | ||
| // Source: Debian busybox-static 1:1.36.1-9 (https://packages.debian.org/busybox-static) | ||
| // TODO: rebuild both binaries from the same minimal config for consistency. | ||
| // Busybox static binary for arm64. | ||
| // Downloaded from https://github.com/e2b-dev/fc-busybox/releases at build time. | ||
|
|
||
| package systeminit | ||
|
|
||
| import _ "embed" | ||
|
|
||
| //go:embed busybox_1.36.1-2_arm64 | ||
| //go:embed busybox | ||
| var BusyboxBinary []byte |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.