Skip to content

Commit

Permalink
add wasm binary url
Browse files Browse the repository at this point in the history
Signed-off-by: Kohei Tokunaga <[email protected]>
  • Loading branch information
ktock committed Sep 12, 2023
1 parent fe7b972 commit 4e6c7a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
8 changes: 8 additions & 0 deletions examples/networking/fetch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 4e6c7a7

Please sign in to comment.