1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-12 04:23:04 +02:00

update selenium

This commit is contained in:
kev 2021-10-14 18:41:53 +08:00
parent d8fe94ca6d
commit 545c8150bc
2 changed files with 4 additions and 3 deletions

View File

@ -155,6 +155,7 @@ driver.quit();
```bash ```bash
# VNC # VNC
$ open vnc://:secret@127.0.0.1:5900 $ open vnc://:secret@127.0.0.1:5900
$ open http://127.0.0.1:7900
# PYTHON # PYTHON
$ pip3 install selenium $ pip3 install selenium

View File

@ -8,13 +8,13 @@ services:
- "4442:4442" - "4442:4442"
- "4443:4443" - "4443:4443"
- "4444:4444" - "4444:4444"
shm_size: 2gb
restart: unless-stopped restart: unless-stopped
chrome: chrome:
image: selenium/node-chrome:4 image: selenium/node-chrome:4
ports: ports:
- "5900:5900" - "5900:5900"
- "7900:7900"
environment: environment:
- SE_EVENT_BUS_HOST=hub - SE_EVENT_BUS_HOST=hub
- SE_EVENT_BUS_PUBLISH_PORT=4442 - SE_EVENT_BUS_PUBLISH_PORT=4442
@ -30,10 +30,10 @@ services:
image: selenium/video image: selenium/video
volumes: volumes:
- ./data:/videos - ./data:/videos
depends_on:
- chrome
environment: environment:
- DISPLAY_CONTAINER_NAME=chrome - DISPLAY_CONTAINER_NAME=chrome
- FILE_NAME=output.mp4 - FILE_NAME=output.mp4
shm_size: 2gb shm_size: 2gb
depends_on:
- chrome
restart: unless-stopped restart: unless-stopped