view service/mqtt_graph_bridge/makefile @ 470:91ab9f926aa1

py3 updates. some other refactors. Ignore-this: d767dfb98f4191f61b4ff6177c76b36a
author drewp@bigasterisk.com
date Sat, 20 Apr 2019 23:46:57 -0700
parents 7051b8b4766a
children
line wrap: on
line source

JOB=mqtt_graph_bridge
PORT=10008

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

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


shell: build_image
	docker run --rm -it --cap-add SYS_PTRACE --net=host bang6:5000/mqtt_graph_bridge_x86:latest  /bin/sh

local_run: build_image
	docker run --rm -it --net=host bang6:5000/mqtt_graph_bridge_x86:latest

redeploy: build_image
	supervisorctl restart $(JOB)_$(PORT)