Commit d11fcee1 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: new wrapper to start isSoftwareReleaseReady new function

parent 2f67d1ef
......@@ -27,6 +27,7 @@ parts =
slapos-cfg
slaprunner-wrapper
slapos-repo-config
prepare-software
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
......@@ -500,4 +501,10 @@ stop-on-error = true
reference = $${slap-parameter:slapos-reference}
location = $${slapos-repo:location}
environment = export PATH=${git:location}/bin:$PATH;
command = $${:environment} (cd $${:location} && git checkout $${:reference} && SR=$${slap-parameter:slapos-software} && if [ -n "$SR" ]; then echo workspace/$${slap-parameter:slapos-software} > $${directory:etc}/.project; fi)
command = $${:environment} (cd $${:location} && git checkout $${:reference} && SR=$${slap-parameter:slapos-software} && if [ -n "$SR" ]; then echo workspace/slapos/$${slap-parameter:slapos-software}/ > $${directory:etc}/.project; fi)
[prepare-software]
recipe = slapos.cookbook:wrapper
command-line = ${curl:location}/bin/curl $${slaprunner:ipv4}:$${slaprunner:runner_port}/isSRReady --max-time 1
wrapper-path = $${directory:scripts}/prepareSoftware
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