view service/tomatoWifi/makefile @ 1220:6c195446f49c

mongodb api upgrade Ignore-this: 2a09182f26109a2744f98d6babc64293 darcs-hash:a257209dde11caef604518d3f60477b52c726b8e
author drewp <drewp@bigasterisk.com>
date Sat, 30 Mar 2019 16:56:31 -0700
parents afd19bf8b499
children
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 *.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