view service/frontDoorLock/makefile @ 426:bfe555dd0c91

talk to store graph, second button for holding unlocked, etc Ignore-this: c2ae7d756e743c26e5e01d99772899bd
author drewp@bigasterisk.com
date Thu, 04 Apr 2019 02:16:22 -0700
parents 67cebf7a14de
children
line wrap: on
line source

JOB=front_door_lock
PORT=10011

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:
	docker run --rm -it --cap-add SYS_PTRACE --net=host bang6:5000/$(JOB)_x86:latest  /bin/sh

local_run: build_image
	docker run --rm -it --net=host -v `pwd`/index.html:/opt/index.html bang6:5000/$(JOB)_x86:latest python ./front_door_lock.py -v

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