You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deploy/modal.mdx
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,22 @@ await sb.terminate();
73
73
74
74
Modal caches image layers, so the `dockerfileCommands` that install `curl` and `sandbox-agent` only run on the first build. Subsequent sandbox creates reuse the cached image.
75
75
76
+
## Running the test
77
+
78
+
The example includes a health-check test. First, build the SDK:
79
+
80
+
```bash
81
+
pnpm --filter sandbox-agent build
82
+
```
83
+
84
+
Then run the test with your Modal credentials:
85
+
86
+
```bash
87
+
MODAL_TOKEN_ID=<your-token-id> MODAL_TOKEN_SECRET=<your-token-secret> npx vitest run
88
+
```
89
+
90
+
Run from `examples/modal/`. The test will skip if credentials are not set.
91
+
76
92
## Notes
77
93
78
94
- Modal sandboxes use [gVisor](https://gvisor.dev/) for strong isolation.
0 commit comments