[buildout] # Local development develop = ${:parts-directory}/slapos.cookbook-repository parts = template application template_wu template_result template_input slapos-cookbook instance-egg slapos.cookbook-repository check-recipe extends = ../../component/git/buildout.cfg ../../stack/boinc/buildout.cfg #Generate All instances templates [template] recipe = slapos.recipe.template url = ${:_profile_base_location_}/instance.cfg output = ${buildout:directory}/template.cfg mode = 0644 md5sum = 4a286795a6822ee6d53743191d5374a6 #Download Boinc Application Binary and configure project [application] recipe = hexagonit.recipe.download url = ${boinc:location}/libexec/examples/upper_case download-only = true filename = upper_case #Application configuration app-name = upper_case version = 1.00 [template-base] recipe = slapos.recipe.download download-only = true mode = 0644 [template_result] <= template-base url = ${:_profile_base_location_}/templates/template_result filename = template_result location = ${buildout:parts-directory}/${:_buildout_section_name_} md5sum = a3f0e9fd559cadcb2f297b952f8face8 [template_wu] <= template-base url = ${:_profile_base_location_}/templates/template_wu filename = template_wu location = ${buildout:parts-directory}/${:_buildout_section_name_} md5sum = 66d7ec85ce15e65d2858c11b75fb9574 [template_input] <= template-base url = ${:_profile_base_location_}/input/input_file filename = input_file location = ${buildout:parts-directory}/${:_buildout_section_name_} md5sum = 6f8db599de986fab7a21625b7916589c [boinc-application] app-list = {"${application:app-name}":{"${application:version}":{"use_default":true, "wu-number":2, "input-file":"${template_input:location}/${template_input:filename}", "binary":"${application:location}/${application:filename}"}}} [boinc-default] template-result = ${template_result:location}/${template_result:filename} template-wu = ${template_wu:location}/${template_wu:filename} platform = x86_64-pc-linux-gnu extension = # Local development [slapos.cookbook-repository] recipe = plone.recipe.command stop-on-error = true branch = grid-computing revision = location = ${buildout:parts-directory}/${:_buildout_section_name_} command = "${git:location}/bin/git" clone --branch "${:branch}" --quiet http://git.erp5.org/repos/slapos.git "${:location}" && if [ -n "${:revision}" ]; then cd "${:location}" && "${git:location}/bin/git" reset --quiet --hard "${:revision}" ; fi update-command = cd "${:location}" && "${git:location}/bin/git" fetch --quiet && if [ -n "${:revision}" ]; then "${git:location}/bin/git" reset --hard "${:revision}"; else "${git:location}/bin/git" reset --quiet --hard @{upstream} ; fi [check-recipe] recipe = plone.recipe.command stop-on-error = true update-command = ${:command} command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link