comparison service/arduinoNode/tasks.py @ 1426:c3c2418d138c

fix pushconfig host lookup Ignore-this: d53a114fdfb3bd3bf355a0c7293a1c7b darcs-hash:6306237a7df35fffb57f27c31a971107608f979e
author drewp <drewp@bigasterisk.com>
date Wed, 07 Aug 2019 21:06:46 -0700
parents 458355ee1b99
children 0da337780f22
comparison
equal deleted inserted replaced
1425:75aaa0547d55 1426:c3c2418d138c
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