A docker image for testing angular 2 apps using protractor, karma and chrome
480
Run testing tools like protractor inside a container. https://github.com/shusson/docker-chrome-headless
Example usage:
$ docker run -it --privileged --rm --net=host -v /dev/shm:/dev/shm -v $(pwd):/tests shusson/chrome-tester [commands to run in xvbf]
docker for mac WARNING:
If you are using docker for mac you will have to manually tell the container how to connect to the host see (https://forums.docker.com/t/access-host-not-vm-from-inside-container/11747/10)
For example:
$ sudo ifconfig lo0 alias 10.200.10.1/24
$ docker run -it --rm --privileged --net=host --add-host=docker.local:10.200.10.1 -v /dev/shm:/dev/shm -v $(pwd):/tests shusson/chrome-tester protractor --baseUrl='http://docker.local:5013'
Content type
Image
Digest
Size
340 MB
Last updated
over 9 years ago
docker pull shusson/chrome-tester