-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·20 lines (15 loc) · 679 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TEG ?=test:v0.0.1
run:
dlv --listen=:40000 --headless=true --api-version=2 exec ./out/main -- 2
clean:
rm -rf out
plugins:
go build -o out/plug1.so -gcflags="all=-N -l" -buildmode=plugin ./plugin/one/plugin1.go
go build -o out/plug2.so -gcflags="all=-N -l" -buildmode=plugin ./plugin/two/plugin2.go
main:
go build -o "out/main" -gcflags="all=-N -l"
# docker run -it --name test -p 8080:8080 -p 40000:40000 --security-opt='apparmor=unconfident' --cap-add=SYS_PTRACE test:v0.0.1
# dlv --listen=:40000 --headless=true --api-version=2 --accept-multiclient exec ./out/main -- 2
docker:
docker image build -t ${TEG} .
docker image prune --filter label=stage=builder <<< y