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
Eric Zheng
slapos
Commits
256246ad
Commit
256246ad
authored
Jul 05, 2021
by
Eric Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/headless-chromium: create software release to test component/headless-chromium
parent
e9580656
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
112 additions
and
0 deletions
+112
-0
software/headless-chromium/buildout.hash.cfg
software/headless-chromium/buildout.hash.cfg
+11
-0
software/headless-chromium/instance.cfg.in
software/headless-chromium/instance.cfg.in
+25
-0
software/headless-chromium/instance_headless-chromium.cfg.in
software/headless-chromium/instance_headless-chromium.cfg.in
+36
-0
software/headless-chromium/software.cfg
software/headless-chromium/software.cfg
+34
-0
software/headless-chromium/templates/launcher.in
software/headless-chromium/templates/launcher.in
+6
-0
No files found.
software/headless-chromium/buildout.hash.cfg
0 → 100644
View file @
256246ad
[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
software/headless-chromium/instance.cfg.in
0 → 100644
View file @
256246ad
[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}
software/headless-chromium/instance_headless-chromium.cfg.in
0 → 100644
View file @
256246ad
[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}
software/headless-chromium/software.cfg
0 → 100644
View file @
256246ad
[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
software/headless-chromium/templates/launcher.in
0 → 100644
View file @
256246ad
#! {{ 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']
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