Commit 73971d13 authored by Dmitry Blinov's avatar Dmitry Blinov

make runtime run at instancing time with a predefined program

parent cc8d1fcf
......@@ -203,7 +203,7 @@ context =
[pwrrt-service]
recipe = slapos.cookbook:wrapper
command-line = ${pwrrt-wrapper:rendered} start
command-line = bash -c "set -e; source ${bash-profile:output}; $pwr_exe/pwr_pkg.sh -i {{ test_volume }} || true; $pwr_exe/pwr_cleanup.sh||true; rt_ini -n gettingstarted -q 1 -w"
wrapper-path = ${directory:services}/pwrrt
hash-existing-files = ${buildout:directory}/software_release/buildout.cfg
environment =
......
......@@ -49,6 +49,7 @@ extra-context =
raw pwrp_profile ${template-pwrp-profile:location}/${template-pwrp-profile:filename}
raw template_pwrrt ${template-pwrrt:location}/${template-pwrrt:filename}
raw template_nginx ${template-nginx-conf:location}/${template-nginx-conf:filename}
raw test_volume ${test-volume:location}/${test-volume:filename}
mode = 0644
[slap-configuration]
......
......@@ -44,7 +44,7 @@ recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/template.cfg
mode = 0644
md5sum = 5b519edd585596d868746752fa79c81f
md5sum = 04aa7533e8468182a1a76086810e1e99
[download-base]
recipe = hexagonit.recipe.download
......@@ -54,7 +54,7 @@ mode = 0644
[template-proview-r]
<= download-base
md5sum = f0f0ffba7f9a3d1e6df3ff434b74f5d8
md5sum = 74d3bac508adce14d0793dad04f491cd
filename = instance-proview-r.cfg.jinja2.in
[template-pwrp-profile]
......@@ -75,7 +75,7 @@ filename = nginx_conf.in
[test-volume]
<= download-base
md5sum = cc35b7960702eb5bcba7a328665c6258
filename = volumes/pwrp_pkg_gettingstarted_0002.tgz
filename = pwrp_pkg_gettingstarted_0002.tgz
[versions]
......
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