This docker instances is the all in stop for running karma with a compiled phantomjs.
The supplied Dockerfile
will create an images for docker containers
with ruby, nodejs and phantomjs. Mainly to run the headless tests of karma.
The reason that phantomjs is contained in a git repository is because of the time (> 1.5h) it takes to build phantomjs from source on my macbook. To avoid this time, a separate Dockerfile is used to build the binary.
This README assume a working docker environment, for OSX (boot2docker) provides a adequate way to set this up.
$ docker pull edwinvdgraaf/ruby-node-phantomjs
$ docker build edwinvdgraaf/ruby-node-phantomjs .
$ docker run -t -i edwinvdgraaf/ruby-node-phantomjs
$ bundle exec rspec