Created
August 8, 2020 00:18
-
-
Save GetoXs/1d1469b4fb4ac83d39e7efc3d24cd630 to your computer and use it in GitHub Desktop.
Docker with Selenium hub + Chrome driver + Maven dev
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
ersion: "3" | |
services: | |
selenium-hub: | |
image: selenium/hub:3.141.59 | |
container_name: selenium-hub | |
ports: | |
- "4444:4444" | |
chrome: | |
image: selenium/node-chrome:3.141.59 | |
container_name: chrome | |
volumes: | |
- /dev/shm:/dev/shm | |
depends_on: | |
- selenium-hub | |
environment: | |
- HUB_HOST=selenium-hub | |
- HUB_PORT=4444 | |
- JAVA_OPTS=-Dwebdriver.chrome.whitelistedIps= | |
mvn: | |
image: maven:adoptopenjdk | |
container_name: mvn | |
volumes: | |
- ~/.m2:/root/.m2 | |
- ./:/usr/src/mvn-src | |
working_dir: /usr/src/mvn-src | |
command: tail -f /dev/null | |
# command: mvn clean install -Dselenium-hub.host=selenium-hub | |
links: | |
- selenium-hub | |
- chrome | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment