This is a docker image, built for running browser
tests.
This image includes:
supervisor
xfonts
chromedriver
google-chrome-stable
xvfb
Tag name | Details | Full image name | Dockerfile |
---|---|---|---|
latest |
512k/chrome-in-docker:latest |
link | |
83 |
512k/chrome-in-docker:83 |
link | |
81 |
512k/chrome-in-docker:81 |
link | |
80 |
512k/chrome-in-docker:80 |
link | |
79 |
512k/chrome-in-docker:79 |
link | |
78 |
512k/chrome-in-docker:78 |
link | |
77 |
512k/chrome-in-docker:77 |
link | |
76 |
512k/chrome-in-docker:76 |
link | |
75 |
512k/chrome-in-docker:75 |
link | |
74 |
512k/chrome-in-docker:74 |
link | |
73 |
512k/chrome-in-docker:73 |
link | |
72 |
512k/chrome-in-docker:72 |
link | |
71 |
512k/chrome-in-docker:71 |
link | |
70 |
512k/chrome-in-docker:70 |
link |
Note:
laravel/dusk
version^3.0
successfully tested with tags73
and74
.laravel/dusk
versions^4.0
and^5.0
require chrome version between70
and73
.
Variable name | Description | Example |
---|---|---|
SCREEN_WIDTH |
Screen width | 1440 |
SCREEN_HEIGHT |
Screen height | 900 |
CHROMEDRIVER_PORT |
Chrome driver port | 9515 |
START_TIMEOUT |
Browser start timeout | 15 |
DISPLAY_NUM |
Display number | 10 |
SCREEN_NUM |
Screen number | 0 |
Using docker-compose
:
version: '3.2'
networks:
app-network:
driver: bridge
services:
selenium:
image: 512k/chrome-in-docker:latest
restart: on-failure
environment:
SCREEN_WIDTH: 1440
SCREEN_HEIGHT: 900
CHROMEDRIVER_PORT: 9515
START_TIMEOUT: 15
ports:
- 9515
networks:
- app-network
MIT. Use anywhere for your pleasure.