Mercurial > code > home > repos > homeauto
comparison lib/patchablegraph/tasks.py @ 1511:9733063421e1
add browser_test server for playing with /graph resource
Ignore-this: 6112c234b93e0fb99ffe918a022e5a49
darcs-hash:fa614cb62e50d73e2e2f02ad79ec4c497cea8cbc
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 03 Feb 2020 23:45:15 -0800 |
parents | 43791ec0beb2 |
children | d98c3ffe7144 |
comparison
equal
deleted
inserted
replaced
1510:2b6e939c8b10 | 1511:9733063421e1 |
---|---|
5 from release import local_release | 5 from release import local_release |
6 | 6 |
7 @task | 7 @task |
8 def release(ctx): | 8 def release(ctx): |
9 local_release(ctx) | 9 local_release(ctx) |
10 | |
11 @task | |
12 def browser_test_build(ctx): | |
13 ctx.run(f'docker build --network=host -t bang:5000/patchable_graph_browser_test .') | |
14 | |
15 @task(pre=[browser_test_build]) | |
16 def browser_test(ctx): | |
17 ctx.run(f'docker run ' | |
18 f'--name patchable_graph_browser_test ' | |
19 f'--rm -it ' | |
20 f'--net=host ' | |
21 f'-v `pwd`:/opt ' | |
22 f'bang:5000/patchable_graph_browser_test ' | |
23 f'/bin/bash' #f'python3 browser_test.py', | |
24 pty=True) |