From d0325f88bd86cf01094ae0fcb4a8eac776922705 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Mon, 11 Jan 2021 21:29:07 +0900 Subject: [PATCH] wasm: replace the obsolete contents in wasm-cc's README with docs link Signed-off-by: Kenjiro Nakayama --- examples/wasm-cc/README.md | 61 ++------------------------------------ 1 file changed, 2 insertions(+), 59 deletions(-) diff --git a/examples/wasm-cc/README.md b/examples/wasm-cc/README.md index 2922b607f9b7c..f5e04fd7503a9 100644 --- a/examples/wasm-cc/README.md +++ b/examples/wasm-cc/README.md @@ -1,59 +1,2 @@ -# Envoy WebAssembly Filter - -In this example, we show how a WebAssembly(WASM) filter can be used with the Envoy -proxy. The Envoy proxy [configuration](./envoy.yaml) includes a Webassembly filter -as documented [here](https://www.envoyproxy.io/docs/envoy/latest/). - - - - -## Quick Start - -1. `docker-compose build` -2. `docker-compose up` -3. `curl -v localhost:18000` - -Curl output should include our headers: - -``` -# curl -v localhost:8000 -* Rebuilt URL to: localhost:18000/ -* Trying 127.0.0.1... -* TCP_NODELAY set -* Connected to localhost (127.0.0.1) port 18000 (#0) -> GET / HTTP/1.1 -> Host: localhost:18000 -> User-Agent: curl/7.58.0 -> Accept: */* -> -< HTTP/1.1 200 OK -< content-length: 13 -< content-type: text/plain -< location: envoy-wasm -< date: Tue, 09 Jul 2019 00:47:14 GMT -< server: envoy -< x-envoy-upstream-service-time: 0 -< newheader: newheadervalue -< -example body -* Connection #0 to host localhost left intact -``` - -## Build WASM Module - -Now you want to make changes to the C++ filter ([envoy_filter_http_wasm_example.cc](envoy_filter_http_wasm_example.cc)) -and build the WASM module ([envoy_filter_http_wasm_example.wasm](envoy_filter_http_wasm_example.wasm)). - -1. Build WASM module - ```shell - bazel build //examples/wasm:envoy_filter_http_wasm_example.wasm - ``` - -## Build the Envoy WASM Image - - - -For Envoy WASM runtime developers, if you want to make changes, please - -1. Follow [instructions](https://github.com/envoyproxy/envoy-wasm/blob/master/WASM.md). -2. Modify `docker-compose.yaml` to mount your own Envoy. +To learn about this sandbox and for instructions on how to run it please head over +to the [envoy docs](https://www.envoyproxy.io/docs/envoy/latest/start/sandboxes/wasm-cc).