containerd / runwasi

Facilitates running Wasm / WASI workloads managed by containerd
Apache License 2.0
1.09k stars 90 forks source link

Windows support #49

Open jsturtevant opened 1 year ago

jsturtevant commented 1 year ago

Currently we cannot use this project on Windows. This is an umbrella issue to track Windows support. There may be more items added as the work progresses.

~The project doesn't currently build:~ it builds since https://github.com/containerd/runwasi/pull/238 🎉

 cargo build
   Compiling zstd-safe v5.0.2+zstd.1.5.2
   Compiling zstd-sys v2.0.4+zstd.1.5.2
   Compiling ittapi-sys v0.3.2
   Compiling wasmtime-runtime v2.0.2
   Compiling cranelift-wasm v0.89.2
   Compiling psm v0.1.21
   Compiling uapi v0.2.10
   Compiling uapi-proc v0.0.5
   Compiling num-traits v0.2.15
   Compiling ttrpc v0.6.1
   Compiling ittapi v0.3.2
   Compiling cap-fs-ext v0.26.1
error[E0425]: cannot find function `geteuid` in crate `libc`
   --> C:\Users\jstur\.cargo\registry\src\github.com-1ecc6299db9ec823\uapi-proc-0.0.5\src\lib.rs:16:34
    |
16  |             root: unsafe { libc::geteuid() == 0 },
    |                                  ^^^^^^^ help: a function with a similar name exists: `getpid`

Some errors have detailed explanations: E0412, E0422, E0425, E0432, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `ttrpc` due to 58 previous errors
error: failed to run custom build command for `uapi v0.2.10

At a minimum the following tasks need to be completed:

squillace commented 1 year ago

thanks, @jsturtevant !!!

jsturtevant commented 1 year ago

This is the PR that enables can import the test image to windows (https://github.com/microsoft/hcsshim/pull/1688)

jsturtevant commented 1 year ago

When parsing the runtime spec in runwasi it fails, tracking in https://github.com/containers/oci-spec-rs/issues/126

squillace commented 1 year ago

@jsturtevant this is great work, man

jprendes commented 1 year ago

To add to the TODO list, enable this test on Windows.

liangchenghao1 commented 1 year ago

@jsturtevant Hi, I am working on creating a wasm container on a Windows node using runwasi. I see that the key tasks listed in this issue have been basically solved, may I ask whether the wasm application under Windows can be preliminarily implemented now? If not, what are the key remaining issues? Looking forward to your reply.

jsturtevant commented 1 year ago

@liangchenghao1 Thanks for the interest, I've been side tracked with other work but I've updated the todo, list with the last items. remaining.