isol8 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/dist/cli.js +692 -540
- package/dist/index.js +196 -64
- package/dist/src/client/remote.d.ts +2 -2
- package/dist/src/client/remote.d.ts.map +1 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/engine/docker.d.ts +20 -5
- package/dist/src/engine/docker.d.ts.map +1 -1
- package/dist/src/engine/image-builder.d.ts +14 -0
- package/dist/src/engine/image-builder.d.ts.map +1 -1
- package/dist/src/engine/pool.d.ts.map +1 -1
- package/dist/src/server/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +48 -1
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +3 -1
- package/schema/isol8.config.schema.json +31 -0
package/README.md
CHANGED
|
@@ -145,7 +145,7 @@ isol8 run --github user/repo/main/script.py --hash <sha256> --runtime python
|
|
|
145
145
|
|
|
146
146
|
### `isol8 cleanup`
|
|
147
147
|
|
|
148
|
-
Remove orphaned isol8 containers.
|
|
148
|
+
Remove orphaned isol8 containers, and optionally isol8 images.
|
|
149
149
|
|
|
150
150
|
```bash
|
|
151
151
|
# Interactive (prompts for confirmation)
|
|
@@ -153,6 +153,9 @@ isol8 cleanup
|
|
|
153
153
|
|
|
154
154
|
# Force (skip confirmation)
|
|
155
155
|
isol8 cleanup --force
|
|
156
|
+
|
|
157
|
+
# Also remove isol8 images
|
|
158
|
+
isol8 cleanup --images --force
|
|
156
159
|
```
|
|
157
160
|
|
|
158
161
|
### `isol8 serve`
|
|
@@ -202,6 +205,10 @@ console.log(result.exitCode); // 0
|
|
|
202
205
|
console.log(result.durationMs); // ~120-140ms (warm pool)
|
|
203
206
|
|
|
204
207
|
await isol8.stop();
|
|
208
|
+
|
|
209
|
+
// Optional manual cleanup helpers
|
|
210
|
+
await DockerIsol8.cleanup(); // remove isol8 containers
|
|
211
|
+
await DockerIsol8.cleanupImages(); // remove isol8 images
|
|
205
212
|
```
|
|
206
213
|
|
|
207
214
|
### Pool Strategy
|
|
@@ -231,6 +238,8 @@ const secureEngine = new DockerIsol8({
|
|
|
231
238
|
**Fast mode details:**
|
|
232
239
|
- Maintains two pools: `clean` (ready to use) and `dirty` (need cleanup)
|
|
233
240
|
- `acquire()` returns instantly from clean pool if available
|
|
241
|
+
- Every clean-pool acquire triggers async replenishment to restore warm capacity
|
|
242
|
+
- Simple no-artifact executions use inline runtime commands, skipping code-file injection overhead
|
|
234
243
|
- If clean pool is empty but dirty has containers, tries immediate cleanup
|
|
235
244
|
- Background cleanup runs every 5 seconds to process dirty containers
|
|
236
245
|
- Best performance with minimal memory overhead
|