4 This is a simple repo of all my random node.js code that didnt belong being a repo of its own...
6 In here you'll find the nodejs_lxc_template and a fake bgp daemon (really for testing bgp on various
14 A nodejs template for lxc (linux containers) for running nodejs apps within a confined space.
16 Inside the virtualised container, there is only two binaries - nodejs and "ip", everything else is a nodejs
19 Startup (init) is handle by a nodejs script that sets the ip address/route/dns info based on a config file
21 Apps are then put into the container by adding them to the /node_base directory, the init script will then
22 read the /node_base/appconfig file to determine which app's it needs to start (and keep running) inside the
29 The nodejs template currently doesnt work as it stands but in the long term what it will do is:
31 1) create a container by downloading a nodejs binary from the nodejs site (or from a supplied file)
32 2) install the "ip" command (for interface/route setup)
33 3) setup the base structure for the container
34 4) install the node binary
35 5) setup the init nodejs script
45 simple implementation of the bgp protocol stack - set your ip address and your AS and it'll publish a
46 number of prefixes (can be changed part way down the code - up to about a million prefixes works without