isol8 0.10.3 → 0.11.0
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 +16 -0
- package/dist/cli.js +465 -48
- package/dist/index.js +256 -17
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/engine/code-fetcher.d.ts +21 -0
- package/dist/src/engine/code-fetcher.d.ts.map +1 -0
- package/dist/src/engine/docker.d.ts +2 -0
- package/dist/src/engine/docker.d.ts.map +1 -1
- package/dist/src/engine/image-builder.d.ts +12 -2
- package/dist/src/engine/image-builder.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/server/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +44 -2
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/schema/isol8.config.schema.json +59 -0
package/README.md
CHANGED
|
@@ -78,6 +78,7 @@ isol8 setup --node lodash,axios
|
|
|
78
78
|
| `--bun <pkgs>` | Comma-separated bun packages |
|
|
79
79
|
| `--deno <pkgs>` | Comma-separated Deno module URLs to cache |
|
|
80
80
|
| `--bash <pkgs>` | Comma-separated Alpine apk packages |
|
|
81
|
+
| `--force` | Force rebuild even if images are up to date |
|
|
81
82
|
|
|
82
83
|
### `isol8 run`
|
|
83
84
|
|
|
@@ -124,9 +125,24 @@ isol8 run script.py --host http://server:3000 --key my-api-key
|
|
|
124
125
|
| `--tmp-size <size>` | Tmp tmpfs size (e.g. `256m`, `512m`) | `256m` |
|
|
125
126
|
| `--stdin <data>` | Data to pipe to stdin | — |
|
|
126
127
|
| `--install <pkg>` | Install package for runtime (repeatable) | — |
|
|
128
|
+
| `--url <url>` | Fetch code from URL (requires `remoteCode.enabled=true`) | — |
|
|
129
|
+
| `--github <owner/repo/ref/path>` | GitHub shorthand for raw source | — |
|
|
130
|
+
| `--gist <gistId/file.ext>` | Gist shorthand for raw source | — |
|
|
131
|
+
| `--hash <sha256>` | Verify SHA-256 hash for fetched code | — |
|
|
132
|
+
| `--allow-insecure-code-url` | Allow insecure `http://` code URLs for this request | `false` |
|
|
127
133
|
| `--host <url>` | Remote server URL | — |
|
|
128
134
|
| `--key <key>` | API key for remote server | `$ISOL8_API_KEY` |
|
|
129
135
|
|
|
136
|
+
### Remote Code URLs
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
# URL source
|
|
140
|
+
isol8 run --url https://raw.githubusercontent.com/user/repo/main/script.py --runtime python
|
|
141
|
+
|
|
142
|
+
# GitHub shorthand with hash verification
|
|
143
|
+
isol8 run --github user/repo/main/script.py --hash <sha256> --runtime python
|
|
144
|
+
```
|
|
145
|
+
|
|
130
146
|
### `isol8 cleanup`
|
|
131
147
|
|
|
132
148
|
Remove orphaned isol8 containers.
|