Last active
December 9, 2017 15:55
-
-
Save nikoly/c88cfdcbcf18de315629f52626136493 to your computer and use it in GitHub Desktop.
docker-compose file to run selenium tests in a user defined network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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