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