Commit Graph

10 Commits

Author SHA1 Message Date
Mish Ushakov 8c72291307 ci: build base template via e2b CLI in addition to DockerHub push (#1401)
Adds a `buildTemplate` CI job that builds and publishes the `base`
template through the e2b CLI, running alongside the existing DockerHub
image push (renamed to `buildAndPushImage`). For security, the CLI is
built from source in this repo rather than installing the published
`@e2b/cli` package; this build-and-global-install logic lives in a
reusable composite action at `.github/actions/build-cli` so it can be
shared across workflows. Removes the static `templates/base/e2b.toml`
since template config is now driven by the CLI invocation, and switches
the Dockerfile's `node` user/group creation to system accounts (`-r`).

## Usage

Any workflow can build and install the CLI globally with a single step:

```yaml
steps:
  - uses: actions/checkout@v4
  - uses: ./.github/actions/build-cli
  - run: e2b template create base --memory-mb 512
```

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 22:04:11 +02:00
Tomas Srnka 1852298a1a Update Node.js Dockerfile to install Yarn differently (#1165)
The Yarn GPG key (6A010C5166006599AA17F08146C2130DFD2497F5) can no
longer be fetched from keyservers, it returns "no user ID". So the
signature verification fails. So let's just download yarn via npm and
simplify this.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Build-only change confined to the Dockerfile; main risk is potential
reproducibility/supply-chain differences from switching Yarn
installation method.
> 
> **Overview**
> Updates `templates/base/e2b.Dockerfile` to install Yarn via `npm
install -g yarn@1.22.19` instead of downloading and GPG-verifying the
Yarn tarball, removing the keyserver dependency and associated
verification steps.
> 
> Also normalizes the Node version env var syntax from `ENV NODE_VERSION
20.9.0` to `ENV NODE_VERSION=20.9.0`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
243ce4b47da851e3faf64e2329016ef7a9681632. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2026-02-25 17:14:48 +01:00
Jakub Novak 4520df8de5 Update e2b.toml 2025-01-23 21:17:08 -08:00
Jakub Novak b758bb6d06 Merge remote-tracking branch 'origin/main' into beta 2024-10-14 22:26:47 -07:00
Tomas Valenta 3d9208cbd3 Fixate memory size of base template 2024-10-07 16:31:11 -07:00
Jakub Novak cc8938c7a4 Add tests before release 2024-09-26 11:56:34 +02:00
Tomas Valenta 3b4c915a48 Generate clients 2024-05-17 02:05:12 -07:00
Tomas Valenta 1f8a776c5d Remove old code interpreter template and references to it 2024-05-01 14:02:33 -07:00
Vasek Mlejnsky f751dd26f6 Rename premade sandboxes 2023-11-09 16:43:10 +01:00
Jakub Novák 388309830b New infra (#212)
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
Co-authored-by: Vasek Mlejnsky <vasek.mlejnsky@gmail.com>
2023-11-06 15:07:09 +01:00