just a bit of info added to the readme
[random_node_code.git] / README.md
1 nodejs_lxc_template
2 ===================
3
4 A nodejs template for lxc (linux containers) for running nodejs apps within a confined space.
5
6 Inside the virtualised container, there is only two binaries - nodejs and "ip", everything else is a nodejs
7 script.
8
9 Startup (init) is handle by a nodejs script that sets the ip address/route/dns info based on a config file
10
11 Apps are then put into the container by adding them to the /node_base directory, the init script will then
12 read the /node_base/appconfig file to determine which app's it needs to start (and keep running) inside the
13 container.
14
15
16 How It Works
17 ============
18
19 The nodejs template currently doesnt work as it stands but in the long term what it will do is:
20
21 1) create a container by downloading a nodejs binary from the nodejs site (or from a supplied file)
22 2) install the "ip" command (for interface/route setup)
23 3) setup the base structure for the container
24 4) install the node binary
25 5) setup the init nodejs script
26 6) ... magic!