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
74b2a361
Commit
74b2a361
authored
Jul 13, 2021
by
Eric Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/headless-chromium: use slapos.cookbook:wrapper
parent
2e836335
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
23 deletions
+8
-23
software/headless-chromium/buildout.hash.cfg
software/headless-chromium/buildout.hash.cfg
+2
-2
software/headless-chromium/instance.cfg.in
software/headless-chromium/instance.cfg.in
+0
-1
software/headless-chromium/instance_headless-chromium.cfg.in
software/headless-chromium/instance_headless-chromium.cfg.in
+6
-18
software/headless-chromium/software.cfg
software/headless-chromium/software.cfg
+0
-2
No files found.
software/headless-chromium/buildout.hash.cfg
View file @
74b2a361
[template-cfg]
filename = instance.cfg.in
md5sum =
ff048b5480605cebfbc76e9bb89ad4e9
md5sum =
86805fd3eb34659dffe03e6114e45c56
[instance-headless-chromium]
_update_hash_filename_ = instance_headless-chromium.cfg.in
md5sum =
4aa466bb0297baba80b39fd283922ac9
md5sum =
edb13d051635af4c906362eb7915bd13
[template-chromium-launcher]
_update_hash_filename_ = templates/launcher.in
...
...
software/headless-chromium/instance.cfg.in
View file @
74b2a361
...
...
@@ -7,7 +7,6 @@ develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true
[profile-common]
dash_location = {{ dash_location }}
nginx_location = {{ nginx_location }}
chromium_wrapper = {{ chromium_wrapper }}
template_launcher = {{ template_launcher_target }}
...
...
software/headless-chromium/instance_headless-chromium.cfg.in
View file @
74b2a361
...
...
@@ -31,20 +31,11 @@ nginx_temp_path = ${directory:tmp}
nginx_error_log = ${directory:log}/nginx-error.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.
[chromium-launcher]
recipe = slapos.recipe.template:jinja2
template = {{ parameter_list['template_launcher'] }}
rendered = ${headless-chromium:bin_chromium_launcher}
mode = 700
context =
section param_chromium_headless headless-chromium
recipe = slapos.cookbook:wrapper
command-line = {{ parameter_list['chromium_wrapper'] }} --remote-debugging-address=:: --remote-debugging-port=${headless-chromium:remote-debugging-port} ${headless-chromium:url}
wrapper-path = ${directory:service}/chromium
# Create a configuration file for the proxy server.
[nginx-config]
...
...
@@ -57,12 +48,9 @@ context =
# Create a launcher script for the proxy server.
[nginx-launcher]
recipe = slapos.recipe.template:jinja2
template = {{ parameter_list['template_nginx_launcher'] }}
rendered = ${headless-chromium:bin_nginx_launcher}
mode = 700
context =
section param_chromium_headless headless-chromium
recipe = slapos.cookbook:wrapper
command-line = {{ parameter_list['nginx_location'] }}/sbin/nginx -c ${headless-chromium:nginx_config_target}
wrapper-path = ${directory:service}/nginx
[publish-connection-information]
recipe = slapos.cookbook:publish
...
...
software/headless-chromium/software.cfg
View file @
74b2a361
...
...
@@ -3,7 +3,6 @@ extends =
buildout.hash.cfg
../../stack/slapos.cfg
../../component/headless-chromium/buildout.cfg
../../component/dash/buildout.cfg
../../component/nginx/buildout.cfg
parts =
...
...
@@ -17,7 +16,6 @@ template = ${:_profile_base_location_}/${:filename}
mode = 0644
context =
section buildout buildout
key dash_location dash:location
key nginx_location nginx:location
key chromium_wrapper chromium-wrapper:location
key template_launcher_target template-chromium-launcher:target
...
...
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