common.cfg 4.51 KB
Newer Older
1 2
[buildout]
extends =
3
  ../../component/bash/buildout.cfg
4
  ../../component/cloud9/buildout.cfg
5
  ../../component/curl/buildout.cfg
6 7 8 9
  ../../component/dash/buildout.cfg
  ../../component/dropbear/buildout.cfg
  ../../component/git/buildout.cfg
  ../../component/lxml-python/buildout.cfg
10
  ../../component/nginx/buildout.cfg
11
  ../../component/rsync/buildout.cfg
12 13
  ../../stack/flask.cfg
  ../../stack/shacache-client.cfg
14
  ../../stack/resilient/buildout.cfg
15 16 17 18 19
  ../../stack/slapos.cfg

parts =
  template
  eggs
20
  nginx
21 22 23 24
  simple-proxy
  node-frontend-template
  http-proxy
  npm-modules
25 26
  instance-runner-import
  instance-runner-export
27
  slapos-cookbook
28

29 30 31 32
# XXX: we have to manually add this for resilience
  rdiff-backup
  collective.recipe.template-egg

33 34 35 36 37 38 39
####################
## 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
40
md5sum = 86e2231b3f65587b56d9be63e21a4e05
41 42 43 44 45 46 47 48
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
49
md5sum = 72904152860dddb30ca936dac5bbf4cd
50 51 52 53 54 55
mode = 0644

[http-proxy]
# https://github.com/nodejitsu/node-http-proxy
recipe = slapos.recipe.build:download-unpacked
#XXX-Cedric : use upstream when merged
56
url = https://github.com/desaintmartin/node-http-proxy/archive/20120621.zip
57
md5sum = 621e5fca448cbea137c5d847d780d84d
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74

[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


75 76 77 78
[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/template.cfg
79
md5sum = 92a2f3bcd5ff79e3b61ca4a8bacb73ec
80 81 82 83 84 85
mode = 0644

[template-runner]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-runner.cfg
output = ${buildout:directory}/template-runner.cfg
86
md5sum = bcd1ee4dd126d2c6e9461f7753fc83b7
87 88 89 90 91 92
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
Cédric Le Ninivin's avatar
Cédric Le Ninivin committed
93
md5sum = f16cb60bb16632e652bea69cd5cdd9b7
94 95 96 97 98 99
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
100
md5sum = 9ce3482e64a0c957f7a5f25ad0dc03ae
101 102
mode = 0644

103 104 105
[template-resilient]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
106
md5sum = 2562a6ac6893cc71a7328d7064aff599
107 108 109
filename = instance-resilient.cfg.jinja2
mode = 0644

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

117 118 119
[template_nginx_conf]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/nginx_conf.in
Cédric Le Ninivin's avatar
Cédric Le Ninivin committed
120
md5sum = 09b7677dfc6b23c1f58e67fd06a7625e
121 122 123 124 125 126
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
127
md5sum = c7f8b6e9ae84aa94686a9cbaaa3dd693
128 129 130 131
filename = launcher.in
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}

132 133 134 135
[eggs]
recipe = z3c.recipe.scripts
eggs =
  ${lxml-python:egg}
136
  cns.recipe.symlink
137
  erp5.util
138 139
  hexagonit.recipe.download
  inotifyx
140
  lock-file
141
  netaddr
142
  slapos.cookbook
143 144 145
  slapos.libnetworkcache
  slapos.toolbox[flask_auth]
  slapos.core
146 147
  xml_marshaller
  pytz
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165

# 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