mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-25 06:49:31 +01:00
add ggr
This commit is contained in:
6
ggr/data/confd/conf.d/ggr.toml
Normal file
6
ggr/data/confd/conf.d/ggr.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[template]
|
||||
src = "guest.xml.tmpl"
|
||||
dest = "/etc/grid-router/quota/guest.xml"
|
||||
keys = ["/"]
|
||||
check_cmd = "xmllint --noout /etc/grid-router/quota/guest.xml"
|
||||
reload_cmd = "supervisorctl signal HUP ggr"
|
||||
11
ggr/data/confd/templates/guest.xml.tmpl
Normal file
11
ggr/data/confd/templates/guest.xml.tmpl
Normal file
@@ -0,0 +1,11 @@
|
||||
<qa:browsers xmlns:qa="urn:config.gridrouter.qatools.ru">
|
||||
<browser name="{{getenv "BROWSER_NAME" "chrome"}}" defaultVersion="{{getenv "BROWSER_VERSION" "78.0"}}">
|
||||
<version number="{{getenv "BROWSER_VERSION" "78.0"}}">
|
||||
<region name="{{getenv "BROWSER_REGION" "1"}}">
|
||||
{{range lookupIP (getenv "BROWSER_HOSTS" "tasks.chrome")}}
|
||||
<host name="{{.}}" port="{{getenv "BROWSER_PORT" "5555"}}" count="{{getenv "BROWSER_COUNT" "1"}}"/>
|
||||
{{end}}
|
||||
</region>
|
||||
</version>
|
||||
</browser>
|
||||
</qa:browsers>
|
||||
8
ggr/data/grid-router/quota/guest.xml
Normal file
8
ggr/data/grid-router/quota/guest.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<qa:browsers xmlns:qa="urn:config.gridrouter.qatools.ru">
|
||||
<browser name="chrome" defaultVersion="78.0">
|
||||
<version number="78.0">
|
||||
<region name="1">
|
||||
</region>
|
||||
</version>
|
||||
</browser>
|
||||
</qa:browsers>
|
||||
0
ggr/data/grid-router/users.htpasswd
Normal file
0
ggr/data/grid-router/users.htpasswd
Normal file
2
ggr/data/supervisor.d/confd.ini
Normal file
2
ggr/data/supervisor.d/confd.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[program:confd]
|
||||
command = confd -watch -backend file -file /dev/null
|
||||
2
ggr/data/supervisor.d/ggr.ini
Normal file
2
ggr/data/supervisor.d/ggr.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[program:ggr]
|
||||
command = ggr -listen :4444 -users /etc/grid-router/users.htpasswd -quotaDir /etc/grid-router/quota -guests-allowed
|
||||
Reference in New Issue
Block a user