Skip to content

Support running components that export wasi:http/incoming-handler from registryΒ #3360

@kate-goldenring

Description

@kate-goldenring

spin up expects OCI references to resolve to artifacts that contain a spin.toml file. It chokes if you pass an OCI reference that resolves to a simple wasi:http/incoming-handler exporter. Instead you have to wkg fetch and then run from the local artifact.

$ spin up --from ghcr.io/bowlofarugula/fluid:0.0.1
Error: failed to decode locked app from "/Users/ian/Library/Caches/spin/registry/manifests/ghcr.io/bowlofarugula/fluid/0.0.1/config.json"

Caused by:
      missing field `spin_lock_version` at line 1 column 239
$ wkg oci pull ghcr.io/bowlofarugula/fluid:0.0.1
Successfully wrote ghcr.io/bowlofarugula/fluid:0.0.1 to bowlofarugula_fluid.wasm
$ spin up --from bowlofarugula_fluid.wasm

Serving http://127.0.0.1:3000
Available Routes:
  http-trigger1-component: http://127.0.0.1:3000 (wildcard)
I'll update the doc to show the flow Spin expects with spin registry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions