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