spinframework / spinframework/spin

Push component to registry

Open
#2,536 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
6.5k
Forks
310
Avg merge
1d 20h
Merged PRs (30d)
24

Description

Spin recently added experimental support for sourcing a component's Wasm from a registry. However, you can't yet upload such a component using spin registry push: you have to use a specific oras incantation. It would be good to have an end-to-end story around this.

One possible way of doing this is to extend the use of the -f flag to accept a Wasm file, as spin up now allows. Thus spin registry push ghcr.io/itowlson/fileserver:1.0.0 -f ./target/wasm32-wasi/release/fileserver.wasm would upload a single Wasm blob, which could then be reused via [component] source = { registry = "ghcr.io", package = "itowlson/fileserver", version = "1.0.0" }.

A risk here is confusion over whether "push a component" pushes the fully configured component or just the Wasm blob. Referencing a file hopefully makes that clear.

On the other hand, it's also arguably not something Spin needs to be involved in, because that could be any Wasm file, it doesn't have to be a Spin component. There should be and, and undoubtedly soon will be, other and more general tooling for that. Anyway jotting it down as a ponderable.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the spin registry push command and compare its current -f handling with spin up's Wasm-file support. Clarify whether the command should upload a single Wasm blob or a configured component, then define an end-to-end registry push and reuse flow before changing it.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.