Mercurial > code > home > repos > homeauto
diff service/reasoning/tasks.py @ 722:a93fbf0d0daa
dep updates; graph url renames; and other build updates
Ignore-this: 4603ef3d8db650a13e543dad8580ade8
author | drewp@bigasterisk.com |
---|---|
date | Wed, 05 Feb 2020 00:23:06 -0800 |
parents | 62171aa2bc4e |
children | f3f667769aef |
line wrap: on
line diff
--- a/service/reasoning/tasks.py Wed Feb 05 00:22:48 2020 -0800 +++ b/service/reasoning/tasks.py Wed Feb 05 00:23:06 2020 -0800 @@ -15,15 +15,22 @@ @task def shell(ctx): - ctx.run(f'docker run --rm -it --cap-add SYS_PTRACE -v `pwd`:/mnt --dns 10.2.0.1 --dns-search bigasterisk.com --net=host {TAG} /bin/bash', pty=True) + ctx.run(f'docker run --name {JOB}_shell --rm -it --cap-add SYS_PTRACE -v `pwd`:/mnt --dns 10.2.0.1 --dns-search bigasterisk.com --net=host {TAG} /bin/bash', pty=True) @task(pre=[build_image]) def local_run(ctx): - ctx.run(f'docker run --rm -it -p {PORT}:{PORT} -v `pwd`:/mnt --dns 10.2.0.1 --dns-search bigasterisk.com --net=host {TAG} python /mnt/{JOB}.py -iro', pty=True) + ctx.run(f'docker run --name {JOB}_local --rm -it ' + f'-p {PORT}:{PORT} ' + f'-v `pwd`:/mnt ' + f'-v `pwd`/index.html:/opt/index.html ' + f'--dns 10.2.0.1 --dns-search bigasterisk.com ' + f'--net=host ' + f'{TAG} ' + f'python /mnt/{JOB}.py -iro', pty=True) @task(pre=[build_image]) def local_run_mock(ctx): - ctx.run(f'docker run --rm -it -p {PORT}:{PORT} -v `pwd`:/mnt --dns 10.2.0.1 --dns-search bigasterisk.com --net=host {TAG} python /mnt/{JOB}.py -iro --mockoutput', pty=True) + ctx.run(f'docker run --name {JOB}_local_run_mock --rm -it -p {PORT}:{PORT} -v `pwd`:/mnt --dns 10.2.0.1 --dns-search bigasterisk.com --net=host {TAG} python /mnt/{JOB}.py -iro --mockoutput', pty=True) @task(pre=[push_image]) def redeploy(ctx):