| 1234567891011121314151617181920212223242526272829303132333435 |
- FILTER=
- PARAMS=
- ifeq ($(debug),1)
- PARAMS+=debug=1
- endif
- ifdef pid
- ifneq ($(pid),0)
- PARAMS+=pid=$(pid)
- FILTER=FILTER_PID=${pid}
- endif
- endif
- debug:
- exit
- build:
- CGO_ENABLED=1 go build -gcflags="all=-N -l" -buildvcs=false -o dist/package_dir/bin/euspace
- c:
- #docker exec -it 9d928d96d4d0 sh -c 'cd /opt/github/euspace/ebpftracer && sh build.sh${PARAMS}'
- docker exec -it 0fec3217d6da sh -c 'cd /opt/github/euspace/ebpftracer && make all ${PARAMS}'
- c-build: c
- go-build:
- #ssh [email protected] 'export https_proxy=http://10.0.22.50:4780 && source ~/.g/env && cd /opt/github/euspace && make -f Makefile2 build'
- docker exec -it 0fec3217d6da bash -c 'cd /opt/github/euspace && source ~/.g/env && make -f Makefile2 build'
- go: go-build
- run:
- ssh [email protected] 'cd /opt/github/euspace && TRACES_ENDPOINT=http://10.0.12.192:18080/docp/api/v2/data/receive ${FILTER} ./euspace --listen="0.0.0.0:8123"'
- send_run:
- ssh [email protected] 'cd /opt/github/euspace && SEND=1 TRACES_ENDPOINT=http://10.0.12.192:18080/docp/api/v2/data/receive ${FILTER} ./euspace --listen="0.0.0.0:8123"'
- all: c go
- only-build: c go-build
- scp -P36000 ./euspace [email protected]:/root/carl
|