@@ -6,9 +6,9 @@ therefore use of a Docker image is recommended.
6
6
7
7
## Docker
8
8
9
- A Dockerfile for the C++ SDK is provided in [ Dockerfile-sdk] ( Dockerfile-sdk ) .
9
+ A Dockerfile for the C++ SDK is provided in [ Dockerfile-sdk] ( ../ Dockerfile-sdk) .
10
10
11
- It can built in this directory by:
11
+ It can built in this repository's root directory by:
12
12
13
13
``` bash
14
14
docker build -t wasmsdk:v2 -f Dockerfile-sdk .
@@ -75,30 +75,6 @@ docker commit `docker ps -l | grep wasmsdk:v2 | awk '{print $1}'` wasmsdk:v2
75
75
76
76
This will save time on subsequent compiles.
77
77
78
- # ## Using the SDK from a newer/specific version of Envoy
79
-
80
- To use a newer/specific version of the SDK (e.g. from the version of Envoy you
81
- are going to deploy the WebAssembly module to), bind that volume and use it in
82
- the Makefile.
83
-
84
- Here is an example Makefile referencing the SDK at `../envoy/api/wasm/cpp` and
85
- mounted as `sdk` in the `/work` directory :
86
-
87
- ```makefile
88
- PROXY_WASM_CPP_SDK =/work/sdk
89
-
90
- all : myproject.wasm
91
-
92
- include ${PROXY_WASM_CPP_SDK}/Makefile.base_lite
93
- ```
94
-
95
- Run docker pointing to Envoy sources in a directory parallel (at the same level)
96
- as your project directory :
97
-
98
- ```bash
99
- docker run -v $PWD :/work -v $PWD/../envoy/api/wasm/cpp:/work/sdk -w /work wasmsdk:v2 bash /build_wasm.sh
100
- ```
101
-
102
78
# ## Using Abseil from the Docker image
103
79
104
80
Abseil (optionally) is built in /root/abseil and can be used. Note that the
@@ -206,8 +182,8 @@ However 3.1.7 is known to work.
206
182
207
183
### Rebuilding the libprotobuf.a files
208
184
209
- If want to rebuild the libprotobuf.a files or use a different version see the
210
- instructions at https://github.com/kwonoj/protobuf-wasm . Commit
185
+ If want to rebuild the libprotobuf.a files using a version of protobuf prior to
186
+ 3.15, see the instructions at https://github.com/kwonoj/protobuf-wasm . Commit
211
187
4bba8b2f38b5004f87489642b6ca4525ae72fe7f works for protobuf v3.9.x.
212
188
213
189
``` bash
0 commit comments