common.cfg 5.09 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
  ../../component/python-2.7/buildout.cfg
13
  ../../component/shellinabox/buildout.cfg
14
  ../../component/busybox/buildout.cfg
15 16
  ../../stack/flask.cfg
  ../../stack/shacache-client.cfg
17
  ../../stack/resilient/buildout.cfg
18 19 20 21 22
  ../../stack/slapos.cfg

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

develop =
  /opt/slapos.toolbox/
  /opt/slaprunner/
40

41

42 43 44 45 46 47 48
####################
## 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
49
md5sum = 86e2231b3f65587b56d9be63e21a4e05
50 51 52 53 54 55 56 57
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
58
md5sum = 72904152860dddb30ca936dac5bbf4cd
59 60 61 62 63 64
mode = 0644

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

[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


84 85 86 87
[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/template.cfg
88
md5sum = eab09d6d6d1eedb6dde271e0f52ceca8
89 90 91 92 93 94
mode = 0644

[template-runner]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-runner.cfg
output = ${buildout:directory}/template-runner.cfg
95
#md5sum = 77cd9bfc7887ab53c8d3b530d2f753eb
96 97 98 99 100 101
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
102
#md5sum = f16cb60bb16632e652bea69cd5cdd9b7
103 104 105 106 107 108
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
109
#md5sum = 7e71622c09271790b5cef21c8613b8ac
110 111
mode = 0644

112 113 114
[template-resilient]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
115
md5sum = 2562a6ac6893cc71a7328d7064aff599
116 117 118
filename = instance-resilient.cfg.jinja2
mode = 0644

119
[template-resilient-test]
120
recipe = hexagonit.recipe.download
121
url = ${:_profile_base_location_}/instance-resilient-test.cfg.jinja2
122
download-only = true
Nicolas Wavrant's avatar
Nicolas Wavrant committed
123
md5sum = 77083db418d86a4b8732170f320a5dc7
124 125 126
filename = instance-resilient-test.cfg.jinja2
mode = 0644

127
[template_nginx_conf]
128
recipe = hexagonit.recipe.download
129
url = ${:_profile_base_location_}/nginx_conf.in
130
download-only = true
131
md5sum = 24c8f0568d8e4e251319326394e13612
132 133 134 135 136 137
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
138
md5sum = c7f8b6e9ae84aa94686a9cbaaa3dd693
139 140 141 142
filename = launcher.in
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}

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

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

# 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