view service/wifi/makefile @ 1226:7de8f0cd3392

very big rewrite. py3; orbi-only for now; n3 config file; delete or move out dead code Ignore-this: bfecea6f4990d34b36cc6d97cc6c6fa2 darcs-hash:79a3d55bfae5776b2374faa2020b6e27f17eb390
author drewp <drewp@bigasterisk.com>
date Sat, 30 Mar 2019 23:38:47 -0700
parents e1202af42d4d
children 21bc3b07a538
line wrap: on
line source

JOB=wifi
PORT=9070

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

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

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

local_run: build_image
	docker run --rm -it -p ${PORT}:${PORT} --net=host ${TAG} python3 wifi.py -v

local_run_strace: build_image
	docker run --rm -it -p ${PORT}:${PORT} --cap-add=SYS_PTRACE --net=host ${TAG} strace -f -s 200 python3 wifi.py -v