gigadrive 2.7.4 → 2.8.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 +23 -0
- package/dist/index.cjs +1130 -237
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1117 -220
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -21,3 +21,26 @@ pnpm dlx gigadrive apps create --org <organization-id> --name <application-name>
|
|
|
21
21
|
|
|
22
22
|
The legacy `gigadrive platform deploy` command remains available as an alias for
|
|
23
23
|
`gigadrive deploy`.
|
|
24
|
+
|
|
25
|
+
## microVMs
|
|
26
|
+
|
|
27
|
+
microVMs are isolated Linux machines for running code. `gigadrive vm` is an
|
|
28
|
+
alias of `gigadrive microvms`.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
gigadrive vm create --image node22 --port 3000 --timeout 30m # prints the ID and preview URLs
|
|
32
|
+
gigadrive vm exec <id> -- npm install # streams output, exits with its code
|
|
33
|
+
gigadrive vm exec <id> -- 'ls -la | wc -l' # one quoted argument runs through /bin/sh -c
|
|
34
|
+
gigadrive vm cp ./app vm:<id>:/app # copy in (directories are recursive)
|
|
35
|
+
gigadrive vm cp vm:<id>:/app/dist ./dist # and out
|
|
36
|
+
gigadrive vm shell <id> # interactive terminal
|
|
37
|
+
gigadrive vm ls # running microVMs (--all includes stopped)
|
|
38
|
+
gigadrive vm extend <id> 1h # stop it one hour from now
|
|
39
|
+
gigadrive vm stop <id> && gigadrive vm rm <id>
|
|
40
|
+
gigadrive vm images create py-ml --from python:3.13 --wait # custom images (or --dockerfile ./Dockerfile)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
`create` takes `--vcpus`, `--memory` and `--disk` (MiB), `--env KEY=VALUE`,
|
|
44
|
+
`--metadata KEY=VALUE`, `--deny-egress` and `--app` (defaults to the linked
|
|
45
|
+
application). `exec` takes `--cwd`, `--env`, `--user`, `--sudo`, `--timeout`
|
|
46
|
+
and `-i` to forward stdin.
|