A self-contained Docker image to run BackstopJS with no external dependencies.
Features:
Use this image as if you were using a binary.
Working directory is expected to be mounted at /src in the container.
$ docker run --rm -v $(pwd):/src docksal/backstopjs --version
BackstopJS 2.0.2
You can also add a shell alias (in .bashrc, .zshrc, etc.) for convenience.
alias backstop='docker run --rm -v $(pwd):/src docksal/backstopjs "$@"'
Restart your shell or open a new one, then
$ backstopjs --version
BackstopJS 2.0.2
docker run --rm -v $(pwd):/src docksal/backstopjs genConfig
docker run --rm -v $(pwd):/src docksal/backstopjs reference
docker run --rm -v $(pwd):/src docksal/backstopjs test
By default BackstopJS is using PhantomJS to take screenshots.
You can also use SlimerJS/Firefox by setting "engine": "slimerjs"
in the configuration file.
Both SlimerJS and Firefox ESR (extended support release) are installed in the container.
backstop openReport is not (yet) supported.
You will need a running webserver to view HTML reports generated by BackstopJS.
The following command will start a bash session in the container.
docker run --rm -v $(pwd):/src -it --entrypoint=bash docksal/backstopjs
Content type
Image
Digest
Size
186.8 MB
Last updated
about 9 years ago
docker pull hurlum/backstopjs