33.PHONY : build.example build.example.docker build.examples build.examples.docker lint test test.sdk test.e2e
44
55build.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
77
88build.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 \
1010 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
1212
1313build.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
1515
1616build.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'
1919
2020lint :
2121 golangci-lint run --build-tags proxytest
@@ -30,8 +30,4 @@ test.e2e.single:
3030 go test -v ./e2e -run ${name}
3131
3232run :
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