comparison service/collector/makefile @ 1273:6f27fe20f6eb

py3 updates. some other refactors. Ignore-this: d767dfb98f4191f61b4ff6177c76b36a darcs-hash:e0636408927f199272b1415400de7fec47487c89
author drewp <drewp@bigasterisk.com>
date Sat, 20 Apr 2019 23:46:57 -0700
parents 666f9a2198a7
children 7fd9fa5d33aa
comparison
equal deleted inserted replaced
1272:298948c177ed 1273:6f27fe20f6eb
12 push_image: build_image 12 push_image: build_image
13 docker push ${TAG} 13 docker push ${TAG}
14 14
15 shell: build_image 15 shell: build_image
16 docker run --rm -it --cap-add SYS_PTRACE \ 16 docker run --rm -it --cap-add SYS_PTRACE \
17 --name $(JOB)_shell \ 17 --name=$(JOB)_shell \
18 --net=host \ 18 --net=host \
19 -v `pwd`/.mypy_cache:/opt/.mypy_cache \ 19 -v `pwd`/.mypy_cache:/opt/.mypy_cache \
20 -v `pwd`/sse_collector.py:/opt/sse_collector.py \ 20 -v `pwd`/sse_collector.py:/opt/sse_collector.py \
21 ${TAG} /bin/bash 21 ${TAG} /bin/bash
22 22
23 local_run: build_image 23 local_run: build_image
24 docker run --rm -it -p ${PORT}:${PORT} \ 24 docker run --rm -it -p ${PORT}:${PORT} \
25 --name=$(JOB)_local \
25 --net=host \ 26 --net=host \
26 ${TAG} \ 27 ${TAG} \
27 python3 sse_collector.py -v 28 python3 sse_collector.py -v
28 29
29 local_run_strace: build_image 30 local_run_strace: build_image
30 docker run --rm -it -p ${PORT}:${PORT} \ 31 docker run --rm -it -p ${PORT}:${PORT} \
31 -v `pwd`:/mnt \ 32 --name=$(JOB)_local \
32 --net=host \ 33 --net=host \
33 --cap-add SYS_PTRACE \ 34 --cap-add SYS_PTRACE \
34 ${TAG} \ 35 ${TAG} \
35 strace -f -tts 200 python3 /mnt/sse_collector.py -v 36 strace -f -tts 200 python3 /mnt/sse_collector.py -v
36 37
37 local_run_pyspy: build_image 38 local_run_pyspy: build_image
38 docker run --rm -it -p ${PORT}:${PORT} \ 39 docker run --rm -it -p ${PORT}:${PORT} \
39 -v `pwd`:/mnt \ 40 --name=$(JOB)_local \
40 --net=host \ 41 --net=host \
41 --cap-add SYS_PTRACE \ 42 --cap-add SYS_PTRACE \
42 ${TAG} \ 43 ${TAG} \
43 py-spy -- python3 /mnt/sse_collector.py 44 py-spy -- python3 sse_collector.py
44 45
45 typecheck: build_image 46 typecheck: build_image
46 docker run --rm -it -p ${PORT}:${PORT} \ 47 docker run --rm -it -p ${PORT}:${PORT} \
48 --name=$(JOB)_mypy \
47 --net=host \ 49 --net=host \
48 -v `pwd`/.mypy_cache:/opt/.mypy_cache \ 50 -v `pwd`/.mypy_cache:/opt/.mypy_cache \
49 ${TAG} \ 51 ${TAG} \
50 /usr/local/bin/mypy -m sse_collector -m export_to_influxdb -m logsetup -m patchablegraph -m patchsource -m rdfdb.patch 52 /usr/local/bin/mypy -m sse_collector -m export_to_influxdb -m logsetup -m patchablegraph -m patchsource -m rdfdb.patch
51 53