-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
56 lines (41 loc) · 1.18 KB
/
Copy pathjustfile
File metadata and controls
56 lines (41 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
image_name := "envoy-extproc-sdk-go-examples"
image_tag := `git rev-parse HEAD`
default:
just --list
update:
go get -u ./ && just tidy
tidy:
go mod tidy
format:
go fmt ./...
test:
go test ./...
integration-test:
echo "TBD"
coverage:
echo "TBD"
run example="noop" *flags="":
go run *.go {{flags}} {{example}}
build *flags="":
go build {{flags}}
cd plugins/noop/goplugin && go build -buildmode=plugin
cd plugins/timer/goplugin && go build -buildmode=plugin
cd plugins/trivial/goplugin && go build -buildmode=plugin
cd plugins/wasm/goplugin && go build -buildmode=plugin
clean:
rm plugins/**/goplugin/*.so
containerize tag=image_tag *flags="":
docker build . -t {{image_name}}:{{tag}} {{flags}}
# [[ -d extproc ]] && rm -rf extproc || true
# mkdir -p extproc \
# && cp ../*.go extproc/ \
# && cp ../go.mod ../go.sum extproc/
# docker build . -t {{image_name}}:{{tag}} {{flags}}
# rm -rf extproc
up:
just containerize compose
docker compose up
call path="/" method="GET" *flags="":
curl -X {{method}} localhost:8080{{path}} {{flags}} -vvv -s | jq .
down:
docker compose down