diff service/wifi/makefile @ 420:a530d9c5b280

rename historical 'tomatoWifi' Ignore-this: 8a3f1f261df50e8029cf9de5b11a6896
author drewp@bigasterisk.com
date Sat, 30 Mar 2019 16:58:08 -0700
parents service/tomatoWifi/makefile@8f5a16a55f64
children 47d7dd31bb2c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/service/wifi/makefile	Sat Mar 30 16:58:08 2019 -0700
@@ -0,0 +1,21 @@
+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 *.json *.html 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} \
+          --net=host \
+          ${TAG} \
+          python tomatoWifi.py -v