Simple example of using Docker with Golang to create chrome-as-a-service.
- Docker >= 1.10
- Golang >= 1.7
# generate SSH public/private key pair for debugging purposes
ssh-keygen -f ./id_rsa
# build docker image
docker build -t caas .
# get Go packages
go getYou can start the web server with the following command:
go run main.goNow when you visit http://localhost:8080/new you should see something like this:

For debugging purposes you can access created Docker container via:
ssh root@172.17.0.8 -i id_rsawhere 172.17.0.8 is the IP of the container displayed on the web page.