-
Notifications
You must be signed in to change notification settings - Fork 249
feat(e2b-lite): add scripts for local installation #1837
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
base: main
Are you sure you want to change the base?
Conversation
- Add --verbose flag for detailed output (apt, build logs, etc.) - Add --check-req flag to check requirements without installing - Add clean progress UI with spinners in non-verbose mode - Consolidate output to 1-2 lines per step (8 steps total) - Fix spinner race condition leaving artifacts on screen - Change start-all.sh to run in background by default (--fg for foreground) - Update summary with copy-paste export commands and CLI usage - Add "Coming Soon" section to E2B-LITE-DESIGN.md - Update documentation to reflect new options Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The workflow for pre-building E2B Lite binaries is not yet tested. The --prebuilt flag in the setup script will gracefully fall back to building from source when releases don't exist. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 31a552beeb
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| // For local mode, cluster nodes have empty IPAddress, so use localhost | ||
| orchestratorIP := node.IPAddress | ||
| if orchestratorIP == "" && env.IsLocal() { | ||
| orchestratorIP = "localhost" | ||
| } | ||
|
|
||
| info := e2bcatalog.SandboxInfo{ | ||
| OrchestratorID: node.Metadata().ServiceInstanceID, | ||
| OrchestratorIP: node.IPAddress, | ||
| OrchestratorIP: orchestratorIP, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we maybe solve this when we are adding a node instead?
|
@doco11 thank you for contributing! We will check it as soon as possible. |
|
@doco11, have you tried to use |
Thanks @sitole, so should I keep the change as proposed, or should I split it to separate PR and rework? 👀 just that so I understand both your comments
@jakubno yes, the |
If you would be able to run just one command, would that work for you? |
Yes, that was the idea behind this - to run e2b-infra with single command on a local machine (for now Linux, potentially in the future Mac with some nested virtualization as well). |
E2B Lite
Overview
Idea is to have easily installable version of E2B infrastructure locally, or on bare-metal Linux machine. I'd consider this MVP (recommended kernel 6.8+ (for template building), and
aptbased distro - like Ubuntu 22.04 or 24.04). This tries to re-use everything that e2b infra repository supports.Detailed description in
E2B-LITE-DESIGN.md.Mostly co-authored by Claude Opus 4.5.
Ideas to build on and improve later
curl -fsSL https://e2b.dev/install-lite | bashQuick Start
1. Clone from fork and setup
git clone https://github.com/doco11/e2b-infra.git infra cd infra ./scripts/e2b-lite-setup.sh2. Start Services
3. Test
Credentials
Credentials are re-used from
packages/local-dev/seed-local-database.go:e2b_53ae1fed82754c17ad8077fbc8bcdd90sk_e2b_89215020937a4c989cde33d7bc6477150b8a3ded-4489-4722-afd1-1d82e64ec2d589215020-937a-4c98-9cde-33d7bc647715Setup Script Details
scripts/e2b-lite-setup.shperforms these steps:packages/shared/scripts)scripts/services/start-*.sh)Differences from Cloud E2B
https://api.e2b.devhttp://localhost:80http://localhost:3002E2B CLI
E2B CLI (
npx @e2b/cli) local setup support:npx @e2b/cli template list