slaprunner: added nano component
[slapos.git] / software / slaprunner / common.cfg
1 [buildout]
2 extends =
3   ../../component/bash/buildout.cfg
4   ../../component/cloud9/buildout.cfg
5   ../../component/curl/buildout.cfg
6   ../../component/dash/buildout.cfg
7   ../../component/dropbear/buildout.cfg
8   ../../component/git/buildout.cfg
9   ../../component/lxml-python/buildout.cfg
10   ../../component/nano/buildout.cfg
11   ../../component/nginx/buildout.cfg
12   ../../component/rsync/buildout.cfg
13   ../../component/python-2.7/buildout.cfg
14   ../../component/shellinabox/buildout.cfg
15   ../../component/busybox/buildout.cfg
16   ../../component/vim/buildout.cfg
17   ../../stack/flask.cfg
18   ../../stack/shacache-client.cfg
19   ../../stack/resilient/buildout.cfg
20   ../../stack/slapos.cfg
21
22 parts =
23   template
24   eggs
25   nginx
26   simple-proxy
27   node-frontend-template
28   http-proxy
29   npm-modules
30   instance-runner-import
31   instance-runner-export
32   slapos-cookbook
33   slapos-cfg-template 
34 # XXX: we have to manually add this for resilience
35   rdiff-backup
36   collective.recipe.template-egg
37
38 ####################
39 ## Node JS proxy
40 ####################
41 [simple-proxy]
42 recipe = slapos.recipe.download
43 url = ${:_profile_base_location_}/simple-proxy.js
44 location = ${buildout:parts-directory}/${:_buildout_section_name_}
45 md5sum = 86e2231b3f65587b56d9be63e21a4e05
46 filename = simple-proxy.js
47 mode = 0644
48
49 [node-frontend-template]
50 recipe = slapos.recipe.download
51 url = ${:_profile_base_location_}/node-frontend.in
52 location = ${buildout:parts-directory}/${:_buildout_section_name_}
53 filename = node-frontend.in
54 md5sum = 72904152860dddb30ca936dac5bbf4cd
55 mode = 0644
56
57 [http-proxy]
58 # https://github.com/nodejitsu/node-http-proxy
59 recipe = slapos.recipe.build:download-unpacked
60 #XXX-Cedric : use upstream when merged
61 url = https://github.com/desaintmartin/node-http-proxy/archive/20120621.zip
62 md5sum = 621e5fca448cbea137c5d847d780d84d
63
64 [npm-modules]
65 recipe = plone.recipe.command
66 destination = ${buildout:parts-directory}/${:_buildout_section_name_}
67 location = ${buildout:parts-directory}/${:_buildout_section_name_}
68 command =
69   export HOME=${:location};
70   rm -fr ${:destination} &&
71   mkdir -p ${:destination} &&
72   cd ${:destination} &&
73   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install colors@0.6.0-1 &&
74   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io@0.8.7 &&
75   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io-client@0.8.7 &&
76   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install optimist@0.3.1 &&
77   ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install pkginfo@0.2.3
78
79
80 [template]
81 recipe = slapos.recipe.template
82 url = ${:_profile_base_location_}/instance.cfg
83 output = ${buildout:directory}/template.cfg
84 md5sum = 8a47421ac6158b4ee476acab212c67d9
85 mode = 0644
86
87 [template-runner]
88 recipe = slapos.recipe.template
89 url = ${:_profile_base_location_}/instance-runner.cfg
90 output = ${buildout:directory}/template-runner.cfg.in
91 md5sum = 1f9eab472f29600f341cfac61d155ad3
92 mode = 0644
93
94 [instance-runner-import]
95 recipe = slapos.recipe.template
96 url = ${:_profile_base_location_}/instance-runner-import.cfg.in
97 output = ${buildout:directory}/instance-runner-import.cfg
98 md5sum = 93e3c496c0955a0f7e09570bbe44e3ea
99 mode = 0644
100
101 [instance-runner-export]
102 recipe = slapos.recipe.template
103 url = ${:_profile_base_location_}/instance-runner-export.cfg.in
104 output = ${buildout:directory}/instance-runner-export.cfg
105 md5sum = 3a69ef9a2743dbb4ab0708a7675d100c
106 mode = 0644
107
108 [template-resilient]
109 recipe = slapos.recipe.download
110 url = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
111 md5sum = 932c506779cef5b20576a57d97877742
112 filename = instance-resilient.cfg.jinja2
113 mode = 0644
114
115 [template-resilient-test]
116 recipe = hexagonit.recipe.download
117 url = ${:_profile_base_location_}/instance-resilient-test.cfg.jinja2
118 download-only = true
119 md5sum = 18269f9c88f9c3bb1c2b535e44f64f56
120 filename = instance-resilient-test.cfg.jinja2
121 mode = 0644
122
123 [template_nginx_conf]
124 recipe = hexagonit.recipe.download
125 url = ${:_profile_base_location_}/nginx_conf.in
126 download-only = true
127 md5sum = e169a8f217fab490ffb435d4b2d07ef3
128 filename = nginx_conf.in
129 mode = 0644
130
131 [template_launcher]
132 recipe = slapos.recipe.download
133 url = ${:_profile_base_location_}/launcher.in
134 md5sum = c7f8b6e9ae84aa94686a9cbaaa3dd693
135 filename = launcher.in
136 mode = 0644
137 location = ${buildout:parts-directory}/${:_buildout_section_name_}
138
139 [slapos-cfg-template]
140 recipe = hexagonit.recipe.download
141 url = ${:_profile_base_location_}/template/${:filename}
142 md5sum = 6e90b4d037ba549640345827370f8dc3
143 location = ${buildout:parts-directory}/${:_buildout_section_name_}
144 filename = slapos.cfg.in 
145 download-only = true
146 mode = 0644
147
148 [eggs]
149 recipe = z3c.recipe.scripts
150 eggs =
151   ${lxml-python:egg}
152   cns.recipe.symlink
153   erp5.util
154   hexagonit.recipe.download
155   inotifyx
156   lock-file
157   netaddr
158   slapos.cookbook
159   slapos.libnetworkcache
160   slapos.toolbox[flask_auth]
161   slapos.core
162   xml_marshaller
163   pytz
164   collective.recipe.environment
165   Gunicorn
166
167 # Add slapos.libnetworkcache to path of slapos.core so that slaprunner can build SRs using cache
168 [slapos-cookbook]
169 eggs =
170   ${lxml-python:egg}
171   slapos.cookbook
172   cliff
173   hexagonit.recipe.download
174   inotifyx
175   netaddr
176   netifaces
177   requests
178   slapos.core
179   supervisor
180   xml_marshaller
181   pytz
182   slapos.libnetworkcache