blob: 68f275e3ea4efdfc1b019f457ca98bc66880ff81 [file] [view]
CPP example for ATS Wasm Plugin
To compile `myproject.wasm`
* Create a docker image following instructions here - https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/blob/master/README.md#docker
* In this directory run `docker run -v $PWD:/work -w /work wasmsdk:v2 /build_wasm.sh`
Copy the yaml in this directory and the generated `myproject.wasm` to `/usr/local/var/wasm/` and activate the plugin in `plugin.config`
* `wasm.so /usr/local/var/wasm/myproject.yaml`