Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(spin/assets): support loading static assets #13

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

radu-matei
Copy link
Member

@radu-matei radu-matei commented Feb 16, 2024

This commit enables loading static assets in Spin applications. Specifically, it modifies the engine to check for the Spin static asset media type and adds that layer to the Spin cache, used later by the loader.

close #10

This commit enables loading static assets in Spin applications.
Specifically, it modifies the engine to check for the Spin static asset
media type and adds that layer to the Spin cache, used later by the loader.

Signed-off-by: Radu Matei <[email protected]>

Co-authored-by: Kate Goldenring <[email protected]>
Co-authored-by: Vaughn Dice <[email protected]>
Copy link
Member

@Mossaka Mossaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Would be interested to see a test case for it!

containerd-shim-spin/src/engine.rs Outdated Show resolved Hide resolved
Signed-off-by: Kate Goldenring <[email protected]>
@kate-goldenring
Copy link
Collaborator

Tests will be easier to create for this once WasmLayer is made public in these changes: https://github.com/containerd/runwasi/pull/492/files#diff-0c0a8cb323bf4a4c46315088a2a0d6581b22a1fbecefa8892f585fee933cf16dR22.

We can add tests after that runwasi change goes in

@kate-goldenring kate-goldenring merged commit 6bfdbcb into spinkube:main Mar 5, 2024
7 of 8 checks passed
@kate-goldenring kate-goldenring deleted the feat/spin-static-assets branch March 5, 2024 19:20
@vdice vdice mentioned this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support static assets distribute with Spin application
3 participants