3
3
.PHONY : build.example build.example.docker build.examples build.examples.docker lint test test.sdk test.e2e
4
4
5
5
build.example :
6
- tinygo build -o ./examples/${name} /main.go.wasm -scheduler=none -target=wasi -wasm-abi=generic ./examples/${name} /main.go
6
+ tinygo build -o ./examples/${name} /main.go.wasm -scheduler=none -target=wasi ./examples/${name} /main.go
7
7
8
8
build.example.docker :
9
- docker run -it -w /tmp/proxy-wasm-go -v $(shell pwd) :/tmp/proxy-wasm-go tinygo/tinygo-dev:latest \
9
+ docker run -it -w /tmp/proxy-wasm-go -v $(shell pwd) :/tmp/proxy-wasm-go tinygo/tinygo:0.16.0 \
10
10
tinygo build -o /tmp/proxy-wasm-go/examples/${name} /main.go.wasm -scheduler=none -target=wasi \
11
- -wasm-abi=generic /tmp/proxy-wasm-go/examples/${name} /main.go
11
+ /tmp/proxy-wasm-go/examples/${name} /main.go
12
12
13
13
build.examples :
14
- find ./examples -type f -name " main.go" | xargs -Ip tinygo build -o p.wasm -scheduler=none -target=wasi -wasm-abi=generic p
14
+ find ./examples -type f -name " main.go" | xargs -Ip tinygo build -o p.wasm -scheduler=none -target=wasi p
15
15
16
16
build.examples.docker :
17
- docker run -it -w /tmp/proxy-wasm-go -v $(shell pwd) :/tmp/proxy-wasm-go tinygo/tinygo:latest /bin/bash -c \
18
- ' find /tmp/proxy-wasm-go/examples/ -type f -name "main.go" | xargs -Ip tinygo build -o p.wasm -scheduler=none -target=wasi -wasm-abi=generic p'
17
+ docker run -it -w /tmp/proxy-wasm-go -v $(shell pwd) :/tmp/proxy-wasm-go tinygo/tinygo:0.16.0 /bin/bash -c \
18
+ ' find /tmp/proxy-wasm-go/examples/ -type f -name "main.go" | xargs -Ip tinygo build -o p.wasm -scheduler=none -target=wasi p'
19
19
20
20
lint :
21
21
golangci-lint run --build-tags proxytest
@@ -30,8 +30,4 @@ test.e2e.single:
30
30
go test -v ./e2e -run ${name}
31
31
32
32
run :
33
- docker run --entrypoint=' /usr/local/bin/envoy' \
34
- -p 18000:18000 -p 8099:8099 \
35
- -w /tmp/envoy -v $(shell pwd) :/tmp/envoy istio/proxyv2:1.8.1 \
36
- -c /tmp/envoy/examples/${name} /envoy.yaml --concurrency 2 \
37
- --log-format-prefix-with-location ' 0' --log-format ' %v' # --log-format-prefix-with-location will be removed at 1.17.0 release
33
+ envoy -c ./examples/${name} /envoy.yaml --concurrency 2 --log-format ' %v'
0 commit comments