From 4e6c7a7de1987378ae81ec19dbbd1c2f435b5460 Mon Sep 17 00:00:00 2001 From: Kohei Tokunaga Date: Tue, 12 Sep 2023 13:22:57 +0900 Subject: [PATCH] add wasm binary url Signed-off-by: Kohei Tokunaga --- README.md | 4 ++-- examples/networking/fetch/README.md | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a1c834b..1813bb9b 100644 --- a/README.md +++ b/README.md @@ -102,11 +102,11 @@ $ c2w debian-curl /tmp/out-js2/htdocs/out.wasm ``` This example serves the image on `localhost:8080` using apache http server. -The following also builds the [network stack runnable on browser](./extras/c2w-net-proxy/) and puts it to the document root. +The following also puts the [network stack runnable on browser](./extras/c2w-net-proxy/) to the document root. ``` $ cp -R ./examples/wasi-browser/* /tmp/out-js2/ && chmod 755 /tmp/out-js2/htdocs -$ PREFIX=/tmp/out-js2/htdocs/ make c2w-net-proxy.wasm +$ wget -O /tmp/out-js2/htdocs/c2w-net-proxy.wasm https://github.com/ktock/container2wasm/releases/download/v0.5.0/c2w-net-proxy.wasm $ docker run --rm -p 8080:80 \ -v "/tmp/out-js2/htdocs:/usr/local/apache2/htdocs/:ro" \ -v "/tmp/out-js2/xterm-pty.conf:/usr/local/apache2/conf/extra/xterm-pty.conf:ro" \ diff --git a/examples/networking/fetch/README.md b/examples/networking/fetch/README.md index 36de554c..5d52304d 100644 --- a/examples/networking/fetch/README.md +++ b/examples/networking/fetch/README.md @@ -54,6 +54,10 @@ $ c2w debian-curl /tmp/out-js2/htdocs/out.wasm Then, put the WASM-compiled network stack (`c2w-net-proxy.wasm`) to `/tmp/out-js2/htdocs/`. The WASM binary can be found at the [release page](https://github.com/ktock/container2wasm/releases). +``` +$ wget -O /tmp/out-js2/htdocs/c2w-net-proxy.wasm https://github.com/ktock/container2wasm/releases/download/v0.5.0/c2w-net-proxy.wasm +``` + > Alternatively, you can also build it as the following: > > NOTE: Run this at the project repo root directory. Go >= 1.21 is needed on your machine. @@ -101,6 +105,10 @@ $ c2w nixos/nix /tmp/out-js2/htdocs/out.wasm Then, put the WASM-compiled network stack (`c2w-net-proxy.wasm`) to `/tmp/out-js2/htdocs/`. The WASM binary can be found at the [release page](https://github.com/ktock/container2wasm/releases). +``` +$ wget -O /tmp/out-js2/htdocs/c2w-net-proxy.wasm https://github.com/ktock/container2wasm/releases/download/v0.5.0/c2w-net-proxy.wasm +``` + > Alternatively, you can also build it as the following: > > NOTE: Run this at the project repo root directory. Go >= 1.21 is needed on your machine.