Skip to content

Commit

Permalink
Merge pull request envoyproxy#17 from silentdai/wasmdoc
Browse files Browse the repository at this point in the history
Add wasm build instructions to example/wasm
  • Loading branch information
mandarjog authored Feb 11, 2019
2 parents 7b94516 + eac59ec commit 97fd9d1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/wasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,24 @@ Curl output should include our headers:
* Connection #0 to host localhost left intact
}
```

# Build WASM Binary
## prerequisite
1. [Download and install `emscripten`](https://emscripten.org/docs/getting_started/downloads.html#installation-instructions)
2. Activate emsdk archived version 1.38.25 (Note: by 02/11/2019 the latest build is broken for envoy-wasm)

```
# in emsdk directory
./emsdk install sdk-1.38.25-64bit
./emsdk activate sdk-1.38.25-64bit
source emsdk_env.sh
# verify
em++ -v 2>&1 |grep Emscripten ## should output 1.38.25
```
3. Build wasm filter in envoy directory

```shell
envoy/examples/wasm$ source <path/to/emsdk>/emsdk_env.sh # Only needed if in another shell session
envoy/examples/wasm$ touch envoy_filter_http_wasm_example.cc && make
```

0 comments on commit 97fd9d1

Please sign in to comment.