kosa8 migrate template
Turn an e2b.Dockerfile (and its e2b.toml) into a kosa8 Cloud template
Available from the next release (after v0.22.1). The current release, v0.22.1, does not have kosa8 migrate template: run kosa8 version to see which one you have.
Usage#
kosa8 migrate template [DOCKERFILE]
kosa8 Cloud builds templates from a Dockerfile, so an E2B template carries over: the Dockerfile as it is, the name, size (cpu_count, memory_mb) and start_cmd from the e2b.toml beside it. It prints the kosa8 cloud template build command, or with --build runs it. kosa8 builds with no build context, so a COPY or ADD of a local file cannot work there; for one of those it prints the exact steps to build and push the image yourself and make the template from that.
Options#
| Flag | Type | What it does | Default |
|---|---|---|---|
--build | bool | build it on kosa8 Cloud now (signed in) | — |
--name | string | the template's name (default: e2b.toml's template_name, else the folder's name) | — |
Example#
kosa8 migrate template kosa8 migrate template e2b.Dockerfile --name my-agent kosa8 migrate template e2b.Dockerfile --build