Makefile2 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. FILTER=
  2. PARAMS=
  3. ifeq ($(debug),1)
  4. PARAMS+=debug=1
  5. endif
  6. ifdef pid
  7. ifneq ($(pid),0)
  8. PARAMS+=pid=$(pid)
  9. FILTER=FILTER_PID=${pid}
  10. endif
  11. endif
  12. debug:
  13. exit
  14. build:
  15. CGO_ENABLED=1 go build -gcflags="all=-N -l" -buildvcs=false -o dist/package_dir/bin/euspace
  16. c:
  17. #docker exec -it 9d928d96d4d0 sh -c 'cd /opt/github/euspace/ebpftracer && sh build.sh${PARAMS}'
  18. docker exec -it 0fec3217d6da sh -c 'cd /opt/github/euspace/ebpftracer && make all ${PARAMS}'
  19. c-build: c
  20. go-build:
  21. #ssh [email protected] 'export https_proxy=http://10.0.22.50:4780 && source ~/.g/env && cd /opt/github/euspace && make -f Makefile2 build'
  22. docker exec -it 0fec3217d6da bash -c 'cd /opt/github/euspace && source ~/.g/env && make -f Makefile2 build'
  23. go: go-build
  24. run:
  25. 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"'
  26. send_run:
  27. 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"'
  28. all: c go
  29. only-build: c go-build
  30. scp -P36000 ./euspace [email protected]:/root/carl