Skip to content

Commit 9841d00

Browse files
committed
added test toml template
1 parent c8e2a59 commit 9841d00

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/build_template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
- name: Install E2B CLI
5454
run: npm install -g @e2b/cli
5555

56-
- name: Build e2b
57-
run: e2b template build
56+
- name: Build E2B template
57+
run: e2b template build --config e2b.test.toml
5858
working-directory: ./template
5959
env:
6060
E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN }}

template/e2b.test.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This is a config for E2B sandbox template.
2+
# You can use template ID (nlhz8vlwyupq845jsdg9) or template name (code-interpreter-v1) to create a sandbox:
3+
4+
# Python SDK
5+
# from e2b import Sandbox, AsyncSandbox
6+
# sandbox = Sandbox("code-interpreter-v1") # Sync sandbox
7+
# sandbox = await AsyncSandbox.create("code-interpreter-v1") # Async sandbox
8+
9+
# JS SDK
10+
# import { Sandbox } from 'e2b'
11+
# const sandbox = await Sandbox.create('code-interpreter-v1')
12+
13+
team_id = "460355b3-4f64-48f9-9a16-4442817f79f5"
14+
memory_mb = 1_024
15+
start_cmd = "/root/.jupyter/start-up.sh"
16+
dockerfile = "e2b.Dockerfile"
17+
template_name = "code-interpreter-test"
18+
template_id = "nlhz8vlwyupq845jsdg9"

0 commit comments

Comments
 (0)