| Files | Last commit | Last update |
|---|---|---|
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
fix(deploy): install grpc_health_probe in orchestrator image, build.sh --download fixed, yse localbusybox image path in edge.yaml | 2 months ago | |
feat(deploy): make redis/edge/postgres optional and tolerate missing Redis in API - Add ENABLE_REDIS / ENABLE_EDGE / ENABLE_POSTGRES deploy switches (default true) to skip the corresponding images, helm resources and nomad jobs when disabled - Inject an empty REDIS_URL and force SANDBOX_STORAGE_BACKEND=memory when Redis is disabled - Add nil-client guards in the API RedisCache, populate_redis shadow writes and orchestrator storage so the API starts cleanly without Redis (single-instance deployments only) | 2 months ago | |
feat(deploy): make api component optional in k8s mode Add ENABLE_API switch (default true): when false, helm skips rendering the api Deployment/Service so the API can be hosted externally. | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): make api component optional in k8s mode Add ENABLE_API switch (default true): when false, helm skips rendering the api Deployment/Service so the API can be hosted externally. | 2 months ago | |
feat(deploy): make redis/edge/postgres optional and tolerate missing Redis in API - Add ENABLE_REDIS / ENABLE_EDGE / ENABLE_POSTGRES deploy switches (default true) to skip the corresponding images, helm resources and nomad jobs when disabled - Inject an empty REDIS_URL and force SANDBOX_STORAGE_BACKEND=memory when Redis is disabled - Add nil-client guards in the API RedisCache, populate_redis shadow writes and orchestrator storage so the API starts cleanly without Redis (single-instance deployments only) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
fix(deploy): correct ENTRYPOINT/CMD restore in make_images and add --template to create_sandbox - build.sh make_images(): use join template instead of json so ENTRYPOINT/CMD are captured as plain arg strings; skip --change when original image has no entrypoint/cmd, avoiding literal "null" being written into imported images - create_sandbox.py: add --template arg (default ubuntu-22-04-custom-1, aligned with create_template.py default output) instead of hardcoded "openclaw"; drop unused imports - docs (e2b_user_guide.md): fix apt package names in 6.1.2 examples (iputils-ping/bind9-utils/iproute2), apply the same join/array --change fix to manual image-build snippets, document create_sandbox.py --template usage and remove sed-based script patching from quick starts | 2 months ago | |
fix(deploy): correct ENTRYPOINT/CMD restore in make_images and add --template to create_sandbox - build.sh make_images(): use join template instead of json so ENTRYPOINT/CMD are captured as plain arg strings; skip --change when original image has no entrypoint/cmd, avoiding literal "null" being written into imported images - create_sandbox.py: add --template arg (default ubuntu-22-04-custom-1, aligned with create_template.py default output) instead of hardcoded "openclaw"; drop unused imports - docs (e2b_user_guide.md): fix apt package names in 6.1.2 examples (iputils-ping/bind9-utils/iproute2), apply the same join/array --change fix to manual image-build snippets, document create_sandbox.py --template usage and remove sed-based script patching from quick starts | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): make api component optional in k8s mode Add ENABLE_API switch (default true): when false, helm skips rendering the api Deployment/Service so the API can be hosted externally. | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): make redis/edge/postgres optional and tolerate missing Redis in API - Add ENABLE_REDIS / ENABLE_EDGE / ENABLE_POSTGRES deploy switches (default true) to skip the corresponding images, helm resources and nomad jobs when disabled - Inject an empty REDIS_URL and force SANDBOX_STORAGE_BACKEND=memory when Redis is disabled - Add nil-client guards in the API RedisCache, populate_redis shadow writes and orchestrator storage so the API starts cleanly without Redis (single-instance deployments only) | 2 months ago | |
feat(deploy): make redis/edge/postgres optional and tolerate missing Redis in API - Add ENABLE_REDIS / ENABLE_EDGE / ENABLE_POSTGRES deploy switches (default true) to skip the corresponding images, helm resources and nomad jobs when disabled - Inject an empty REDIS_URL and force SANDBOX_STORAGE_BACKEND=memory when Redis is disabled - Add nil-client guards in the API RedisCache, populate_redis shadow writes and orchestrator storage so the API starts cleanly without Redis (single-instance deployments only) | 2 months ago | |
fix(deploy): sync deploy from android branch | 3 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago |
E2B 部署工具
本目录包含 E2B 基础设施部署、Kubernetes 集群初始化、节点配置和沙箱模板工具。
使用说明
完整的安装、部署、升级、验证、故障排查和模板操作说明请参阅:
开始使用前:
- 复制并填写部署环境配置:
.env - 按
USAGE.md中的部署模式选择 Nomad 或 Kubernetes 流程 - 不要将包含密码、Token 或 API Key 的本地配置提交到仓库
主要入口
| 文件 | 用途 |
|---|---|
build.sh |
主机依赖、服务和部署流程入口 |
k8s-deploy.sh |
使用 KubeKey 初始化 Kubernetes 集群 |
deploy-worker.sh |
初始化 Kubernetes Worker 节点 |
deploy.sh |
部署 E2B 服务和 Helm Chart |
build_prod.py |
构建 E2B 沙箱模板 |
create_sandbox.py |
创建沙箱实例 |
create_template.py |
创建模板 |
配置
.env 仅用于本地部署,不应提交。模板和变量说明见用户指南(docs/zh/e2b_user_guide.md)的配置章节。
常用的敏感配置包括:
POSTGRES_CONNECTION_STRINGHARBOR_PASSWORDNOMAD_ACL_TOKENE2B_ACCESS_TOKENE2B_API_KEY
目录结构
deploy/
├── build.sh # 主管理脚本
├── deploy.sh # K8S 部署执行脚本
├── k8s-deploy.sh # KubeKey 集群初始化
├── deploy-worker.sh # K8S Worker 节点部署
├── remote-worker-setup.sh # Worker 远程安装(分发至目标节点执行)
├── common.sh # 公共函数(日志输出等)
├── check-env.sh # 部署前环境检查
├── .env # 环境变量配置
├── e2b-orchestrator.service # orchestrator systemd unit
├── orchestrator-run.sh # orchestrator systemd wrapper
├── install-/run-/start-/init-/uninstall-*.sh # Nomad/Consul 生命周期脚本
├── build_prod.py
├── create_sandbox.py
├── create_template.py
├── nomad/ # Nomad Job 定义
├── dockerfiles/ # 镜像构建 Dockerfile
└── dep/ # 部署资源(镜像包/证书/Ingress 配置)
├── harbor.cnf
├── ingress-nginx.yaml
├── wildcard-ingress.yaml
└── openclaw.yaml