Skip to content

Instantly share code, notes, and snippets.

@nikoly
Last active December 9, 2017 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikoly/c88cfdcbcf18de315629f52626136493 to your computer and use it in GitHub Desktop.
Save nikoly/c88cfdcbcf18de315629f52626136493 to your computer and use it in GitHub Desktop.
docker-compose file to run selenium tests in a user defined network
version: '2'
services:
selenium_hub:
image: selenium/hub
networks:
robottestsnw: {}
ports:
- "4444"
firefoxnode:
image: selenium/node-firefox
networks:
robottestsnw: {}
environment:
- HUB_PORT_4444_TCP_ADDR=selenium_hub
- HUB_PORT_4444_TCP_PORT=4444
chromenode:
image: selenium/node-chrome
networks:
robottestsnw: {}
environment:
- HUB_PORT_4444_TCP_ADDR=selenium_hub
- HUB_PORT_4444_TCP_PORT=4444
ports:
- 5555
app:
build: app/.
networks:
robottestsnw: {}
ports:
- "80"
robottests:
networks:
robottestsnw: {}
command: testui/wait-for-it.sh -t 15 chromenode:5555 -- robot -d reports --variablefile variables/config.py --variable BROWSER:chrome tests/
depends_on:
- selenium_hub
- chromenode
- firefoxnode
- app
build: testui/.
volumes:
- {WORKSPACE}/reports:/frontend-integration-tests/reports
networks:
robottestsnw:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment