Mercurial > code > home > repos > homeauto
comparison service/store/tasks.py @ 1523:0da337780f22
dep updates; graph url renames; and other build updates
Ignore-this: 4603ef3d8db650a13e543dad8580ade8
darcs-hash:0840491cd6a4e4966f47a2abca0ed30ec434022a
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 05 Feb 2020 00:23:06 -0800 |
parents | 1dd4da407c0b |
children | 2e61abb70323 |
comparison
equal
deleted
inserted
replaced
1522:040e12a696a9 | 1523:0da337780f22 |
---|---|
17 def shell(ctx): | 17 def shell(ctx): |
18 ctx.run(f'docker run --rm -it --cap-add SYS_PTRACE -v `pwd`:/opt/homeauto_store --dns 10.2.0.1 --dns-search bigasterisk.com --net=host {TAG} /bin/bash', pty=True) | 18 ctx.run(f'docker run --rm -it --cap-add SYS_PTRACE -v `pwd`:/opt/homeauto_store --dns 10.2.0.1 --dns-search bigasterisk.com --net=host {TAG} /bin/bash', pty=True) |
19 | 19 |
20 @task(pre=[build_image]) | 20 @task(pre=[build_image]) |
21 def local_run(ctx): | 21 def local_run(ctx): |
22 ctx.run(f'docker run --rm -it -p {PORT}:{PORT} -v `pwd`:/opt/homeauto_store --dns 10.2.0.1 --dns-search bigasterisk.com --net=host {TAG} python {JOB}.py -v', pty=True) | 22 ctx.run(f'docker run --rm -it -p {PORT}:{PORT} -v `pwd`:/opt/homeauto_store --dns 10.2.0.1 --dns-search bigasterisk.com --net=host {TAG} python3 {JOB}.py -v', pty=True) |
23 | 23 |
24 @task(pre=[push_image]) | 24 @task(pre=[push_image]) |
25 def redeploy(ctx): | 25 def redeploy(ctx): |
26 ctx.run(f'supervisorctl -s http://bang:9001/ restart {JOB}_{PORT}') | 26 ctx.run(f'supervisorctl -s http://bang:9001/ restart {JOB}_{PORT}') |