Simple Spark example build with Docker.
At root directory, run:
docker build -t filipecorrea/spark .
This will take a while for the first time since it downloads and installs Maven and downloads all the project’s dependencies. Every subsequent start of this build will only take a few seconds, as again everything will be already cached.
Once the image is built, start it with:
docker run -d -p 4567:4567 filipecorrea/spark
And test it with:
In Mac OS, you should first get the Docker machine IP. Test it with:
open "http://$(docker-machine ip default):4567/"