2019-08-22 21:21:41 +08:00
|
|
|
# it is intended that this be used exclusive of all other docker-compose.*yml files in CI
|
2019-09-11 23:49:35 +08:00
|
|
|
version: "2.3"
|
2019-08-22 21:21:41 +08:00
|
|
|
services:
|
2020-05-02 05:04:18 +08:00
|
|
|
canvas:
|
2019-08-22 21:21:41 +08:00
|
|
|
links:
|
|
|
|
- selenium-chrome
|
2019-09-11 23:49:35 +08:00
|
|
|
- canvasrceapi
|
2019-08-22 21:21:41 +08:00
|
|
|
environment:
|
2022-02-10 06:53:07 +08:00
|
|
|
remote_url: http://selenium-hub:4444/wd/hub
|
2019-08-22 21:21:41 +08:00
|
|
|
browser: chrome
|
2019-09-11 23:49:35 +08:00
|
|
|
RCE_HOST: "http://canvasrceapi"
|
2019-10-24 00:23:57 +08:00
|
|
|
# these are so we can use prod compiled assets in test environment
|
2019-09-11 23:49:35 +08:00
|
|
|
USE_OPTIMIZED_JS: 'true'
|
|
|
|
SASS_STYLE: 'compressed'
|
2019-08-22 21:21:41 +08:00
|
|
|
|
2019-09-11 23:49:35 +08:00
|
|
|
canvasrceapi:
|
2020-12-07 22:46:57 +08:00
|
|
|
image: starlord.inscloudgate.net/jenkins/canvas-rce-api
|
2019-09-11 23:49:35 +08:00
|
|
|
environment:
|
|
|
|
ECOSYSTEM_KEY: "astringthatisactually32byteslong"
|
|
|
|
ECOSYSTEM_SECRET: "astringthatisactually32byteslong"
|
|
|
|
HTTP_PROTOCOL_OVERRIDE: "http"
|
|
|
|
NODE_ENV: production
|
|
|
|
PASSENGER_MIN_INSTANCES: 2
|
|
|
|
PASSENGER_MAX_POOL_SIZE: 6
|
|
|
|
NGINX_WORKER_CONNECTIONS: 2048
|
2020-12-07 22:46:57 +08:00
|
|
|
STATSD_HOST: 127.0.0.1
|
|
|
|
STATSD_PORT: 8125
|
2020-06-16 20:52:05 +08:00
|
|
|
init: true
|
2022-02-10 06:53:07 +08:00
|
|
|
|
|
|
|
selenium-hub:
|
2024-01-16 23:56:58 +08:00
|
|
|
image: starlord.inscloudgate.net/jenkins/selenium-hub:${HUB_VERSION:-4.16}
|
2022-02-10 06:53:07 +08:00
|
|
|
environment:
|
2024-06-08 01:44:04 +08:00
|
|
|
GRID_BROWSER_TIMEOUT: 5000
|
2022-02-10 06:53:07 +08:00
|
|
|
|
|
|
|
selenium-chrome: &NODE_CHROME
|
2024-01-16 23:56:58 +08:00
|
|
|
image: starlord.inscloudgate.net/jenkins/selenium-node-chrome:${CHROME_VERSION:-120.0}
|
2022-02-10 06:53:07 +08:00
|
|
|
environment: &NODE_CHROME_ENV
|
|
|
|
SE_EVENT_BUS_HOST: selenium-hub
|
|
|
|
SE_EVENT_BUS_PUBLISH_PORT: 4442
|
|
|
|
SE_EVENT_BUS_SUBSCRIBE_PORT: 4443
|
|
|
|
HUB_PORT_4444_TCP_ADDR: selenium-hub
|
|
|
|
HUB_PORT_4444_TCP_PORT: 4444
|
|
|
|
SE_NODE_HOST: selenium-chrome
|
|
|
|
JAVA_OPTS: '-Dwebdriver.chrome.whitelistedIps='
|
|
|
|
init: true
|
|
|
|
links:
|
|
|
|
- selenium-hub
|
|
|
|
|
|
|
|
selenium-chrome2:
|
|
|
|
<<: *NODE_CHROME
|
|
|
|
environment:
|
|
|
|
<<: *NODE_CHROME_ENV
|
|
|
|
SE_NODE_HOST: selenium-chrome2
|
|
|
|
|
|
|
|
selenium-chrome3:
|
|
|
|
<<: *NODE_CHROME
|
|
|
|
environment:
|
|
|
|
<<: *NODE_CHROME_ENV
|
|
|
|
SE_NODE_HOST: selenium-chrome3
|
|
|
|
|
|
|
|
selenium-chrome4:
|
|
|
|
<<: *NODE_CHROME
|
|
|
|
environment:
|
|
|
|
<<: *NODE_CHROME_ENV
|
|
|
|
SE_NODE_HOST: selenium-chrome4
|
|
|
|
|
|
|
|
selenium-chrome5:
|
|
|
|
<<: *NODE_CHROME
|
|
|
|
environment:
|
|
|
|
<<: *NODE_CHROME_ENV
|
|
|
|
SE_NODE_HOST: selenium-chrome5
|
|
|
|
|
|
|
|
selenium-chrome6:
|
|
|
|
<<: *NODE_CHROME
|
|
|
|
environment:
|
|
|
|
<<: *NODE_CHROME_ENV
|
2022-02-25 07:56:07 +08:00
|
|
|
SE_NODE_HOST: selenium-chrome6
|