view service/collector/tasks.py @ 1549:5a04e8cd1cd7

update to many new named graphs Ignore-this: a887bdab7b280cb5f7dbf2ab59982eaa darcs-hash:daa39990e8fb5d5a45fa990a9e0bd8a73aee5927
author drewp <drewp@bigasterisk.com>
date Thu, 13 Feb 2020 10:22:12 -0800
parents 89e1bcc02552
children
line wrap: on
line source

from invoke import task


@task(pre=[build_image])
def shell(ctx):
    ctx.run(f'docker run --rm --name={JOB}_shell -v `pwd`/.mypy_cache:/opt/.mypy_cache -v `pwd`/../../stubs:/opt/stubs -v `pwd`/sse_collector.py:/opt/sse_collector.py  --net=host {TAG_x86} /bin/bash', pty=True)

@task(pre=[build_image])
def local_run(ctx):
    ctx.run(f'docker run --rm -it -p {PORT}:{PORT} --net=host --cap-add SYS_PTRACE --dns 10.2.0.1 --dns-search bigasterisk.com -v `pwd`/static:/opt/static {TAG_x86} python3 sse_collector.py -i', pty=True)