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
Joanne Hugé
slapos
Commits
eef81f33
Commit
eef81f33
authored
Apr 11, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add quick support for PATH in non-standard location
parent
0d3f1c4e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
slapos/recipe/accords/__init__.py
slapos/recipe/accords/__init__.py
+7
-3
slapos/recipe/accords/accords.py
slapos/recipe/accords/accords.py
+4
-2
stack/accords/buildout.cfg
stack/accords/buildout.cfg
+0
-6
stack/accords/instance-accords.cfg
stack/accords/instance-accords.cfg
+1
-0
No files found.
slapos/recipe/accords/__init__.py
View file @
eef81f33
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#
##############################################################################
##############################################################################
import
os
import
shutil
import
shutil
from
slapos.recipe.librecipe
import
GenericSlapRecipe
from
slapos.recipe.librecipe
import
GenericSlapRecipe
from
subprocess
import
Popen
from
subprocess
import
Popen
...
@@ -79,7 +80,10 @@ class Recipe(GenericSlapRecipe):
...
@@ -79,7 +80,10 @@ class Recipe(GenericSlapRecipe):
server_url
=
self
.
server_url
,
server_url
=
self
.
server_url
,
software_release_url
=
self
.
software_release_url
,
software_release_url
=
self
.
software_release_url
,
key_file
=
self
.
key_file
,
key_file
=
self
.
key_file
,
cert_file
=
self
.
cert_file
,)
cert_file
=
self
.
cert_file
,
path
=
'%s:%s'
%
(
self
.
options
[
'accords_bin_directory'
],
os
.
environ
.
get
(
'PATH'
,
''
)),
)
wrapper_location
=
self
.
createPythonScript
(
self
.
options
[
'accords-wrapper'
],
wrapper_location
=
self
.
createPythonScript
(
self
.
options
[
'accords-wrapper'
],
'%s.accords.runAccords'
%
__name__
,
'%s.accords.runAccords'
%
__name__
,
wrapper_config_dict
)
wrapper_config_dict
)
...
...
slapos/recipe/accords/accords.py
View file @
eef81f33
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#
##############################################################################
##############################################################################
import
os
from
slapos
import
slap
from
slapos
import
slap
import
signal
import
signal
from
subprocess
import
Popen
from
subprocess
import
Popen
...
@@ -48,6 +49,7 @@ def runAccords(accords_conf):
...
@@ -48,6 +49,7 @@ def runAccords(accords_conf):
environment
=
dict
(
environment
=
dict
(
LD_LIBRARY_PATH
=
accords_lib_directory
,
LD_LIBRARY_PATH
=
accords_lib_directory
,
PATH
=
accords_conf
[
'path'
],
)
)
# Set handler to stop ACCORDS when end of world comes
# Set handler to stop ACCORDS when end of world comes
...
...
stack/accords/buildout.cfg
View file @
eef81f33
...
@@ -5,8 +5,6 @@ extends =
...
@@ -5,8 +5,6 @@ extends =
../../component/lxml-python/buildout.cfg
../../component/lxml-python/buildout.cfg
../slapos.cfg
../slapos.cfg
versions = versions
parts =
parts =
instance
instance
instance-accords
instance-accords
...
@@ -35,10 +33,6 @@ url = ${:_profile_base_location_}/instance-accords.cfg
...
@@ -35,10 +33,6 @@ url = ${:_profile_base_location_}/instance-accords.cfg
output = ${buildout:directory}/template-accords.cfg
output = ${buildout:directory}/template-accords.cfg
mode = 0644
mode = 0644
[versions]
# Use SlapOS patched zc.buildout
zc.buildout = 1.6.0-dev-SlapOS-004
[networkcache]
[networkcache]
# Cedric de Saint Martin signature certificate
# Cedric de Saint Martin signature certificate
signature-certificate-list =
signature-certificate-list =
...
...
stack/accords/instance-accords.cfg
View file @
eef81f33
...
@@ -32,6 +32,7 @@ manifest-name = manifest
...
@@ -32,6 +32,7 @@ manifest-name = manifest
accords-wrapper = $${basedirectory:services}/accords
accords-wrapper = $${basedirectory:services}/accords
# Workaround
# Workaround
accords_lib_directory : ${accords:location}/lib
accords_lib_directory : ${accords:location}/lib
accords_bin_directory : ${accords:location}/bin
[rootdirectory]
[rootdirectory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
...
...
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