-
Notifications
You must be signed in to change notification settings - Fork 13
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
Precompilation support. #32
Precompilation support. #32
Conversation
Signed-off-by: Radu Matei <radu@fermyon.com>
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
This commit skips precompilation when the Spin application is distributed using a scratch container, and only enables it when distributing apps using `spin registry push`. Signed-off-by: Radu Matei <radu@fermyon.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small nit, but otherwise looks great!
@radu-matei how does the |
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
I think we should use this PR and close #16 for a couple reasons:
If there are no objections, can i close #16? I incorporated your feedback @devigned -- much cleaner! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM added a few refactoring tips
@radu-matei I was tinkering with this and similarly failed to run a scratch container built with Mar 11 06:43:23 kagold-ThinkPad-X1-Carbon-6th containerd[927513]: time="2024-03-11T13:43:23.742903865Z" level=error msg="on non-Windows, at least one process arg entry is required"
Mar 11 06:43:23 kagold-ThinkPad-X1-Carbon-6th containerd[927513]: time="2024-03-11T13:43:23.742939138Z" level=error msg="failed to initialize container process: missing args in the process spec" However, if I set sudo ctr run --rm --net-host --runtime io.containerd.spin.v2 ghcr.io/deislabs/containerd-wasm-shims/examples/spin-rust-hello:v0.10.0 sample ./spin.toml I'm continuing to investigate but wanted to share this for now |
…source Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
@radu-matei I believe my latest commit should have resolved the issue. In 09c1a56, we undid always resolving local spin manifest path to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
abf807f
to
565ff6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
565ff6d
to
6e1b36b
Compare
Is there anything before we can get this in and get prebuilt binaries we can use more easily? Thanks! |
Thanks for getting this PR in! 🥂 Time to do another release? |
@Mossaka yes indeed. I can do this one to get some practice at it |
@kate-goldenring yeah let me know if you have questions |
Note: this now only supports scratch containers pushed without the
--platform=wasi/wasm
flag set when building the container image.relevant changes: 7b1e07a
close #31
Signed-off-by: Radu Matei radu@fermyon.com