Skip to content

Commit

Permalink
Merge branch 'create-integration-test-template-e2b-1361' into create-…
Browse files Browse the repository at this point in the history
…stress-test-e2b-1360
  • Loading branch information
0div committed Dec 26, 2024
2 parents d90fc02 + 7dc89ac commit 39dfd38
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/js-sdk/tests/integration/template/e2b.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM e2bdev/code-interpreter:latest

# Clone the Next.js app repository
RUN git clone https://github.com/ezesundayeze/basic-nextjs-app

# Install dependencies
RUN cd basic-nextjs-app && npm install

18 changes: 18 additions & 0 deletions packages/js-sdk/tests/integration/template/e2b.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This is a config for E2B sandbox template.
# You can use template ID (2e2z80zhv34yumbrybvn) or template name (integration-test-v1) to create a sandbox:

# Python SDK
# from e2b import Sandbox, AsyncSandbox
# sandbox = Sandbox("integration-test-v1") # Sync sandbox
# sandbox = await AsyncSandbox.create("integration-test-v1") # Async sandbox

# JS SDK
# import { Sandbox } from 'e2b'
# const sandbox = await Sandbox.create('integration-test-v1')

team_id = "b9c07023-d095-4bdc-9634-e25d5530ba47"
memory_mb = 1_024
start_cmd = "npm run dev"
dockerfile = "e2b.Dockerfile"
template_name = "integration-test-v1"
template_id = "2e2z80zhv34yumbrybvn"

0 comments on commit 39dfd38

Please sign in to comment.