comparison service/arduinoNode/tasks.py @ 623:048a8df60e2e

fix pushconfig host lookup Ignore-this: d53a114fdfb3bd3bf355a0c7293a1c7b
author drewp@bigasterisk.com
date Wed, 07 Aug 2019 21:06:46 -0700
parents 686079900c20
children a93fbf0d0daa
comparison
equal deleted inserted replaced
622:4880a9868673 623:048a8df60e2e
21 def local_run(ctx): 21 def local_run(ctx):
22 ctx.run(f'docker run --name={JOB}_local --rm -it -p 9059:9059 --device=/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0 --net=host --dns 10.2.0.1 --dns-search bigasterisk.com {TAG} python ./arduinoNode.py -v', pty=True) 22 ctx.run(f'docker run --name={JOB}_local --rm -it -p 9059:9059 --device=/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0 --net=host --dns 10.2.0.1 --dns-search bigasterisk.com {TAG} python ./arduinoNode.py -v', pty=True)
23 23
24 @task 24 @task
25 def push_config(ctx): 25 def push_config(ctx):
26 ctx.run(f'docker run --rm --net=host -v `pwd`/config:/opt/config bang6:5000/arduino_node python pushConfig.py arduino/') 26 ctx.run(f'docker run --rm --net=host --dns 10.2.0.1 --dns-search bigasterisk.com -v `pwd`/config:/opt/config bang6:5000/arduino_node python pushConfig.py arduino/')
27 27
28 @task(pre=[push_image]) 28 @task(pre=[push_image])
29 def redeploy(ctx): 29 def redeploy(ctx):
30 ctx.run(f'sudo /my/proj/ansible/playbook -l bang -t {ANSIBLE_TAG}') 30 ctx.run(f'sudo /my/proj/ansible/playbook -l bang -t {ANSIBLE_TAG}')
31 31