Mercurial > code > home > repos > homeauto
annotate lib/patchablegraph/tasks.py @ 1522:040e12a696a9
influx host name; reformat
Ignore-this: cf8651143d3459e64aefa51da973c54e
darcs-hash:1e4b44bdb36d68876a443ed255b71de3608356d9
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 05 Feb 2020 00:22:48 -0800 |
parents | c829df2b0dd5 |
children |
rev | line source |
---|---|
1317 | 1 from invoke import task |
2 | |
3 import sys | |
4 sys.path.append('/my/proj/release') | |
5 from release import local_release | |
6 | |
7 @task | |
8 def release(ctx): | |
9 local_release(ctx) | |
1511
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
10 |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
11 @task |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
12 def browser_test_build(ctx): |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
13 ctx.run(f'docker build --network=host -t bang:5000/patchable_graph_browser_test .') |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
14 |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
15 @task(pre=[browser_test_build]) |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
16 def browser_test(ctx): |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
17 ctx.run(f'docker run ' |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
18 f'--name patchable_graph_browser_test ' |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
19 f'--rm -it ' |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
20 f'--net=host ' |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
21 f'-v `pwd`:/opt ' |
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
22 f'bang:5000/patchable_graph_browser_test ' |
1513
c829df2b0dd5
new graph output for browsers, with autorefresh
drewp <drewp@bigasterisk.com>
parents:
1511
diff
changeset
|
23 f'/bin/bash', #f'python3 browser_test.py', |
1511
9733063421e1
add browser_test server for playing with /graph resource
drewp <drewp@bigasterisk.com>
parents:
1317
diff
changeset
|
24 pty=True) |