Commit Graph

1216 Commits

Author SHA1 Message Date
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
Mish 7638231277 fix "sandbox id" naming consistency (uppercase) 2025-03-28 11:02:16 +01:00
github-actions[bot] 5ca2b9cc42 [skip ci] Release new versions 2025-03-26 18:15:28 +00:00
0div bd4398f30d address PR comments 2025-03-25 15:53:42 -07:00
0div 6dd18e2832 allow writing files that are of type io.BufferedReader and update tests 2025-03-25 14:39:58 -07:00
github-actions[bot] 184f33c269 [skip ci] Release new versions 2025-03-25 15:23:47 +00:00
Vasek Mlejnsky 7d4f7b0e0b getInfo: added tests, updated documentation with example return (#638)
Unborked version of #637
2025-03-25 09:40:11 +01:00
Jiri Sveceny 197d966ad0 Update cli to latest sdk version (#636) 2025-03-24 17:25:51 +01:00
Mish c0efd6f322 added additional test coverage for getInfo, updated doc 2025-03-24 16:59:37 +01:00
github-actions[bot] 8fdb429998 [skip ci] Release new versions 2025-03-24 13:33:20 +00:00
Mish Ushakov d4f4352aa3 Add getInfo/get_info methods to the SDKs (#625)
- Rebased version of #517
2025-03-24 14:26:18 +01:00
github-actions[bot] 5d8b719b21 [skip ci] Release new versions 2025-03-24 11:45:11 +00:00
Jiri Sveceny 85c4505b9f Change default domain in sdks from e2b.dev to e2b.app (#635) 2025-03-24 12:40:22 +01:00
github-actions[bot] b6b0ac6f97 [skip ci] Release new versions 2025-03-21 15:02:41 +00:00
Jakub Novák 5c4d07536f Add filtering option for listing sandboxes (#532)
# Description

Allow users to filter out sandbox based on metadata

---------

Co-authored-by: Mish Ushakov <10400064+mishushakov@users.noreply.github.com>
2025-03-21 15:57:48 +01:00
github-actions[bot] b402327b6d [skip ci] Release new versions 2025-03-20 09:56:31 +00:00
Jakub Novák 2904f3e80b Fix failing write test (#621)
# Description

Sandbox is closed before the test ends, which resulted in error. The
clean up is meant for local testing only
2025-03-20 02:51:42 -07:00
0div d26ff435d6 Fix release test for multi-file write support (#615)
The previous [release
workflow]([Release](https://github.com/e2b-dev/E2B/commit/b3fe5e6777357a7d814c7dbe4525a18f3f83288f/checks))
errored after merging this [old
PR](https://github.com/e2b-dev/E2B/pull/451), here are the fixes:
- [x] use `WatchOpts` instead of `FilesystemOpts` to avoid TS errors in
js-sdk filesystem method
- [x] fix python-sdk watch test.
2025-03-19 16:07:37 -07:00
r33drichards ad73fab8f0 Include build ID output for debugging purposes (#616) 2025-03-19 15:50:11 -07:00
0div a8e88de846 fix merge conflict with main 2025-03-18 09:09:13 -07:00
Jakub Novák e045df9d50 Fix comments in tests (#613) 2025-03-18 08:47:16 -07:00
Jakub Novák 71415ed9e5 Fix flaky tests - Increase the timeout for pinging the server (#612)
Also changed the ports, so if you run locally there's no port collision
2025-03-18 08:26:25 -07:00
0div e905d9be34 Test sandbox closed port error (#597)
this PR adds tests in js and python SDKs for closed port errors
enhancement #265
2025-03-14 02:19:27 -07:00
0div dad913efcf pin typdoc and typedoc-markdown to non-breaking versions in js-sdk 2025-03-13 11:21:15 -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 26b2fe5de1 Fix browser test 2025-02-10 18:13:01 -08:00
Jakub Novak eed7384da2 Drop support for Python 3.8 2025-02-05 20:31:50 -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 3bbc0b9547 Update packages 2025-02-05 10:22:20 -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
Jakub Novak c7b9fc20b4 Update vitest 2025-02-04 22:21:17 -08:00
github-actions[bot] cd45aa4aae [skip ci] Release new versions 2025-02-05 05:27:07 +00:00
Jakub Novak cff68d213b Fix check order 2025-02-04 21:22:40 -08:00
Jakub Novak c68fa4495b If in browser don't use process 2025-02-04 16:12:29 -08:00
Jakub Novák 7c38aa1096 Bump the pip group across 2 directories with 6 updates (#561)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/e2b-dev/E2B/network/alerts).

</details>
2025-02-04 13:09:06 -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