HUB
Sign inSign up

royge/chromeheadless

By royge

•Updated about 8 years ago

Container with node, headless chrome browser, curl and GIT on Ubuntu 16.04

Image
0

50K+

royge/chromeheadless repository overview

⁠chromeheadless

Build Status

Builds docker image based on Ubuntu 16.04(Xenial) with Chromium browser, Node 8, CURL and GIT.

The primary purpose of the image is to be able to run karma for my AngularJS project.

⁠Getting Started

  1. Get the image

    Option 1: Pull from docker hub.

    $ docker pull royge/chromeheadless
    

    Option 2: Build from source

    $ git clone https://github.com/royge/chromeheadless.git
    $ cd chromeheadless
    $ docker build -t chromeheadless .
    
  2. Run the container

    Create runtests.sh file.

    #!/bin/bash
    
    export CHROME_BIN=chromium-browser
    npm run test-single-run
    

    Execute docker run command.

    $ chmod +x runtests.sh
    $ docker run -it -v `pwd`:/app -w=/app royge/chromeheadless ./runtests.sh
    
Tag summary
Recent tags
Content type
Image
Digest
Size
322.6 MB
Last updated
about 8 years ago
docker pull royge/chromeheadless:latest