Update request Boinc-application to use Json parameter
[slapos.git] / software / boinc / software.cfg
1 [buildout]
2
3 # Local development
4 develop =
5   ${:parts-directory}/slapos.cookbook-repository
6
7 parts = 
8   template
9   application
10   template_wu
11   template_result
12   template_input
13   slapos-cookbook
14   instance-egg
15   slapos.cookbook-repository
16   check-recipe
17
18 extends =
19   ../../component/git/buildout.cfg
20   ../../stack/boinc/buildout.cfg
21
22 #Generate All instances templates
23
24 [template]
25 recipe = slapos.recipe.template
26 url = ${:_profile_base_location_}/instance.cfg
27 output = ${buildout:directory}/template.cfg
28 mode = 0644
29 md5sum = 4a286795a6822ee6d53743191d5374a6
30
31 #Download Boinc Application Binary and configure project
32 [application]
33 recipe = hexagonit.recipe.download
34 url = ${boinc:location}/libexec/examples/upper_case
35 download-only = true
36 filename = upper_case
37 #Application configuration
38 app-name = upper_case
39 version = 1.00
40
41 [template-base]
42 recipe = slapos.recipe.download
43 download-only = true
44 mode = 0644
45
46 [template_result]
47 <= template-base
48 url = ${:_profile_base_location_}/templates/template_result
49 filename = template_result
50 location = ${buildout:parts-directory}/${:_buildout_section_name_}
51 md5sum = a3f0e9fd559cadcb2f297b952f8face8
52
53 [template_wu]
54 <= template-base
55 url = ${:_profile_base_location_}/templates/template_wu
56 filename = template_wu
57 location = ${buildout:parts-directory}/${:_buildout_section_name_}
58 md5sum = 66d7ec85ce15e65d2858c11b75fb9574
59
60 [template_input]
61 <= template-base
62 url = ${:_profile_base_location_}/input/input_file
63 filename = input_file
64 location = ${buildout:parts-directory}/${:_buildout_section_name_}
65 md5sum = 6f8db599de986fab7a21625b7916589c
66
67 [boinc-application]
68 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}"}}}
69
70 [boinc-default]
71 template-result = ${template_result:location}/${template_result:filename}
72 template-wu = ${template_wu:location}/${template_wu:filename}
73 platform = x86_64-pc-linux-gnu
74 extension = 
75
76 # Local development
77 [slapos.cookbook-repository]
78 recipe = plone.recipe.command
79 stop-on-error = true
80 branch = grid-computing
81 revision =
82 location = ${buildout:parts-directory}/${:_buildout_section_name_}
83 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
84 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
85
86 [check-recipe]
87 recipe = plone.recipe.command
88 stop-on-error = true
89 update-command = ${:command}
90 command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link