software.cfg 4.92 KB
Newer Older
1 2 3 4 5 6 7 8 9
[buildout]

# Local development - to be remove
develop =
  ${:parts-directory}/slapos.cookbook-repository

parts = 
  boinc-instance
  template
10
  application
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
  template_wu
  template_result
  template_input
  template-redis
  slapos-cookbook
  instance-egg
  condor
  redis
  template-condor
  description-file
  executable
  bonjourgrid-instance
  bonjourgrid
  slapos.cookbook-repository
  check-recipe  

extends =
  ../../stack/boinc/buildout.cfg
  ../../component/condor/buildout.cfg
  ../../component/redis/buildout.cfg
  ../../component/git/buildout.cfg
  ../../stack/slapos.cfg

#Generate All instances templates
35 36 37 38 39 40 41 42 43 44
[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/template.cfg
mode = 0644
md5sum = 2f23572c39bfcedcdebdb5963aeefc38

################################
### BonjourGrid description ####
################################
45 46 47 48 49
[bonjourgrid-instance]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-bonjourgrid.cfg
output = ${buildout:directory}/template-bonjourgrid.cfg
mode = 0644
50
md5sum = 216b87eb0675cb5f61462d21fff3a392
51 52 53 54

[bonjourgrid]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/bonjourgrid.src/bonjourgrid.tar.gz
55
md5sum = 22925dcf5a8ceb8da449ccf52402a195
56

57 58 59
#################################
### Redis-Server description ####
#################################
60 61 62 63 64
[template-redis]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-redis.cfg
output = ${buildout:directory}/template-redis.cfg
mode = 0644
65
md5sum = 8b223d1fe0ffd40c7151766730da7fcb
66

67 68 69
#################################
### BOINC Server description ####
#################################
70 71 72 73 74
[boinc-instance]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/boinc-app.cfg
output = ${buildout:directory}/template-boinc-app.cfg
mode = 0644
75
md5sum = 97bf1a369946b50ae1163e2d83209857
76 77

#Download Boinc Application Binary and configure project
78
[application]
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
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_}
97
md5sum = a3f0e9fd559cadcb2f297b952f8face8
98 99 100 101 102 103

[template_wu]
<= template-base
url = ${:_profile_base_location_}/templates/template_wu
filename = template_wu
location = ${buildout:parts-directory}/${:_buildout_section_name_}
104
md5sum = 66d7ec85ce15e65d2858c11b75fb9574
105 106 107 108 109 110

[template_input]
<= template-base
url = ${:_profile_base_location_}/input/input_file
filename = input_file
location = ${buildout:parts-directory}/${:_buildout_section_name_}
111 112 113 114 115 116 117 118 119 120
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 = 
121

122
##########################
123
###Condor description ####
124
##########################
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166

[template-condor]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-condor.cfg
output = ${buildout:directory}/template-condor.cfg
md5sum = 8bb788d39cbfa8a7473f25cd2e2a6104
mode = 0644

[description-file]
recipe = slapos.recipe.download
mode = 0644
url = ${:_profile_base_location_}/condor_job/submit
filename = submit
location = ${buildout:parts-directory}/${:_buildout_section_name_}
md5sum = 8180d88348b89b55216f8dd4475a9eea

[executable]
recipe = slapos.recipe.download
mode = 0774
url = ${:_profile_base_location_}/condor_job/simple
filename = simple
location = ${buildout:parts-directory}/${:_buildout_section_name_}
md5sum = c512f495cdd112bceb04feab7c909a10

# 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

[versions]
lxml = 2.3.6