annotate service/collector/tasks.py @ 754:3175fd4d0418

use local FuXi checkout of https://github.com/drewp/FuXi (and some other dep updates) Ignore-this: 7d32ca4fcf5f3064b7615c279eb10ac1
author drewp@bigasterisk.com
date Thu, 13 Feb 2020 22:58:56 -0800
parents c71e2d5f714b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
647
57c21b039aeb makefile to invoke
drewp@bigasterisk.com
parents: 595
diff changeset
1 from invoke import task
351
7716b1810d6c reasoning & collector move into docker images
drewp@bigasterisk.com
parents:
diff changeset
2
647
57c21b039aeb makefile to invoke
drewp@bigasterisk.com
parents: 595
diff changeset
3
57c21b039aeb makefile to invoke
drewp@bigasterisk.com
parents: 595
diff changeset
4 @task(pre=[build_image])
57c21b039aeb makefile to invoke
drewp@bigasterisk.com
parents: 595
diff changeset
5 def shell(ctx):
747
c71e2d5f714b build updates
drewp@bigasterisk.com
parents: 693
diff changeset
6 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)
354
818b7b410575 patch rdflib_jsonld for new rdflib
drewp@bigasterisk.com
parents: 351
diff changeset
7
647
57c21b039aeb makefile to invoke
drewp@bigasterisk.com
parents: 595
diff changeset
8 @task(pre=[build_image])
57c21b039aeb makefile to invoke
drewp@bigasterisk.com
parents: 595
diff changeset
9 def local_run(ctx):
693
be2fbdbdf549 collector: add /graphlist, plus logging updates
drewp@bigasterisk.com
parents: 647
diff changeset
10 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)