Skip to main content

Runtime Examples

This page is now the lightweight companion to Services And Runtimes.

Use it when you want the built-in example manifests immediately, without the step-by-step tutorial.

If you want to write your own manifest from scratch, including a commented template plus one Docker and one Wasmtime walkthrough, go to Services And Runtimes.

Download The Built-In Examples

Repository sources:

What Each Example Is For

Docker example:

  • uses runtime: docker
  • pulls an OCI image
  • is the easiest path when you already have a containerized workload

Wasmtime example:

  • uses runtime: wasmtime
  • pulls a single .wasm artifact from a URL
  • is the easiest path when you want the runtime built directly into Fungi

Fastest Commands

Docker example:

fungi service pull ./filebrowser.service.yaml
fungi service start filebrowser
fungi service inspect filebrowser

Wasmtime example:

fungi service pull ./filebrowser-lite-wasi.service.yaml
fungi service start filebrowser-lite-wasi
fungi service inspect filebrowser-lite-wasi

Remote peer flow:

fungi peer admin service pull --peer <peer-id> ./filebrowser-lite-wasi.service.yaml
fungi peer admin service start --peer <peer-id> filebrowser-lite-wasi
fungi access open --peer <peer-id> filebrowser-lite-wasi