https://github.com/cloudydeno/denodir-oci
Upload Deno cache directories to OCI registries. Download and run on another machine, or repackage with a Deno runtime layer to make a regular Docker image.
https://github.com/cloudydeno/denodir-oci
Last synced: about 2 months ago
JSON representation
Upload Deno cache directories to OCI registries. Download and run on another machine, or repackage with a Deno runtime layer to make a regular Docker image.
- Host: GitHub
- URL: https://github.com/cloudydeno/denodir-oci
- Owner: cloudydeno
- License: mit
- Created: 2022-01-19T07:12:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-02T19:54:41.000Z (3 months ago)
- Last Synced: 2025-03-02T20:23:36.628Z (3 months ago)
- Language: TypeScript
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# denodir-oci
Upload Deno cache directories to OCI registries. Download and run on another machine, or repackage with a Deno runtime layer to make a regular Docker image.Install the CLI globally like so:
```
deno install -f --global --allow-read --allow-write=$HOME,${TMPDIR:-/tmp} --allow-run --allow-net --allow-env --reload=https://raw.githubusercontent.com https://raw.githubusercontent.com/cloudydeno/denodir-oci/main/doci/mod.ts
```## Examples
A reference of some modules that I've been building as test material.
### Tiny examples
```sh
doci build https://deno.land/[email protected]/examples/welcome.ts # A single file
doci build https://deno.land/[email protected]/examples/colors.ts # Two files
doci build https://deno.land/[email protected]/examples/flags.ts # Three files
```### Large images
```sh
doci build https://raw.githubusercontent.com/cloudydeno/kubernetes-dns-sync/main/src/controller/mod.ts
```### Multiple layers
Examples where larger slow-moving libraries are put in a separate base layer
for better storage utilization after successive builds.```sh
# One big static module and one smaller module which changes often
doci build \
https://raw.githubusercontent.com/cloudydeno/notion-toolbox/main/object-model/mod.ts \
https://raw.githubusercontent.com/cloudydeno/notion-toolbox/main/publish-firebase-blog/mod.ts# or, condensed:
doci build https://raw.githubusercontent.com/cloudydeno/notion-toolbox/main/{object-model,publish-firebase-blog}/mod.ts# A deps.ts for dependencies, followed by the actual entrypoint
doci build \
https://raw.githubusercontent.com/cloudydeno/kubernetes-dns-sync/main/src/deps.ts
https://raw.githubusercontent.com/cloudydeno/kubernetes-dns-sync/main/src/controller/mod.ts# or, condensed:
doci build https://raw.githubusercontent.com/cloudydeno/kubernetes-dns-sync/main/src/{deps,controller/mod}.ts
```