Commit Graph

300 Commits

Author SHA1 Message Date
github-actions[bot] 32664ea0fe [skip ci] Release new versions 2025-04-01 20:36:48 +00:00
Mish Ushakov c3ecd7c684 Remove backslashes from the docker build command (Windows) (#652)
- Fixing #650, on Windows commands cannot separate arguments by
backslash (\).
2025-04-01 16:32:56 +01:00
github-actions[bot] e7321d5b12 [skip ci] Release new versions 2025-03-28 20:38:03 +00:00
David Batey e8fab568da build-arg's not working for e2b template build command (#644)
At the moment if you pass in build args it breaks since the commands
aren't compatible with the docker build command:

Sample error at the moment when passing the --build-arg to e2b which
proxies the command on incorrectly:

```
(base) ➜  web git:(lb) ✗ npm run build-template template-name version

> new-nextjs-app@0.1.0 build-template
> ts-node scripts/build-template.ts template-name template-version sha

ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.

Usage:  docker buildx build [OPTIONS] PATH | URL | -

Start a build
/bin/sh: line 4: --build-arg=TEMPLATE_VERSION=0.0.1: command not found
Error: Command failed: docker build . \
   -f e2b.Dockerfile \
   --pull --platform linux/amd64 \
   -t docker.e2b.dev/e2b/custom-envs/17e92ok9u0gimh3oy1qg:be0bdf11-4cf2-4ee0-a932-1ecb6ae50298 --build-arg="TEMPLATE_NAME=lead-magnet" \
   --build-arg="TEMPLATE_VERSION=0.0.1"
    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at checkExecSyncError (node:child_process:889:11)
    at Object.execSync (node:child_process:961:15)
    at e.<anonymous> (/opt/homebrew/lib/node_modules/@e2b/cli/src/commands/template/build.ts:363:23) {
  status: 127,
  signal: null,
  output: [ null, null, null ],
  pid: 67925,
  stdout: null,
  stderr: null
}
Failed to build template: Error: Command failed: e2b template build -d "../../sandbox/templates/e2b.Dockerfile" -n template-name sha1 --build-arg TEMPLATE_NAME=template-name --build-arg TEMPLATE_VERSION=0.0.1 -p "../sandbox/templates/"
ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.

Usage:  docker buildx build [OPTIONS] PATH | URL | -
```

---------

Co-authored-by: Mish <10400064+mishushakov@users.noreply.github.com>
2025-03-28 21:34:50 +01:00
github-actions[bot] 184f33c269 [skip ci] Release new versions 2025-03-25 15:23:47 +00:00
Jiri Sveceny 197d966ad0 Update cli to latest sdk version (#636) 2025-03-24 17:25:51 +01:00
github-actions[bot] b402327b6d [skip ci] Release new versions 2025-03-20 09:56:31 +00:00
r33drichards ad73fab8f0 Include build ID output for debugging purposes (#616) 2025-03-19 15:50:11 -07:00
github-actions[bot] ac87d9df35 [skip ci] Release new versions 2025-03-04 00:58:32 +00:00
r33drichards 56ca5e0b8b Show resolvable url in error message (#596)
Before the urls in our error messages pointed to a doc page that doesn't
exist. This change updates the urls with links that resolve to dashboard

also adds note on how to create changesets
2025-03-03 16:55:38 -08:00
github-actions[bot] ee90cd222f [skip ci] Release new versions 2025-03-01 01:48:50 +00:00
r33drichards 0619540d6e Display correct key name for api key (#594) 2025-02-28 17:46:12 -08:00
github-actions[bot] 9f23f542d1 [skip ci] Release new versions 2025-02-22 00:00:40 +00:00
Jakub Dobry f706f825af Bump package json version for the e2b/cli 2025-02-21 15:56:34 -08:00
Tomas Valenta 4bc71297ff Fix CLI build issue (#578)
Load update notifier dynamically

We needed update the package because of vulnerabilities

If we don't load it asynchronously there's following error.
```
packages/cli generate-ref: /home/runner/work/E2B/E2B/packages/cli/dist/index.js:55406
packages/cli generate-ref: var updateNotifier = __toESM(require("update-notifier"));
packages/cli generate-ref:                              ^
packages/cli generate-ref: Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/E2B/E2B/node_modules/.pnpm/update-notifier@6.0.2/node_modules/update-notifier/index.js from /home/runner/work/E2B/E2B/packages/cli/dist/index.js not supported.
packages/cli generate-ref: Instead change the require of /home/runner/work/E2B/E2B/node_modules/.pnpm/update-notifier@6.0.2/node
```
2025-02-21 15:50:21 -08:00
Jakub Dobry ec36840c04 update the update-notifier import to esm, remove it from the excludedPackages 2025-02-21 15:44:44 -08:00
Vasek Mlejnsky 9ef3dcb516 Explicitly mention docker commands when building template 2025-02-21 14:46:16 -08:00
Jakub Novak 429ec0366f Load update notifier dynamically 2025-02-10 18:34:10 -08:00
Jakub Novak 3cffe51c65 Bump update notifier 2025-02-05 10:43:58 -08:00
Jakub Novak cc8447be05 Bump knip 2025-02-05 10:29:41 -08:00
Jakub Novak b91dbc160a Bump tsup 2025-02-05 09:47:52 -08:00
Jakub Novak 67787e5b0b Bump packages 2025-02-05 09:45:55 -08:00
github-actions[bot] d17bdaacf7 [skip ci] Release new versions 2025-01-31 00:01:32 +00:00
Jakub Novak 391f0709e2 Fix socker closed build error 2025-01-30 13:41:52 -08:00
github-actions[bot] 27d2afd038 [skip ci] Release new versions 2024-12-17 10:39:35 +00:00
Mish Ushakov fc8086dcf5 Changed template ls command to sync with latest API changes (#508)
- Added createdBy, createdAt columns
- Hidden 'buildCount', 'lastSpawnedAt', 'spawnCount', 'updatedAt'
columns
- Sync API spec and ts schema to latest

---------

Co-authored-by: Mish Ushakov <mishushakov@users.noreply.github.com>
Co-authored-by: Jakub Novák <jakub@e2b.dev>
2024-12-17 11:35:20 +01:00
github-actions[bot] 1c077831c6 [skip ci] Release new versions 2024-12-09 16:14:32 +00:00
Jakub Novak ed731d2d53 Follow shortcut naming convention 2024-12-09 17:10:45 +01:00
github-actions[bot] 52feefc27b [skip ci] Release new versions 2024-12-09 16:03:25 +00:00
Jakub Novák 407f330de9 Added publish/unpublish commands to the CLI (#484)
Adds publish/unpublish commands to the CLI to allow changing the
visibility of templates. Publishing a template makes it visible to other
teams using E2B, while setting it private (default) only makes it
visible within your own team.

example usage:

``` 
e2b template publish <template>
```

```
e2b template unpublish <template>
```
2024-12-09 00:51:31 -08:00
github-actions[bot] 65257df48e [skip ci] Release new versions 2024-12-04 03:16:05 +00:00
Jakub Novak d4bc3c707f Fix link for docker build 2024-12-03 18:11:19 -08:00
Mish Ushakov b80f72759a maxLen and aliases comma-split 2024-12-03 21:01:57 +01:00
Mish Ushakov 314ce295d8 remove table borders in CLI 2024-11-29 15:36:25 +01:00
Mish Ushakov 11e1c7dca3 guardrail if no sandbox templates are available to publish/unpublish 2024-11-29 15:23:38 +01:00
Mish Ushakov e445208875 added publish and unpublish commands 2024-11-29 14:43:33 +01:00
0div 9350971f34 move gen sdk workflow into publish package workflow 2024-11-27 16:36:11 -08:00
0div a52e7a7a71 fix cli sdk autogen with sdk keyword 2024-11-26 10:48:39 -08:00
0div d599ddac32 rebrand to SDK reference 2024-11-26 10:34:04 -08:00
0div 1b7fdb279b remove "defined in" in js-sdk 2024-11-22 10:05:16 -08:00
Jakub Novák 2949adbad6 Update packages/cli/src/commands/template/buildWithProxy.ts 2024-11-21 10:54:25 -08:00
Jakub Novák a67a47078d Update packages/cli/src/commands/template/buildWithProxy.ts
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
2024-11-21 10:53:50 -08:00
Jakub Novák 2d73e78bef Update packages/cli/src/commands/template/buildWithProxy.ts
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
2024-11-21 10:53:44 -08:00
Jakub Novak 0d154eb07e Add workaround for broken Docker auth 2024-11-20 17:18:42 -08:00
Jakub Novak ba78ba09d5 Improve READMEs and links to get access token / api key 2024-11-04 10:53:40 -08:00
github-actions[bot] 7d776cf1d7 [skip ci] Release new versions 2024-10-24 04:58:46 +00:00
Tomas Valenta 722b75e1b0 Increase sandbox refresh timeout for CLI spawned sandboxes 2024-10-23 21:44:02 -07:00
Tomas Valenta 1e2daa3331 Remove outdated comment 2024-10-20 17:48:17 -07:00
github-actions[bot] da94e153d8 [skip ci] Release new versions 2024-10-19 00:34:31 +00:00
Jakub Novak 69befd6914 Show log times in milliseconds 2024-10-18 17:29:42 -07:00