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
Labels
Merge Requests
103
Merge Requests
103
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
99a47e8b
Commit
99a47e8b
authored
Apr 15, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/jstestnode: add promises
parent
a184ff46
Pipeline
#8948
canceled with stage
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
software/jstestnode/buildout.hash.cfg
software/jstestnode/buildout.hash.cfg
+1
-1
software/jstestnode/instance.cfg.in
software/jstestnode/instance.cfg.in
+23
-3
No files found.
software/jstestnode/buildout.hash.cfg
View file @
99a47e8b
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
[instance]
[instance]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
72f6316ee44499568601d3353ff262d1
md5sum =
42e7d1825f5582fbe2c55977e5abc574
[template-nginx-service]
[template-nginx-service]
filename = template-nginx-service.sh.in
filename = template-nginx-service.sh.in
...
...
software/jstestnode/instance.cfg.in
View file @
99a47e8b
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
parts =
parts =
nginx-service
nginx-service
runTestSuite-instance
runTestSuite-instance
promises
publish
publish
eggs-directory = ${buildout:eggs-directory}
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
...
@@ -22,6 +23,7 @@ log = $${:var}/log
...
@@ -22,6 +23,7 @@ log = $${:var}/log
varnginx = $${:var}/nginx
varnginx = $${:var}/nginx
scripts = $${:etc}/run
scripts = $${:etc}/run
services = $${:etc}/service
services = $${:etc}/service
promise = $${:etc}/promise
www = $${:srv}/www
www = $${:srv}/www
home = $${:etc}/home
home = $${:etc}/home
ssl = $${:etc}/ssl
ssl = $${:etc}/ssl
...
@@ -51,15 +53,20 @@ recipe = slapos.cookbook:wrapper
...
@@ -51,15 +53,20 @@ recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:services}/$${:_buildout_section_name_}
wrapper-path = $${directory:services}/$${:_buildout_section_name_}
command-line =
command-line =
${xserver:location}/bin/Xvfb
${xserver:location}/bin/Xvfb
$${:display}
:
$${:display}
-screen 0 1024x768x24
-screen 0 1024x768x24
-fbdir $${directory:framebuffer}
-fbdir $${directory:framebuffer}
environment =
environment =
XORG_LOCK_DIR=$${:lock-dir}
XORG_LOCK_DIR=$${:lock-dir}
display =
:
0
display = 0
lock-dir = $${directory:run}
lock-dir = $${directory:run}
[xvfb-promise]
recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:promise}/$${:_buildout_section_name_}
command-line = bash -c "[ -S $${xvfb-instance:lock-dir}/.X11-unix/X$${xvfb-instance:display} ]"
#################################
#################################
# Nginx service
# Nginx service
...
@@ -85,6 +92,13 @@ ssl_key = $${directory:ssl}/nginx.key
...
@@ -85,6 +92,13 @@ ssl_key = $${directory:ssl}/nginx.key
ssl_csr = $${directory:ssl}/nginx.csr
ssl_csr = $${directory:ssl}/nginx.csr
ssl_crt = $${directory:ssl}/nginx.crt
ssl_crt = $${directory:ssl}/nginx.crt
[nginx-listen-promise]
recipe = slapos.cookbook:check_port_listening
path = $${directory:promise}/$${:_buildout_section_name_}
hostname = $${nginx-configuration:ip}
port = $${nginx-configuration:port}
#################################
#################################
# SlapOS service
# SlapOS service
#################################
#################################
...
@@ -96,3 +110,9 @@ url = $${slap-connection:server-url}
...
@@ -96,3 +110,9 @@ url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
key = $${slap-connection:key-file}
cert = $${slap-connection:cert-file}
cert = $${slap-connection:cert-file}
configuration._ = {}
configuration._ = {}
[promises]
recipe =
depends =
$${nginx-listen-promise:recipe}
$${xvfb-promise:recipe}
\ No newline at end of file
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