diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-08-02 17:03:48 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-08-21 23:24:12 +0100 |
commit | d6ed6a219b31a58526721f96195c80061d41ce54 (patch) | |
tree | 17a1fd6ecf72a327916ff0f8bc7aaf85b981ceff /examples/docker/README.md | |
download | unit-wasm-c43c6b57d70ae3a2cb3a52f5f991cd68fd39b47d.tar.gz unit-wasm-c43c6b57d70ae3a2cb3a52f5f991cd68fd39b47d.tar.bz2 |
Initial commitv0.1.0
libunit-wasm and example C and Rust WebAssembly modules for NGINX Unit.
Co-developed-by: Timo Stark <t.stark@nginx.com>
Co-developed-by: Liam Crilly <liam@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'examples/docker/README.md')
-rw-r--r-- | examples/docker/README.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/docker/README.md b/examples/docker/README.md new file mode 100644 index 0000000..61d2740 --- /dev/null +++ b/examples/docker/README.md @@ -0,0 +1,31 @@ +Unit-Wasm demo +============== + +## Build the docker images + +From the repository root, run + +```shell +$ make docker +``` + +This builds two docker images. + +### 1. unit:wasm + +This image is based on the Docker Official Images for Unit 1.30 with a fresh +build of unitd and the experimental Wasm module. Wasmtime is included as a +shared object. + +### 2. unit:demo-wasm + +This image is based on the new `unit:wasm` image created above. It includes +a demo application written in C and compiled to wasm. + +## Run the demo + +```shell +$ docker run -d -p 9000:80 unit:demo-wasm +$ curl localhost:9000 +$ curl localhost:9000/echo +``` |