run protractor test on headless ubuntu server in docker
Docker installation: https://docs.docker.com/installation/ubuntulinux/
For Mac: https://docs.docker.com/docker-for-mac/install/
For Ubuntu: https://docs.docker.com/engine/installation/linux/ubuntu/
if you have installed, try to upgrade. #docker-machine upgrade
then, logout and relogin ubuntu.
#git clone https://github.com/owen-pengtao/HeadlessProtractor.git HeadlessProtractor #cd HeadlessProtractor/docker #./rebuild_all.sh
if you are using ubuntu, maybe need run below command to change folder ~/.npm_docker owner and group.
#sudo chown -R your_name:your_group ~/.npm_docker
#cd HeadlessProtractor/protractor #./run-in-docker.sh
#cd HeadlessProtractor/protractor #npm install #grunt install #grunt test:e2e