comparison 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
comparison
equal deleted inserted replaced
1162:52960ea4dfa6 1163:fa55bc09b396
1 JOB=tradfri
2 PORT=10009
3
4 TAG=bang6:5000/${JOB}_x86:latest
5
6 build_image:
7 rm -rf tmp_ctx
8 mkdir -p tmp_ctx
9 cp -a Dockerfile ../../lib/*.py *.py req* pytradfri libcoap tmp_ctx
10 docker build --network=host -t ${TAG} tmp_ctx
11 docker push ${TAG}
12 rm -rf tmp_ctx
13
14 shell:
15 docker run --rm -it --cap-add SYS_PTRACE --net=host ${TAG} /bin/bash
16
17 local_run:
18 docker run --rm -it -p ${PORT}:${PORT} \
19 -v `pwd`:/mnt \
20 --net=host \
21 ${TAG} \
22 python /mnt/${JOB}.py -v
23
24 local_run_strace:
25 docker run --rm -it -p ${PORT}:${PORT} \
26 -v `pwd`:/mnt \
27 --net=host \
28 --cap-add SYS_PTRACE \
29 ${TAG} \
30 strace -f -tts 200 python /mnt/${JOB}.py -v