view service/reasoning/makefile @ 1165:9676b60b4288

move reasoning into docker Ignore-this: 3a9f51b99650a2b39f5e9e71cf0daf04 darcs-hash:7885d76aa7514cf315edd488726e1c1d6a7c9f15
author drewp <drewp@bigasterisk.com>
date Sun, 09 Sep 2018 04:01:44 -0700
parents ee168d55524a
children 79d041273e26
line wrap: on
line source

JOB=reasoning
PORT=9071

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

build_image:
	rm -rf tmp_ctx
	mkdir -p tmp_ctx
	cp -a Dockerfile ../../lib/*.py ../../lib/twisted_sse_demo *.py *.n3 *.html input req* tmp_ctx
	rsync -a input 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} \
          -v `pwd`:/mnt \
          --net=host \
          ${TAG} \
          python /mnt/${JOB}.py -iro