[node-devel] How to quickly get the new UI code onto a running Node

Fabian Deutsch fabiand at redhat.com
Fri Feb 8 14:42:22 UTC 2013


Hey,

just a hint when developing on the new node ui and how to get the code
quickly onto your running node.
On your host/devel machine in your ovirt-node repo:

$ cd scripts/tui/src
$ sudo iptables -I INPUT -m tcp -p tcp --dport 8080 -j ACCEPT
$ python -m SimpleHTTPServer 8080

Now, each time you change the code significantly:
$ tar cvjf tui.tar.bz2 $(find . -name \*.py)

To get this dump inside of your Node run:
$ mount -oremount,rw /
$ cd /usr/lib/python/site-packages/
$ curl $HOSTIP:8080/tui.tar.bz2 | tar xvfj -

Repeat this each time you created a new tarball on your host.

You can now login to node on a second terminal to test the code changes.


Greetings
fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ovirt.org/pipermail/node-devel/attachments/20130208/4f7f44cb/attachment.sig>


More information about the node-devel mailing list