Based on ruby:1.9.3
- phantomjs 1.9.7
Derived from https://registry.hub.docker.com/u/cmfatih/phantomjs/dockerfile/
and adapted to use the official Ruby base image
with the addition of ONBUILD triggers to copy the current working directory
into a volume and install the bundles.
Create a new docker file:
[(re)build the image when the tests change]
docker build -t cucumber .
[run the image]
docker run --rm -it -e HOST="http://server:port" cucumber
Better yet... do it in one step.
docker build -t cucumber . && docker run --rm -it -e HOST="http://server:port" cucumber
Thanks gyulaweber, it's great that it works & I hope that it's useful for you.
Everything works perfectly, i have built the image from the Dockerfile, very nice job, thank you!