common.cfg 5.13 KB
Newer Older
1 2
[buildout]
extends =
3
  ../../component/bash/buildout.cfg
4
  ../../component/busybox/buildout.cfg
5
  ../../component/cloud9/buildout.cfg
6
  ../../component/curl/buildout.cfg
7 8 9 10
  ../../component/dash/buildout.cfg
  ../../component/dropbear/buildout.cfg
  ../../component/git/buildout.cfg
  ../../component/lxml-python/buildout.cfg
11
  ../../component/nano/buildout.cfg
12
  ../../component/nginx/buildout.cfg
13
  ../../component/rsync/buildout.cfg
14
  ../../component/python-2.7/buildout.cfg
15
  ../../component/screen/buildout.cfg
16
  ../../component/shellinabox/buildout.cfg
17
  ../../component/vim/buildout.cfg
18 19
  ../../stack/flask.cfg
  ../../stack/shacache-client.cfg
20
  ../../stack/resilient/buildout.cfg
21 22 23 24 25
  ../../stack/slapos.cfg

parts =
  template
  eggs
26
  nginx
27 28 29 30
  simple-proxy
  node-frontend-template
  http-proxy
  npm-modules
31 32
  instance-runner-import
  instance-runner-export
33
  slapos-cookbook
34
  slapos-cfg-template 
35 36 37
# XXX: we have to manually add this for resilience
  rdiff-backup
  collective.recipe.template-egg
38

39 40 41 42 43 44 45
####################
## Node JS proxy
####################
[simple-proxy]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/simple-proxy.js
location = ${buildout:parts-directory}/${:_buildout_section_name_}
Cédric Le Ninivin's avatar
Cédric Le Ninivin committed
46
md5sum = 86e2231b3f65587b56d9be63e21a4e05
47 48 49 50 51 52 53 54
filename = simple-proxy.js
mode = 0644

[node-frontend-template]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/node-frontend.in
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = node-frontend.in
Cédric Le Ninivin's avatar
Cédric Le Ninivin committed
55
md5sum = 72904152860dddb30ca936dac5bbf4cd
56 57 58 59 60 61
mode = 0644

[http-proxy]
# https://github.com/nodejitsu/node-http-proxy
recipe = slapos.recipe.build:download-unpacked
#XXX-Cedric : use upstream when merged
62
url = https://github.com/desaintmartin/node-http-proxy/archive/20120621.zip
63
md5sum = 621e5fca448cbea137c5d847d780d84d
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80

[npm-modules]
recipe = plone.recipe.command
destination = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
command =
  export HOME=${:location};
  rm -fr ${:destination} &&
  mkdir -p ${:destination} &&
  cd ${:destination} &&
  ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install colors@0.6.0-1 &&
  ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io@0.8.7 &&
  ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install socket.io-client@0.8.7 &&
  ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install optimist@0.3.1 &&
  ${nodejs:location}/bin/node ${nodejs:location}/bin/npm install pkginfo@0.2.3


81 82 83 84
[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/template.cfg
85
md5sum = 8a47421ac6158b4ee476acab212c67d9
86 87 88 89 90
mode = 0644

[template-runner]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-runner.cfg
91
output = ${buildout:directory}/template-runner.cfg.in
92
md5sum = 098ec22334dc6d0cd8fe747e733c86d8
93 94 95 96 97 98
mode = 0644

[instance-runner-import]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-runner-import.cfg.in
output = ${buildout:directory}/instance-runner-import.cfg
99
md5sum = 93e3c496c0955a0f7e09570bbe44e3ea
100 101 102 103 104 105
mode = 0644

[instance-runner-export]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-runner-export.cfg.in
output = ${buildout:directory}/instance-runner-export.cfg
106
md5sum = 3a69ef9a2743dbb4ab0708a7675d100c
107 108
mode = 0644

109 110 111
[template-resilient]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
112
md5sum = 932c506779cef5b20576a57d97877742
113 114 115
filename = instance-resilient.cfg.jinja2
mode = 0644

116
[template-resilient-test]
117
recipe = hexagonit.recipe.download
118
url = ${:_profile_base_location_}/instance-resilient-test.cfg.jinja2
119
download-only = true
120
md5sum = 18269f9c88f9c3bb1c2b535e44f64f56
121 122 123
filename = instance-resilient-test.cfg.jinja2
mode = 0644

124
[template_nginx_conf]
125
recipe = hexagonit.recipe.download
126
url = ${:_profile_base_location_}/nginx_conf.in
127
download-only = true
128
md5sum = e169a8f217fab490ffb435d4b2d07ef3
129 130 131 132 133 134
filename = nginx_conf.in
mode = 0644

[template_launcher]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/launcher.in
Cédric Le Ninivin's avatar
Cédric Le Ninivin committed
135
md5sum = c7f8b6e9ae84aa94686a9cbaaa3dd693
136 137 138 139
filename = launcher.in
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}

140 141 142
[slapos-cfg-template]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/${:filename}
143
md5sum = 6e90b4d037ba549640345827370f8dc3
144
location = ${buildout:parts-directory}/${:_buildout_section_name_}
Nicolas Wavrant's avatar
Nicolas Wavrant committed
145
filename = slapos.cfg.in 
146 147 148
download-only = true
mode = 0644

149 150 151 152
[eggs]
recipe = z3c.recipe.scripts
eggs =
  ${lxml-python:egg}
153
  cns.recipe.symlink
154
  erp5.util
155 156
  hexagonit.recipe.download
  inotifyx
157
  lock-file
158
  netaddr
159
  slapos.cookbook
160 161 162
  slapos.libnetworkcache
  slapos.toolbox[flask_auth]
  slapos.core
163 164
  xml_marshaller
  pytz
165 166
  collective.recipe.environment
  Gunicorn
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183

# Add slapos.libnetworkcache to path of slapos.core so that slaprunner can build SRs using cache
[slapos-cookbook]
eggs =
  ${lxml-python:egg}
  slapos.cookbook
  cliff
  hexagonit.recipe.download
  inotifyx
  netaddr
  netifaces
  requests
  slapos.core
  supervisor
  xml_marshaller
  pytz
  slapos.libnetworkcache