Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
slapos
Commits
5b8e3d08
Commit
5b8e3d08
authored
May 29, 2013
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add URL to view and download BOINC result
parent
83c2efa2
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
3 deletions
+17
-3
slapos/recipe/boinc/__init__.py
slapos/recipe/boinc/__init__.py
+1
-0
slapos/recipe/boinc/configure.py
slapos/recipe/boinc/configure.py
+1
-0
stack/boinc/buildout.cfg
stack/boinc/buildout.cfg
+2
-2
stack/boinc/instance-boinc.cfg
stack/boinc/instance-boinc.cfg
+2
-1
stack/boinc/template/apache.in
stack/boinc/template/apache.in
+11
-0
No files found.
slapos/recipe/boinc/__init__.py
View file @
5b8e3d08
...
@@ -44,6 +44,7 @@ class Recipe(GenericBaseRecipe):
...
@@ -44,6 +44,7 @@ class Recipe(GenericBaseRecipe):
root
=
options
[
'installroot'
].
strip
()
root
=
options
[
'installroot'
].
strip
()
options
[
'home_page'
]
=
url_base
+
"/"
+
project
options
[
'home_page'
]
=
url_base
+
"/"
+
project
options
[
'admin_page'
]
=
url_base
+
"/"
+
project
+
"_ops/"
options
[
'admin_page'
]
=
url_base
+
"/"
+
project
+
"_ops/"
options
[
'result_page'
]
=
url_base
+
"/"
+
project
+
"_result/"
options
[
'cronjob'
]
=
os
.
path
.
join
(
root
,
project
+
'.cronjob'
)
options
[
'cronjob'
]
=
os
.
path
.
join
(
root
,
project
+
'.cronjob'
)
return
GenericBaseRecipe
.
__init__
(
self
,
buildout
,
name
,
options
)
return
GenericBaseRecipe
.
__init__
(
self
,
buildout
,
name
,
options
)
...
...
slapos/recipe/boinc/configure.py
View file @
5b8e3d08
...
@@ -172,6 +172,7 @@ def services(args):
...
@@ -172,6 +172,7 @@ def services(args):
languages
,
compiled
,
user_profile
)
languages
,
compiled
,
user_profile
)
os
.
system
(
"chmod g+w -R "
+
args
[
'installroot'
])
os
.
system
(
"chmod g+w -R "
+
args
[
'installroot'
])
os
.
system
(
cmd
)
os
.
system
(
cmd
)
os
.
system
(
"chmod 700 %s"
%
os
.
path
.
join
(
args
[
'installroot'
],
'keys'
))
os
.
system
(
"chmod o+x "
+
inc
)
os
.
system
(
"chmod o+x "
+
inc
)
os
.
system
(
"chmod -R o+r "
+
inc
)
os
.
system
(
"chmod -R o+r "
+
inc
)
os
.
system
(
"chmod o+x "
+
languages
)
os
.
system
(
"chmod o+x "
+
languages
)
...
...
stack/boinc/buildout.cfg
View file @
5b8e3d08
...
@@ -34,7 +34,7 @@ eggs =
...
@@ -34,7 +34,7 @@ eggs =
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-boinc.cfg
url = ${:_profile_base_location_}/instance-boinc.cfg
output = ${buildout:directory}/template-boinc.cfg
output = ${buildout:directory}/template-boinc.cfg
md5sum =
ead728e74a7fe58ef9b39397f2354f77
md5sum =
6642942dde15ab5195d8d8533690ef29
mode = 0644
mode = 0644
#Template for deploying MySQL Database Server
#Template for deploying MySQL Database Server
...
@@ -50,7 +50,7 @@ recipe = slapos.recipe.download
...
@@ -50,7 +50,7 @@ recipe = slapos.recipe.download
url = ${:_profile_base_location_}/template/${:filename}
url = ${:_profile_base_location_}/template/${:filename}
mode = 0644
mode = 0644
filename = apache.in
filename = apache.in
md5sum =
030892494ce87357e6e09dcd89187bf4
md5sum =
5d5f49331debc4e3d2a02d8525064f8e
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[boinc-default]
[boinc-default]
...
...
stack/boinc/instance-boinc.cfg
View file @
5b8e3d08
...
@@ -136,6 +136,7 @@ php_ini_dir = $${directory:php-ini-dir}
...
@@ -136,6 +136,7 @@ php_ini_dir = $${directory:php-ini-dir}
niceprojectname = $${slap-parameter:project}@HOME
niceprojectname = $${slap-parameter:project}@HOME
project = $${slap-parameter:project}
project = $${slap-parameter:project}
installroot = $${rootdirectory:project}/$${slap-parameter:project}
installroot = $${rootdirectory:project}/$${slap-parameter:project}
result_dir = $${rootdirectory:project}/$${slap-parameter:project}/sample_results/
[environment]
[environment]
PATH = $${rootdirectory:bin}:${subversion:location}/bin:${perl:location}/bin:%(PATH)s
PATH = $${rootdirectory:bin}:${subversion:location}/bin:${perl:location}/bin:%(PATH)s
...
@@ -321,6 +322,7 @@ path = $${basedirectory:scripts}/slapmonitor
...
@@ -321,6 +322,7 @@ path = $${basedirectory:scripts}/slapmonitor
[publish-connection-informations]
[publish-connection-informations]
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
boinc_admin_page = $${boinc-server:admin_page}
boinc_admin_page = $${boinc-server:admin_page}
boinc_result_url = $${boinc-server:result_page}
boinc_home_page = $${boinc-server:home_page}
boinc_home_page = $${boinc-server:home_page}
boinc_user = $${boinc-server:user}
boinc_user = $${boinc-server:user}
boinc_passwd = $${boinc-passwd:passwd}
boinc_passwd = $${boinc-passwd:passwd}
...
@@ -350,7 +352,6 @@ curl_path = ${curl:location}/bin/curl
...
@@ -350,7 +352,6 @@ curl_path = ${curl:location}/bin/curl
[slap-parameter]
[slap-parameter]
#Default config value for boinc
#Default config value for boinc
dbname = boinctest
project = boinc_test
project = boinc_test
full-name = Boinc Project SAMPLE
full-name = Boinc Project SAMPLE
copyright-holder = REPLACE WITH COPYRIGHT HOLDER
copyright-holder = REPLACE WITH COPYRIGHT HOLDER
...
...
stack/boinc/template/apache.in
View file @
5b8e3d08
...
@@ -59,11 +59,13 @@ LoadModule authz_user_module modules/mod_authz_user.so
...
@@ -59,11 +59,13 @@ LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule cgid_module modules/mod_cgid.so
LoadModule cgid_module modules/mod_cgid.so
LoadModule autoindex_module modules/mod_autoindex.so
## Settings for BOINC project ${:niceprojectname}
## Settings for BOINC project ${:niceprojectname}
Alias /${:project} ${:installroot}/html/user
Alias /${:project} ${:installroot}/html/user
Alias /${:project}_ops ${:installroot}/html/ops
Alias /${:project}_ops ${:installroot}/html/ops
Alias /${:project}_result/ ${:installroot}/sample_results/
ScriptAlias /${:project}_cgi ${:installroot}/cgi-bin
ScriptAlias /${:project}_cgi ${:installroot}/cgi-bin
# Note: projects/*/keys/ should NOT be readable!
# Note: projects/*/keys/ should NOT be readable!
...
@@ -79,3 +81,12 @@ ScriptAlias /${:project}_cgi ${:installroot}/cgi-bin
...
@@ -79,3 +81,12 @@ ScriptAlias /${:project}_cgi ${:installroot}/cgi-bin
AllowOverride AuthConfig
AllowOverride AuthConfig
Require all granted
Require all granted
</Directory>
</Directory>
Alias /${:project}_result/ ${:result_dir}
<Directory "${:result_dir}">
Options +Indexes
AuthName "${:project}"
AuthType Basic
AuthUserFile ${:installroot}/html/ops/.htpasswd
require valid-user
</Directory>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment