Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lukas Niegsch
slapos
Commits
d90d14a4
Commit
d90d14a4
authored
May 17, 2022
by
Lukas Niegsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added basic software configuration that extends headless-chromium
parent
2d542e61
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
0 deletions
+90
-0
software/pws/buildout.hash.cfg
software/pws/buildout.hash.cfg
+21
-0
software/pws/instance-pws.cfg.in
software/pws/instance-pws.cfg.in
+0
-0
software/pws/instance.cfg.in
software/pws/instance.cfg.in
+37
-0
software/pws/software.cfg
software/pws/software.cfg
+32
-0
No files found.
software/pws/buildout.hash.cfg
0 → 100644
View file @
d90d14a4
# 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
software/pws/instance-pws.cfg.in
0 → 100644
View file @
d90d14a4
software/pws/instance.cfg.in
0 → 100644
View file @
d90d14a4
[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
software/pws/software.cfg
0 → 100644
View file @
d90d14a4
[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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment