Mercurial > code > home > repos > homeauto
view service/tradfri/makefile @ 1163:fa55bc09b396
tradfri docker update
Ignore-this: eccc13505e058527851714500d06a832
darcs-hash:51d6283a31f139648fcbe1ca7a2cbe3582a9805f
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 08 Sep 2018 02:26:23 -0700 |
parents | |
children | 8bd4e310d6b0 |
line wrap: on
line source
JOB=tradfri PORT=10009 TAG=bang6:5000/${JOB}_x86:latest build_image: rm -rf tmp_ctx mkdir -p tmp_ctx cp -a Dockerfile ../../lib/*.py *.py req* pytradfri libcoap tmp_ctx docker build --network=host -t ${TAG} tmp_ctx docker push ${TAG} rm -rf 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 -v local_run_strace: docker run --rm -it -p ${PORT}:${PORT} \ -v `pwd`:/mnt \ --net=host \ --cap-add SYS_PTRACE \ ${TAG} \ strace -f -tts 200 python /mnt/${JOB}.py -v