mirror of
https://github.com/containers/youki
synced 2024-11-22 08:51:59 +01:00
6e1a8cf5e5
* Update Cargo.toml * Update Cargo.toml * Update Cargo.toml * Update Cargo.toml * Update documentation_mdbook.md * Update Cargo.toml * Update Cargo.toml * Update README.md * Update README.md * Update README.md Co-authored-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com> * Update README.md Co-authored-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com> * Update README.md Co-authored-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com> * Update docs/src/developer/documentation_mdbook.md Co-authored-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com> * Update tools/wasm-sample/README.md Co-authored-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com> --------- Co-authored-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
This is a simple wasm module for testing purposes. It prints out the arguments given to the program and all environment variables. You can compile the module with
cargo build --target wasm32-wasi
If you want youki to execute the module you must copy it to the root file system of the container and reference it in the args of the config.json. You must also ensure that the annotations contain "run.oci.handler": "wasm"
and that youki has been compiled with one of the supported wasm runtimes. For further information please check the documentation.
"ociVersion": "1.0.2-dev",
"annotations": {
"run.oci.handler": "wasm"
},
"process": {
"terminal": true,
"user": {
"uid": 0,
"gid": 0
},
"args": [
"/wasm-sample.wasm",
"hello",
"wasm"
],