moved bgp test harness to its own repo
[random_node_code.git] / README.md
1 Random Node.js code
2 ===================
3
4 This is a simple repo of all my random node.js code that didnt belong being a repo of its own...
5
6 In here you'll find the nodejs_lxc_template and a fake bgp daemon (really for testing bgp on various
7 routers and so forth).
8
9
10
11 nodejs_lxc_template
12 ===================
13
14 A nodejs template for lxc (linux containers) for running nodejs apps within a confined space.
15
16 Inside the virtualised container, there is only two binaries - nodejs and "ip", everything else is a nodejs
17 script.
18
19 Startup (init) is handle by a nodejs script that sets the ip address/route/dns info based on a config file
20
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
23 container.
24
25
26 How It Works
27 ============
28
29 The nodejs template currently doesnt work as it stands but in the long term what it will do is:
30
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
36 6) ... magic!
37