version up : slapos.toolbox = 0.40.1.
[slapos.git] / software / bonjourgrid / software.cfg
1 [buildout]
2
3 # Local development - to be remove
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   template-redis
14   slapos-cookbook
15   instance-egg
16   condor
17   redis
18   template-condor
19   description-file
20   executable
21   bonjourgrid-instance
22   bonjourgrid
23   slapos.cookbook-repository
24   check-recipe  
25
26 extends =
27   ../../stack/boinc/buildout.cfg
28   ../../component/condor/buildout.cfg
29   ../../component/redis/buildout.cfg
30   ../../component/git/buildout.cfg
31   ../../stack/slapos.cfg
32
33 #Generate All instances templates
34 [template]
35 recipe = slapos.recipe.template
36 url = ${:_profile_base_location_}/instance.cfg
37 output = ${buildout:directory}/template.cfg
38 mode = 0644
39 md5sum = 2f23572c39bfcedcdebdb5963aeefc38
40
41 ################################
42 ### BonjourGrid description ####
43 ################################
44 [bonjourgrid-instance]
45 recipe = slapos.recipe.template
46 url = ${:_profile_base_location_}/instance-bonjourgrid.cfg
47 output = ${buildout:directory}/template-bonjourgrid.cfg
48 mode = 0644
49 md5sum = 59cc789d6ce765d3d25f9bd6f9659e55
50
51 [bonjourgrid]
52 recipe = hexagonit.recipe.download
53 url = ${:_profile_base_location_}/bonjourgrid.src/bonjourgrid.slapos.tar.gz
54 md5sum = 5b4594b8451d83eedfa5224dbdcbb872
55
56 #################################
57 ### Redis-Server description ####
58 #################################
59 [template-redis]
60 recipe = slapos.recipe.template
61 url = ${:_profile_base_location_}/../redis-server/instance-redis.cfg
62 output = ${buildout:directory}/template-redis.cfg
63 mode = 0644
64 md5sum = 8b223d1fe0ffd40c7151766730da7fcb
65
66 #################################
67 ### BOINC Server description ####
68 #################################
69
70 #Download Boinc Application Binary and configure project
71 [application]
72 recipe = hexagonit.recipe.download
73 url = ${boinc:location}/libexec/examples/upper_case
74 download-only = true
75 filename = upper_case
76 #Application configuration
77 app-name = upper_case
78 version = 1.00
79
80 [template-base]
81 recipe = slapos.recipe.download
82 download-only = true
83 mode = 0644
84
85 [template_result]
86 <= template-base
87 url = ${:_profile_base_location_}/templates/template_result
88 filename = template_result
89 location = ${buildout:parts-directory}/${:_buildout_section_name_}
90 md5sum = a3f0e9fd559cadcb2f297b952f8face8
91
92 [template_wu]
93 <= template-base
94 url = ${:_profile_base_location_}/templates/template_wu
95 filename = template_wu
96 location = ${buildout:parts-directory}/${:_buildout_section_name_}
97 md5sum = 66d7ec85ce15e65d2858c11b75fb9574
98
99 [template_input]
100 <= template-base
101 url = ${:_profile_base_location_}/input/input_file
102 filename = input_file
103 location = ${buildout:parts-directory}/${:_buildout_section_name_}
104 md5sum = 6f8db599de986fab7a21625b7916589c
105
106 [boinc-application]
107 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}"}}}
108
109 [boinc-default]
110 template-result = ${template_result:location}/${template_result:filename}
111 template-wu = ${template_wu:location}/${template_wu:filename}
112 platform = x86_64-pc-linux-gnu
113 extension = 
114
115 ##########################
116 ###Condor description ####
117 ##########################
118
119 [template-condor]
120 recipe = slapos.recipe.template
121 url = ${:_profile_base_location_}/../condor/instance-condor.cfg
122 output = ${buildout:directory}/template-condor.cfg
123 md5sum = 42985a425369e4f93211cfaad21d8eb8
124 mode = 0644
125
126 [description-file]
127 recipe = slapos.recipe.download
128 mode = 0644
129 url = ${:_profile_base_location_}/condor_job/submit
130 filename = submit
131 location = ${buildout:parts-directory}/${:_buildout_section_name_}
132 md5sum = 8180d88348b89b55216f8dd4475a9eea
133
134 [executable]
135 recipe = slapos.recipe.download
136 mode = 0774
137 url = ${:_profile_base_location_}/condor_job/simple
138 filename = simple
139 location = ${buildout:parts-directory}/${:_buildout_section_name_}
140 md5sum = c512f495cdd112bceb04feab7c909a10
141
142 [condor-application]
143 list = {"condor_test":{"description-file":"${description-file:location}/${description-file:filename}", "executable":"${executable:location}/${executable:filename}", "executable-name":"${executable:filename}", "files":{}}}
144
145
146 ######################################################"
147 # Local development
148 [slapos.cookbook-repository]
149 recipe = plone.recipe.command
150 stop-on-error = true
151 branch = grid-computing
152 revision =
153 location = ${buildout:parts-directory}/${:_buildout_section_name_}
154 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
155 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
156
157 [check-recipe]
158 recipe = plone.recipe.command
159 stop-on-error = true
160 update-command = ${:command}
161 command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link