view service/collector/makefile @ 1162:52960ea4dfa6

audiolevels now saves multiple frequency bands Ignore-this: 933a5d32f4d97ee148f15a3c6b12235e darcs-hash:4cf1710eadb9e815d3ccb1fdbae513774bcd94d1
author drewp <drewp@bigasterisk.com>
date Wed, 05 Sep 2018 06:06:25 -0700
parents b1aa28ea1fee
children ee74dc3b58fb
line wrap: on
line source

JOB=collector
PORT=9072

TAG=bang6:5000/${JOB}_x86:latest

build_image:
	rm -rf tmp_ctx
	mkdir -p tmp_ctx
	cp -a Dockerfile ../../lib/*.py ../../lib/twisted_sse_demo *.py req* tmp_ctx
	docker build --network=host -t ${TAG} tmp_ctx
	docker push ${TAG}
	rm -r tmp_ctx

shell:
	docker run --rm -it --cap-add SYS_PTRACE --net=host ${TAG} /bin/bash

local_run:
	docker run --rm -it -p ${PORT}:${PORT} \
          -v `pwd`:/mnt \
          --net=host \
          ${TAG} \
          python /mnt/sse_collector.py -v

local_run_strace:
	docker run --rm -it -p ${PORT}:${PORT} \
          -v `pwd`:/mnt \
          --net=host \
          --cap-add SYS_PTRACE \
          ${TAG} \
          strace -f -tts 200 python /mnt/sse_collector.py -v