Coder Social home page Coder Social logo

nodejs-chrome-xvfb-docker's Introduction

Nodejs-Chrome-Xvfb

This image is intended for anyone who wants to be able to run tests of their Node.js application using an actual instance of Chrome. It's based of the Nodejs-Chrome Docker image and only additionally installs the bare minimum necessities to run Chrome. It makes no assumption of what testing framework you want to use (Karma, Selenium-Webdriver, Protractor, etc.) and therefore does not come with any of these installed. This image is intended to be a small as possible while still supporting the official releases of Node.js, Chrome, and Xvfb.

How to use it

Install all Node.js modules in the container environment:

docker run -v /path/to/node/app:/wd -w /wd thompsnm/nodejs-chrome-xvfb npm install

Then execute your tests inside the container:

docker run -v /path/to/node/app:/wd -w /wd thompsnm/nodejs-chrome-xvfb npm test

Version Details

Docker Hub is configured to tag builds of the master branch as latest, so the Dockerfile on master should always pull from node:latest to keep the two images in sync.

Docker Hub is configured to tag builds of branches with the individual branch names. Therefore to create a tag in Docker hub that references a particular Node.js version, create a branch, update the Dockerfile to pull from the specific Node.js official Docker image tag, and ensure the name of the branch matches the tag in the Node.js image. For instance, a branch named carbon exists with a Dockerfile that pulls from the Node.js carbon Docker image.

Docker Hub is configured to rebuild this image on every build of the Node.js official image, thereby ensuring the Node.js version is always up to date.

nodejs-chrome-xvfb-docker's People

Watchers

James Cloos avatar Nathan Thompson 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.