Sign inSign up

martinreus/node-chrome

By martinreus

Updated about 8 years ago

Docker image for CI builds, based on node with Chrome installed for UI tests.

Image
0

265

martinreus/node-chrome repository overview

node-chrome

This is a Docker image based on node which also contains an installation of the latest Chrome Browser, which enables javascript unit tests on a headless Chrome in CI environments.

Using Karma and Docker Container in CI tests

To be able to use Chrome Headless, it is necessary to create a custom ChromeHeadless in karma.conf.js configuration which disables sandboxing, so that Chrome has sufficient permissions on a Docker Container.

customLaunchers: {
  ChromeNoSandboxing: {
    base: 'ChromeHeadless',
    flags: [
      '--no-sandbox',
    ]
  }
},

Docker Hub Image

https://hub.docker.com/r/martinreus/node-chrome/

Tag summary

Content type

Image

Digest

Size

226 MB

Last updated

about 8 years ago

docker pull martinreus/node-chrome