Commit d90d14a4 authored by Lukas Niegsch's avatar Lukas Niegsch

added basic software configuration that extends headless-chromium

parent 2d542e61
# THIS IS NOT A BUILDOUT FILE, despite purposedly using a compatible syntax.
# The only allowed lines here are (regexes):
# - "^#" comments, copied verbatim
# - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script.
# Re-generated.
# - other lines are copied verbatim
# Substitution (${...:...}), extension ([buildout] extends = ...) and
# section inheritance (< = ...) are NOT supported (but you should really
# not need these here).
[instance-cfg]
_update_hash_filename_ = instance.cfg.in
md5sum = 57f28c87ab59baf63d134f1dacc89910
[template-instance-pws]
_update_hash_filename_ = instance-pws.cfg.in
md5sum = d41d8cd98f00b204e9800998ecf8427e
[buildout]
extends =
{{ template_chromium_cfg }}
[profile-extended]
<= profile-common
[instance-base]
recipe = slapos.recipe.template:jinja2
rendered = ${buildout:directory}/${:filename}
context =
section buildout buildout
section parameter_list profile-extended
key slapparameter_dict slap-configuration:configuration
key partition_ipv4 slap-configuration:ipv4-random
key partition_ipv6 slap-configuration:ipv6-random
jsonkey default_parameter_dict :default-parameters
default-parameters =
{
"target-pwa-path": "",
"target-url": "",
"remote-debugging-port": 8081,
"nginx-proxy-port": 8082,
"monitor-httpd-port": 8083
}
[instance-headless-chromium]
<= instance-base
template = ${:url}
[instance-pws]
<= instance-base
template = {{ template_instance_pws }}
filename = instance-pws.cfg
[switch-softwaretype]
default = instance-pws:rendered
[buildout]
extends =
../../stack/slapos.cfg
../../stack/monitor/buildout.cfg
../../component/dash/buildout.cfg
../../component/unzip/buildout.cfg
../../software/headless-chromium/software.cfg
buildout.hash.cfg
parts =
slapos-cookbook
template-instance-cfg
# rename template.cfg to chromium.cfg from headless-chromium
[template-cfg]
output = ${buildout:directory}/chromium.cfg
template = ${:url}
rendered = ${:output}
[template-instance-cfg]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/${:_update_hash_filename_}
rendered = ${buildout:directory}/template.cfg
context =
key template_chromium_cfg template-cfg:rendered
key template_instance_pws template-instance-pws:target
[download]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}
[template-instance-pws]
<= download
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