Commit bd66b1fc authored by Alain Takoudjou's avatar Alain Takoudjou

Add Boinc client recipe

parent 5e7cf49b
...@@ -140,6 +140,7 @@ setup(name=name, ...@@ -140,6 +140,7 @@ setup(name=name,
'condor = slapos.recipe.condor:Recipe', 'condor = slapos.recipe.condor:Recipe',
'boinc = slapos.recipe.boinc:Recipe', 'boinc = slapos.recipe.boinc:Recipe',
'boinc.app = slapos.recipe.boinc:App', 'boinc.app = slapos.recipe.boinc:App',
'boinc.client = slapos.recipe.boinc:Client',
], ],
'slapos.recipe.nosqltestbed.plugin': [ 'slapos.recipe.nosqltestbed.plugin': [
'kumo = slapos.recipe.nosqltestbed.kumo:KumoTestBed', 'kumo = slapos.recipe.nosqltestbed.kumo:KumoTestBed',
......
...@@ -280,4 +280,25 @@ class App(GenericBaseRecipe): ...@@ -280,4 +280,25 @@ class App(GenericBaseRecipe):
update = install update = install
class Client(GenericBaseRecipe):
"""Deploy a fully fonctionnal boinc client connected to a boinc server instance"""
def install(self):
path_list = []
boincbin = self.options['boinc-bin'].strip()
installdir = self.options['install-dir'].strip()
url = self.options['server-url'].strip()
key = self.options['key'].strip()
boinc_wrapper = self.options['client-wrapper'].strip()
#Generate wrapper for boinc_client
client_wrapper = self.createPythonScript(boinc_wrapper,
'slapos.recipe.librecipe.execute.execute',
([boincbin, '--dir', installdir, '--attach_project', url, key])
)
path_list.append(client_wrapper)
return path_list
update = install
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment