Mercurial > code > home > repos > homeauto
view service/environment/makefile @ 1451:71684fc9c692
new index page table
Ignore-this: 7668675a04bd5cc03cf4e1799c54d4d1
darcs-hash:5b546637d01f1fa70134c09470007ed1251d708c
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 25 Sep 2019 17:27:35 -0700 |
parents | b63c35e13e18 |
children |
line wrap: on
line source
JOB=environment PORT=9075 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 *.n3 *.html *.py 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: build_image docker run --rm -it -p ${PORT}:${PORT} \ -v `pwd`:/mnt \ -v /my/proj/rdfdb/rdfdb:/usr/local/lib/python2.7/dist-packages/rdfdb \ --net=host \ ${TAG} \ python environment.py -v local_run_strace: build_image docker run --rm -it -p ${PORT}:${PORT} \ -v `pwd`:/mnt \ --net=host \ --cap-add SYS_PTRACE \ ${TAG} \ strace -f -tts 200 python environment.py -v local_run_pyspy: build_image docker run --rm -it -p ${PORT}:${PORT} \ -v `pwd`:/mnt \ --net=host \ --cap-add SYS_PTRACE \ ${TAG} \ py-spy -- python environment.py redeploy: build_image supervisorctl restart $(JOB)_$(PORT)