Skip to content

Docker image with Google Chrome & ChromeDriver

License

Notifications You must be signed in to change notification settings

Zaboday/chrome-in-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chrome

Google Chrome & ChromeDriver | In Docker container

Build Build Docker Pulls Issues License

What is this?

This is a docker image, built for running browser tests.

This image includes:

  • supervisor
  • xfonts
  • chromedriver
  • google-chrome-stable
  • xvfb

Supported tags

Tag name Details Full image name Dockerfile
latest Size 512k/chrome-in-docker:latest link
83 Size 512k/chrome-in-docker:83 link
81 Size 512k/chrome-in-docker:81 link
80 Size 512k/chrome-in-docker:80 link
79 Size 512k/chrome-in-docker:79 link
78 Size 512k/chrome-in-docker:78 link
77 Size 512k/chrome-in-docker:77 link
76 Size 512k/chrome-in-docker:76 link
75 Size 512k/chrome-in-docker:75 link
74 Size 512k/chrome-in-docker:74 link
73 Size 512k/chrome-in-docker:73 link
72 Size 512k/chrome-in-docker:72 link
71 Size 512k/chrome-in-docker:71 link
70 Size 512k/chrome-in-docker:70 link

Note: laravel/dusk version ^3.0 successfully tested with tags 73 and 74. laravel/dusk versions ^4.0 and ^5.0 require chrome version between 70 and 73.

Allowed environment variables

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

Usage example

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

License

MIT. Use anywhere for your pleasure.

About

Docker image with Google Chrome & ChromeDriver

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published