Skip to content

jfloff/dockerfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Dockerfiles

Collection of Dockerfiles for various uses

Spark

Builds gettyimages/docker-spark Runs Spark in local mode with Scala and SBT installed.

Building

Download Dockerfile to your local machine and build the image:

docker build --rm -t jfloff/spark .

Running

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

RStudio

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.

Running

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

More info

Jekyll

Runs Jekyll blog generator, which is available via browser.

Builds jekyll/jekyll:builder, which is targeted at building Jekyll sites.

Running

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

More info

Play Framework

Builds dordoka/play-framework docker image for Play Framework.

Running

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

License

MIT License

About

Collection of Dockerfiles for various uses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published