Commit 33c043e
feat: download busybox from fc-busybox release instead of embedding (#2281)
* feat: download busybox from fc-busybox release instead of embedding
Download busybox binary from e2b-dev/fc-busybox GitHub release at
Docker build time (via ADD) and at local build time (via curl in
Makefile). Removes ~3.2MB of committed binaries from git.
- Dockerfile: ADD from GitHub release, uses TARGETARCH
- Makefile: fetch-busybox target for local dev builds
- Both amd64 and arm64 binaries from same reproducible CI build
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: fetch busybox in CI before tests and lint
CI runs go test/lint directly (not via Docker), so the busybox
binary for go:embed must be downloaded first. Add fetch-busybox
to orchestrator test setup and lint workflow.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: verify busybox checksum, handle stale version and partial downloads
- Dockerfile: download with curl + sha256sum verification per arch
- Makefile: track version in .version file to detect stale binaries,
write to .tmp first to avoid partial downloads
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: verify busybox against published SHA256SUMS from fc-busybox release
- Dockerfile: download SHA256SUMS from release, verify binary against it
(no more hardcoded checksums that need manual updating)
- Makefile: track version+arch in .version file to detect stale binaries,
write to .tmp first to avoid partial downloads
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: move busybox download after COPY, fix sha256sum filename mismatch
- Move RUN after COPY ./orchestrator/pkg so the target directory exists
- Download as /tmp/{binary_name} (not /tmp/busybox) so sha256sum -c
can find the file by the name in SHA256SUMS
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: don't re-download busybox in Docker, restore version tracking for local dev
- Dockerfile: build go directly instead of make build-local, so
fetch-busybox doesn't overwrite the SHA256-verified binary
- Makefile: restore stamp file for version tracking in local dev,
only used by build-local/build-debug (not Docker)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: subshell for cd /tmp in checksum verify, add fetch-busybox to test/lint
- Dockerfile: wrap cd /tmp in subshell so mv/chmod use correct WORKDIR,
use absolute paths for destination
- Makefile: add fetch-busybox dependency to test and lint targets
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: add SHA256 verification to fetch-busybox Makefile target
Download SHA256SUMS from the fc-busybox release and verify the binary
checksum, matching the Dockerfile verification pattern. All build paths
now verify integrity.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: remove fetch-busybox from test/lint targets
test and lint are called inside test.Dockerfile which doesn't have the
pkg/ directory. CI workflows have their own fetch-busybox setup steps.
Local dev gets busybox via build-local/build-debug before running
test/lint.
fetch-busybox remains on: build-local, build-debug (the entry points
for local builds that produce the full binary).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: single-source BUSYBOX_VERSION in Makefile, pass to Docker via build-arg
Makefile is the single source of truth for BUSYBOX_VERSION. Docker
build receives it via --build-arg. Removes the duplicate default
from the Dockerfile.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: extract busybox download+verify into shared script
Single fetch-busybox.sh script used by both Dockerfile and Makefile.
Eliminates duplicated download/SHA256 verification logic.
Dockerfile back to using make build-local (fetch-busybox skips since
the script already placed the binary).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use grep -wF for exact match in SHA256SUMS verification
Regex grep with dots in version string matches unintended lines.
Fixed-string whole-word match prevents false matches against .sig
or other suffixed entries.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: add fetch-busybox to test, lint, and build-template targets
All Makefile targets that compile Go code now depend on fetch-busybox
so a fresh checkout works without manual setup. The script skips
download if the binary already exists with matching version/arch.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ed97d54 commit 33c043e
File tree
10 files changed
+83
-13
lines changed- .github/workflows
- packages/orchestrator
- pkg/template/build/core/systeminit
- scripts
10 files changed
+83
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
| |||
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| 34 | + | |
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
32 | 44 | | |
33 | 45 | | |
34 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | | - | |
| 41 | + | |
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
38 | | - | |
| 48 | + | |
39 | 49 | | |
40 | 50 | | |
41 | 51 | | |
| |||
102 | 112 | | |
103 | 113 | | |
104 | 114 | | |
105 | | - | |
| 115 | + | |
106 | 116 | | |
107 | 117 | | |
108 | 118 | | |
| |||
118 | 128 | | |
119 | 129 | | |
120 | 130 | | |
121 | | - | |
| 131 | + | |
122 | 132 | | |
123 | 133 | | |
124 | 134 | | |
| |||
137 | 147 | | |
138 | 148 | | |
139 | 149 | | |
140 | | - | |
| 150 | + | |
141 | 151 | | |
Binary file not shown.
Binary file not shown.
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | | - | |
| 10 | + | |
12 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments