Commit 74b2a361 authored by Eric Zheng's avatar Eric Zheng

software/headless-chromium: use slapos.cookbook:wrapper

parent 2e836335
[template-cfg] [template-cfg]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = ff048b5480605cebfbc76e9bb89ad4e9 md5sum = 86805fd3eb34659dffe03e6114e45c56
[instance-headless-chromium] [instance-headless-chromium]
_update_hash_filename_ = instance_headless-chromium.cfg.in _update_hash_filename_ = instance_headless-chromium.cfg.in
md5sum = 4aa466bb0297baba80b39fd283922ac9 md5sum = edb13d051635af4c906362eb7915bd13
[template-chromium-launcher] [template-chromium-launcher]
_update_hash_filename_ = templates/launcher.in _update_hash_filename_ = templates/launcher.in
......
...@@ -7,7 +7,6 @@ develop-eggs-directory = {{ buildout['develop-eggs-directory'] }} ...@@ -7,7 +7,6 @@ develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true offline = true
[profile-common] [profile-common]
dash_location = {{ dash_location }}
nginx_location = {{ nginx_location }} nginx_location = {{ nginx_location }}
chromium_wrapper = {{ chromium_wrapper }} chromium_wrapper = {{ chromium_wrapper }}
template_launcher = {{ template_launcher_target }} template_launcher = {{ template_launcher_target }}
......
...@@ -31,20 +31,11 @@ nginx_temp_path = ${directory:tmp} ...@@ -31,20 +31,11 @@ nginx_temp_path = ${directory:tmp}
nginx_error_log = ${directory:log}/nginx-error.log nginx_error_log = ${directory:log}/nginx-error.log
nginx_access_log = ${directory:log}/nginx-access.log nginx_access_log = ${directory:log}/nginx-access.log
chromium_wrapper = {{ parameter_list['chromium_wrapper'] }}
bin_chromium_launcher = ${directory:service}/chromium
bin_nginx_launcher = ${directory:service}/nginx
bin_shell = {{ parameter_list['dash_location'] }}/bin/dash
bin_nginx = {{ parameter_list['nginx_location'] }}/sbin/nginx
# Create a launcher script for the headless shell executable. # Create a launcher script for the headless shell executable.
[chromium-launcher] [chromium-launcher]
recipe = slapos.recipe.template:jinja2 recipe = slapos.cookbook:wrapper
template = {{ parameter_list['template_launcher'] }} command-line = {{ parameter_list['chromium_wrapper'] }} --remote-debugging-address=:: --remote-debugging-port=${headless-chromium:remote-debugging-port} ${headless-chromium:url}
rendered = ${headless-chromium:bin_chromium_launcher} wrapper-path = ${directory:service}/chromium
mode = 700
context =
section param_chromium_headless headless-chromium
# Create a configuration file for the proxy server. # Create a configuration file for the proxy server.
[nginx-config] [nginx-config]
...@@ -57,12 +48,9 @@ context = ...@@ -57,12 +48,9 @@ context =
# Create a launcher script for the proxy server. # Create a launcher script for the proxy server.
[nginx-launcher] [nginx-launcher]
recipe = slapos.recipe.template:jinja2 recipe = slapos.cookbook:wrapper
template = {{ parameter_list['template_nginx_launcher'] }} command-line = {{ parameter_list['nginx_location'] }}/sbin/nginx -c ${headless-chromium:nginx_config_target}
rendered = ${headless-chromium:bin_nginx_launcher} wrapper-path = ${directory:service}/nginx
mode = 700
context =
section param_chromium_headless headless-chromium
[publish-connection-information] [publish-connection-information]
recipe = slapos.cookbook:publish recipe = slapos.cookbook:publish
......
...@@ -3,7 +3,6 @@ extends = ...@@ -3,7 +3,6 @@ extends =
buildout.hash.cfg buildout.hash.cfg
../../stack/slapos.cfg ../../stack/slapos.cfg
../../component/headless-chromium/buildout.cfg ../../component/headless-chromium/buildout.cfg
../../component/dash/buildout.cfg
../../component/nginx/buildout.cfg ../../component/nginx/buildout.cfg
parts = parts =
...@@ -17,7 +16,6 @@ template = ${:_profile_base_location_}/${:filename} ...@@ -17,7 +16,6 @@ template = ${:_profile_base_location_}/${:filename}
mode = 0644 mode = 0644
context = context =
section buildout buildout section buildout buildout
key dash_location dash:location
key nginx_location nginx:location key nginx_location nginx:location
key chromium_wrapper chromium-wrapper:location key chromium_wrapper chromium-wrapper:location
key template_launcher_target template-chromium-launcher:target key template_launcher_target template-chromium-launcher:target
......
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