This Docker image contains CasperJS, a web testing tool, ready to run from the command line.
It lives on GitHub at github.com/stblassitude/docker-casperjs, and on Docker Hub at hub.docker.com/r/stblassitude/casperjs/.
:1.0.0
(also:latest
) contains PhantomJS 2.1.1 and CasperJS 1.1.4
The entrypoint for this image is /usr/bin/casper
, so you can invoke Casper scripts like so:
docker run --rm -it -v $PWD:/app stblassitude/casperjs hello.js
This will run hello.js
from the current directory with Casper, and display output in the terminal.
The volume /app
should be bind mounted to your current working directory, or whereever you keep your Casper scripts.
This image also contains PhantomJS. You can invoke PhantomJS directly by overriding the entrypoint, like so:
docker run --rm -it -v $PWD:/app --entrypoint=/usr/bin/phantomjs stblassitude/casperjs --help
I'm building this image this way:
docker build -t stblassitude/casperjs .