From b2f1c47beea2c27ceae2c61f2f919f3e6274c8dd Mon Sep 17 00:00:00 2001 From: Tomasz Andrzejak Date: Wed, 13 Nov 2024 13:31:07 +0100 Subject: [PATCH] Split long lines to avoid horizontal scrolling --- crates/containerd-shim-wasmtime/README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/containerd-shim-wasmtime/README.md b/crates/containerd-shim-wasmtime/README.md index 4a4776505..05cd85748 100644 --- a/crates/containerd-shim-wasmtime/README.md +++ b/crates/containerd-shim-wasmtime/README.md @@ -50,7 +50,11 @@ Alternatively, you can use the pre-built [Hello World][5] example from this repo Use `oci-tar-builder` to create an OCI image with our `http-handler`. Assuming our Wasm component is named `wasi-http.wasm`: ```shell -cargo run --bin oci-tar-builder -- --name wasi-http --repo ghcr.io/containerd/runwasi --tag latest --module wasi-http.wasm -o ./dist/wasi-http-img-oci.tar +cargo run --bin oci-tar-builder -- \ + --name wasi-http \ + --repo ghcr.io/containerd/runwasi \ + --tag latest --module wasi-http.wasm \ + -o ./dist/wasi-http-img-oci.tar ``` - Import the image: @@ -62,7 +66,8 @@ sudo ctr image import --all-platforms ./dist/wasi-http-img-oci.tar - Run the image: ```shell -sudo ctr run --rm --net-host --runtime=io.containerd.wasmtime.v1 ghcr.io/containerd/runwasi/wasi-js:latest wasi-http /wasi-http.wasm +sudo ctr run --rm --net-host --runtime=io.containerd.wasmtime.v1 \ + ghcr.io/containerd/runwasi/wasi-js:latest wasi-http /wasi-http.wasm ``` - Finally, assuming our handler will respond to `GET` requests at `/`, we can