Code Monkey home page Code Monkey logo

chrome-in-docker's Introduction

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.

chrome-in-docker's People

Contributors

tarampampam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.