Skip to content

Debian & PhantomJS based CasperJS base image for Docker

License

Notifications You must be signed in to change notification settings

obgr/D-CasperJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

D-CasperJS

Debian 9 & PhantomJS based CasperJS image for Docker.


Why CasperJS & PhantomJS?

They are basically great tools for creating Automated web based test suites.

CasperJS:

CasperJS allows you to build full navigation scenarios using high-level functions and a straight forward interface to accomplish all sizes of tasks.

PhantomJS:

PhantomJS is a headless WebKit scriptable with a JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.


Docker - Usage

Run PhantomJS file in container

Example: Run hello.js from your working directory in a container.

docker run --rm -v $(pwd)/hello.js:/hello.js obgr/d-casperjs phantomjs hello.js

Run CasperJS file in container

Example: Run casper-test.js from your working directory in a container.

docker run --rm -v $(pwd)/casper-test.js:/casper-test.js obgr/d-casperjs casperjs casper-test.js

Run Image interactively

docker run -it obgr/d-casperjs:latest

Pull Image

docker pull obgr/d-casperjs:latest

Base your image on

Start off your Dockerfile with:

FROM obgr/d-casperjs:latest

About

Debian & PhantomJS based CasperJS base image for Docker

Resources

License

Stars

Watchers

Forks

Packages

No packages published