Commit 256246ad authored by Eric Zheng's avatar Eric Zheng

software/headless-chromium: create software release to test component/headless-chromium

parent e9580656
[template-cfg]
filename = instance.cfg.in
md5sum = 39b836260a86fde229f49d83c09c137d
[instance-headless-chromium]
_update_hash_filename_ = instance_headless-chromium.cfg.in
md5sum = 7d633fbf2c2f3077615a2e12036fcd5c
[template-launcher]
_update_hash_filename_ = templates/launcher.in
md5sum = 4a4d9e6a2dbb347eba83a37817d0af63
[buildout]
parts =
switch-softwaretype
eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true
[profile-common]
dash_location = {{ dash_location }}
chromium_wrapper = {{ chromium_wrapper }}
template_launcher = {{ template_launcher_target }}
[instance-headless-chromium]
recipe = slapos.recipe.template:jinja2
template = {{ template_instance_headless_chromium_target }}
rendered = ${buildout:directory}/${:filename}
filename = instance_headless-chromium.cfg
context =
section buildout buildout
section parameter_list profile-common
[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
default = ${instance-headless-chromium:rendered}
[buildout]
parts =
launcher
publish-connection-information
eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true
# Create the directories that we need. We just have /etc/service
[directory]
recipe = slapos.cookbook:mkdirectory
home = ${buildout:directory}
service = ${:home}/etc/service
[headless-chromium]
ip = ${slap-network-information:global-ipv6}
port = 8081
url = https://example.com
remote_debug_url = http://[${:ip}]:${:port}
chromium_wrapper = {{ parameter_list['chromium_wrapper'] }}
bin_launcher = ${directory:service}/launcher
bin_shell = {{ parameter_list['dash_location'] }}/bin/dash
[launcher]
recipe = slapos.recipe.template:jinja2
template = {{ parameter_list['template_launcher'] }}
rendered = ${headless-chromium:bin_launcher}
mode = 700
context =
section param_chromium_headless headless-chromium
[publish-connection-information]
recipe = slapos.cookbook:publish
remote_debug_url = ${headless-chromium:remote_debug_url}
[buildout]
extends =
buildout.hash.cfg
../../stack/slapos.cfg
../../component/headless-chromium/buildout.cfg
../../component/dash/buildout.cfg
parts =
slapos-cookbook
template-cfg
[template-cfg]
recipe = slapos.recipe.template:jinja2
rendered = ${buildout:directory}/template.cfg
template = ${:_profile_base_location_}/${:filename}
filename = instance.cfg.in
mode = 0644
context =
section buildout buildout
key dash_location dash:location
key chromium_wrapper chromium-wrapper:location
key template_launcher_target template-launcher:target
key template_instance_headless_chromium_target instance-headless-chromium:target
[download-base]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}
mode = 0644
[instance-headless-chromium]
<= download-base
[template-launcher]
<= download-base
#! {{ param_chromium_headless['bin_shell'] }}
# Run headless Chromium
exec {{ param_chromium_headless['chromium_wrapper'] }} \
--remote-debugging-port={{ param_chromium_headless['port'] }} \
param_chromium_headless['url']
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