- Assume Selenium Hub listen on docker host 172.17.0.1:4444
- docker (refer this)
- docker-compose (refer this)
- docker-compose.yml (updated from here)
- version: "3"
- services:
- chrome:
- image: selenium/node-chrome:3.141.59-neon
- volumes:
- - /dev/shm:/dev/shm
- environment:
- - HUB_HOST=172.17.0.1
- - HUB_PORT=4444
- - REMOTE_HOST=http://<Host_or_IP>:6666
- - NODE_MAX_INSTANCES=5
- ports:
- - "6666:5555"
- firefox:
- image: selenium/node-firefox:3.141.59-neon
- volumes:
- - /dev/shm:/dev/shm
- environment:
- - HUB_HOST=172.17.0.1
- - HUB_PORT=4444
- - REMOTE_HOST=http://<Host_or_IP>:7777
- - NODE_MAX_INSTANCES=5
- ports:
- - "7777:5555"
星期二, 5月 14, 2019
New Selenium Node (Chrome / Firefox) on CentOS without GUI
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言