Collection of Dockerfiles for various uses
Builds gettyimages/docker-spark Runs Spark in local mode with Scala and SBT installed.
Download Dockerfile to your local machine and build the image:
docker build --rm -t jfloff/spark .
docker run --rm -v "$(pwd):/home/app" -w /home/app -it -p 4040:4040 jfloff/spark bash
Inside the image you can run spark-shell
, spark-submit
, amongst others. Example of spark-submit
Scala class:
spark-submit --class "Main" --driver-memory 2G --master local target/main.jar <args>
Note: driver-memory
is used to increase memory allocated into a spark-submit job
Runs RStudio server, which is available via browser.
Builds rocker/hadleyverse, which extends rocker/rstudio
, and provides rmarkdown
, knitr
, pandoc
, and latex tools for authoring papers and presentations in the RStudio environment. Also provides popular packages by Hadley Wickham such as ggplot2
, dplyr
, tidyr
, devtools
, httr
, and others.
docker run --rm -v "$(pwd)":/home/r -w /home/r -p 8787:8787 -e ROOT=TRUE -ti rocker/hadleyverse
Browse to https://<docker-ip>:8787
so you can view the RStudio. Log in using:
username: rstudio
password: rstudio
You can get your docker-ip
at:
docker machine ip default
Launch an R terminal session instead of using RStudio:
docker run --rm -v "$(pwd)":/home/r -w /home/r -it rocker/hadleyverse /usr/bin/R
Launch plain bash session:
docker run --rm -v "$(pwd)":/home/r -w /home/r -it rocker/hadleyverse /bin/bash
Runs Jekyll blog generator, which is available via browser.
Builds jekyll/jekyll:builder, which is targeted at building Jekyll sites.
docker run --rm --label=jekyll --volume=$(pwd):/srv/jekyll \
-it -p $(docker-machine ip `docker-machine active`):4000:4000 \
jekyll/jekyll:builder
Browse to https://<docker-ip>:8787
so you can view your generated site. You can get your docker-ip
at:
docker machine ip default
Builds dordoka/play-framework docker image for Play Framework.
docker run --rm -it -v "$(pwd)/<app>:/home/play/Code" -p 9000:9000 -p 9999:9999 -p 8888:8888 dordoka/play-framework
Once inside the shell run:
activator run