Commit 55232f23 authored by Lukas Niegsch's avatar Lukas Niegsch

used slapos.cookbook:wrapper for chromium-launcher script

parent 782a9791
......@@ -4,7 +4,7 @@ md5sum = 4d73fe3c5d286163974bdb79c838e030
[instance-headless-chromium]
_update_hash_filename_ = instance-headless-chromium.cfg.in
md5sum = d72e5f6e159081f1c204ceb7ec0c0caf
md5sum = d25e2316dbd52b4a822d70848b11a837
[template-nginx-conf]
_update_hash_filename_ = templates/nginx.conf.in
......
......@@ -54,17 +54,14 @@ nginx-mime-types = ${directory:etc}/mime-types
# Create a launcher script in /etc/service for the headless shell
# executable.
[chromium-launcher]
recipe = slapos.recipe.template
inline =
#!/bin/sh
export FONTCONFIG_FILE=${font-config:output}
exec {{ parameter_list['chromium-wrapper'] }} \
--remote-debugging-address=${headless-chromium:ipv4} \
--remote-debugging-port=${headless-chromium:remote-debugging-port} \
"${headless-chromium:url}"
output = ${directory:service}/chromium
recipe = slapos.cookbook:wrapper
command-line =
env FONTCONFIG_FILE=${font-config:output}
{{ parameter_list['chromium-wrapper'] }}
--remote-debugging-address=${headless-chromium:ipv4}
--remote-debugging-port=${headless-chromium:remote-debugging-port}
${headless-chromium:url}
wrapper-path = ${directory:service}/chromium
# Configure and launch the proxy server.
[nginx-config]
......
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