comparison service/wifi/tasks.py @ 662:540dd68af9f2

start ts config files, but this doesn't share the streamed-graph code properly yet Ignore-this: ef4e6fdf3369939b062caa5fdc2788e9
author drewp@bigasterisk.com
date Tue, 17 Dec 2019 23:16:53 -0800
parents d0830394bf7b
children f424809cba8d
comparison
equal deleted inserted replaced
661:c420c96972c1 662:540dd68af9f2
16 def shell(ctx): 16 def shell(ctx):
17 ctx.run(f'docker run --name {JOB}_shell --rm -it --cap-add SYS_PTRACE --net=host {TAG} /bin/bash', pty=True) 17 ctx.run(f'docker run --name {JOB}_shell --rm -it --cap-add SYS_PTRACE --net=host {TAG} /bin/bash', pty=True)
18 18
19 @task(pre=[build_image]) 19 @task(pre=[build_image])
20 def local_run(ctx): 20 def local_run(ctx):
21 ctx.run(f'docker run --name {JOB}_local --rm -it --net=host {TAG} python3 wifi.py -v', pty=True) 21 ctx.run(f'docker run --name {JOB}_local --rm -it --net=host -v `pwd`:/opt {TAG} python3 wifi.py -v', pty=True)
22 22
23 @task(pre=[push_image]) 23 @task(pre=[push_image])
24 def redeploy(ctx): 24 def redeploy(ctx):
25 ctx.run(f'supervisorctl -s http://bang:9001/ restart {JOB}_{PORT}') 25 ctx.run(f'supervisorctl -s http://bang:9001/ restart {JOB}_{PORT}')
26
27
28 # one time:
29 # yarn policies set-version v2
30 # and for vscode:
31 # yarn pnpify --sdk
32 # then pick the pnp one on statusbar.
33
34 #yarn run webpack-cli --config webpack.config.js --mode production
35
36
37 @task
38 def build(ctx):
39 ctx.run(f'yarn webpack-build', pty=True) # --debug --display-error-details
40
41 @task
42 def serve_demo(ctx):
43 ctx.run('node_modules/.bin/webpack-dev-server --config webpack-dev.config.ts --port 8082 --verbose --color')