annotate service/arduinoNode/makefile @ 456:12f9f1838fb5

arduinoNode: build updates, stats support, etc Ignore-this: 39386eb7644e3cf522e0f72a874eadba
author drewp@bigasterisk.com
date Sat, 20 Apr 2019 23:28:29 -0700
parents 8f5a16a55f64
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
336
5a0dd334023e docker and makefile for arduinoNode
drewp@bigasterisk.com
parents:
diff changeset
1 build_image:
5a0dd334023e docker and makefile for arduinoNode
drewp@bigasterisk.com
parents:
diff changeset
2 (cd /my/proj/homeauto/lib; tar czf /my/site/projects/rdfdb/more.tgz *.py)
5a0dd334023e docker and makefile for arduinoNode
drewp@bigasterisk.com
parents:
diff changeset
3 docker build --network=host -t bang6:5000/arduino_node .
5a0dd334023e docker and makefile for arduinoNode
drewp@bigasterisk.com
parents:
diff changeset
4 docker push bang6:5000/arduino_node
5a0dd334023e docker and makefile for arduinoNode
drewp@bigasterisk.com
parents:
diff changeset
5
456
12f9f1838fb5 arduinoNode: build updates, stats support, etc
drewp@bigasterisk.com
parents: 383
diff changeset
6 shell: build_image
383
8f5a16a55f64 various docker setups and build fixes
drewp@bigasterisk.com
parents: 343
diff changeset
7 docker run -it --net=host -v `pwd`/config:/opt/config bang6:5000/arduino_node /bin/bash
336
5a0dd334023e docker and makefile for arduinoNode
drewp@bigasterisk.com
parents:
diff changeset
8
456
12f9f1838fb5 arduinoNode: build updates, stats support, etc
drewp@bigasterisk.com
parents: 383
diff changeset
9 local_run: build_image
336
5a0dd334023e docker and makefile for arduinoNode
drewp@bigasterisk.com
parents:
diff changeset
10 docker run -it -p 9059:9059 --device=/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0 --net=host bang6:5000/arduino_node python ./arduinoNode.py -v
343
13b2a61650c1 fix pushconfig
drewp@bigasterisk.com
parents: 336
diff changeset
11
13b2a61650c1 fix pushconfig
drewp@bigasterisk.com
parents: 336
diff changeset
12 push_config:
383
8f5a16a55f64 various docker setups and build fixes
drewp@bigasterisk.com
parents: 343
diff changeset
13 docker run -it --net=host -v `pwd`/config:/opt/config bang6:5000/arduino_node python pushConfig.py arduino/
456
12f9f1838fb5 arduinoNode: build updates, stats support, etc
drewp@bigasterisk.com
parents: 383
diff changeset
14
12f9f1838fb5 arduinoNode: build updates, stats support, etc
drewp@bigasterisk.com
parents: 383
diff changeset
15 lightsout:
12f9f1838fb5 arduinoNode: build updates, stats support, etc
drewp@bigasterisk.com
parents: 383
diff changeset
16 curl http://bang:9059/output\?s\=http://projects.bigasterisk.com/room/speakersStrips\&p\=http://projects.bigasterisk.com/room/x -XPUT -d 199
12f9f1838fb5 arduinoNode: build updates, stats support, etc
drewp@bigasterisk.com
parents: 383
diff changeset
17
12f9f1838fb5 arduinoNode: build updates, stats support, etc
drewp@bigasterisk.com
parents: 383
diff changeset
18 redeploy: build_image
12f9f1838fb5 arduinoNode: build updates, stats support, etc
drewp@bigasterisk.com
parents: 383
diff changeset
19 ctl restart arduinoNodeBang_9059