Skip to content

Instantly share code, notes, and snippets.

@alfredlucero
Created September 24, 2019 21:34
Show Gist options
  • Save alfredlucero/d2df4533a4a49d5b2f2c4a0eb5590ff8 to your computer and use it in GitHub Desktop.
Save alfredlucero/d2df4533a4a49d5b2f2c4a0eb5590ff8 to your computer and use it in GitHub Desktop.
docker-compose.uitests.yml - STUI to Webdriver SG Blog
version: '2.1'
services:
selenium-hub:
image: 'selenium/hub:latest'
ports:
- '4444:4444'
environment:
SE_OPTS: '-timeout 10000 -browserTimeout 10000'
JAVA_OPTS: '-Xmx1024m'
selenium-chrome:
image: 'selenium/node-chrome-debug:latest'
ports:
- '5900:5900'
depends_on:
- selenium-hub
environment:
HUB_PORT_4444_TCP_ADDR: selenium-hub
HUB_PORT_4444_TCP_PORT: 4444
volumes:
- '/dev/shm:/dev/shm'
uitests:
image: <private_docker_image_path>${PIPELINE_SUFFIX}:${VERSION:-latest}
build:
context: .
Dockerfile: Dockerfile.uitests
environment:
- VERSION
- PIPELINE_SUFFIX
command: tail -f /dev/null
depends_on:
- selenium-chrome
volumes:
- './reports:/root/.npm/_logs'
- './reports:/opt/frontendapp/reports'
- './errorShots:/opt/frontendapp/errorShots'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment