[buildout] extends = ../../component/bash/buildout.cfg ../../component/cloud9/buildout.cfg ../../component/curl/buildout.cfg ../../component/dash/buildout.cfg ../../component/dropbear/buildout.cfg ../../component/git/buildout.cfg ../../component/lxml-python/buildout.cfg ../../component/nginx/buildout.cfg ../../component/rsync/buildout.cfg ../../component/python-2.7/buildout.cfg ../../component/shellinabox/buildout.cfg ../../component/busybox/buildout.cfg ../../stack/flask.cfg ../../stack/shacache-client.cfg ../../stack/resilient/buildout.cfg ../../stack/slapos.cfg parts = template eggs nginx simple-proxy node-frontend-template http-proxy npm-modules instance-runner-import instance-runner-export slapos-cookbook slapos-cfg-template # XXX: we have to manually add this for resilience rdiff-backup collective.recipe.template-egg # shellinabox #################### ## Node JS proxy #################### [simple-proxy] recipe = slapos.recipe.download url = ${:_profile_base_location_}/simple-proxy.js location = ${buildout:parts-directory}/${:_buildout_section_name_} md5sum = 86e2231b3f65587b56d9be63e21a4e05 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 md5sum = 72904152860dddb30ca936dac5bbf4cd mode = 0644 [http-proxy] # https://github.com/nodejitsu/node-http-proxy recipe = slapos.recipe.build:download-unpacked #XXX-Cedric : use upstream when merged url = https://github.com/desaintmartin/node-http-proxy/archive/20120621.zip md5sum = 621e5fca448cbea137c5d847d780d84d [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 [template] recipe = slapos.recipe.template url = ${:_profile_base_location_}/instance.cfg output = ${buildout:directory}/template.cfg md5sum = eab09d6d6d1eedb6dde271e0f52ceca8 mode = 0644 [template-runner] recipe = slapos.recipe.template url = ${:_profile_base_location_}/instance-runner.cfg output = ${buildout:directory}/template-runner.cfg #md5sum = 77cd9bfc7887ab53c8d3b530d2f753eb 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 #md5sum = f16cb60bb16632e652bea69cd5cdd9b7 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 #md5sum = 7e71622c09271790b5cef21c8613b8ac mode = 0644 [template-resilient] recipe = slapos.recipe.download url = ${:_profile_base_location_}/instance-resilient.cfg.jinja2 md5sum = ed9040fe86e54c7b39baa3084c03bcd2 filename = instance-resilient.cfg.jinja2 mode = 0644 [template-resilient-test] recipe = hexagonit.recipe.download url = ${:_profile_base_location_}/instance-resilient-test.cfg.jinja2 download-only = true md5sum = ac772d3a1cce4072acfabd563df449bb filename = instance-resilient-test.cfg.jinja2 mode = 0644 [template_nginx_conf] recipe = hexagonit.recipe.download url = ${:_profile_base_location_}/nginx_conf.in download-only = true md5sum = 6d4a33db024b069778006f8c1da8c0aa filename = nginx_conf.in mode = 0644 [template_launcher] recipe = slapos.recipe.download url = ${:_profile_base_location_}/launcher.in md5sum = c7f8b6e9ae84aa94686a9cbaaa3dd693 filename = launcher.in mode = 0644 location = ${buildout:parts-directory}/${:_buildout_section_name_} [slapos-cfg-template] recipe = hexagonit.recipe.download url = ${:_profile_base_location_}/template/${:filename} md5sum = 6e90b4d037ba549640345827370f8dc3 location = ${buildout:parts-directory}/${:_buildout_section_name_} filename = slapos.cfg.in download-only = true mode = 0644 [eggs] recipe = z3c.recipe.scripts eggs = ${lxml-python:egg} cns.recipe.symlink erp5.util hexagonit.recipe.download inotifyx lock-file netaddr slapos.cookbook slapos.libnetworkcache slapos.toolbox[flask_auth] slapos.core xml_marshaller pytz collective.recipe.environment Gunicorn # 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