Sign inSign up

markerichanson/docker-scala-sbt

By markerichanson

•Updated over 7 years ago

image to build spark apps using sbt

Image
0

3.2K

markerichanson/docker-scala-sbt repository overview

⁠docker-scala-sbt

Scala sbt image built and tested for spark builds

⁠Pulling

docker pull markerichanson/docker-scala-sbt

⁠Building

$ git clone https://github.com/markerichanson/docker-scala-sbt.git
Cloning into 'docker-scala-sbt'...
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 7 (delta 1), reused 7 (delta 1), pack-reused 0
Unpacking objects: 100% (7/7), done.
Checking connectivity... done.

docker build -f docker-scala-sbt/Dockerfile -t "markerichanson/docker-scala-sbt:2.11.8-0.13.13" --build-arg SBT_VERSION=0.13.13 .

⁠docker run parms

⁠/root/.ivy2

Ivy2 cache location in your local file system so you don't have to download dependencies on every build. This is safe to share across different projects.

-v ~/.ivy2/:/root/.ivy2

⁠/root/project

The root directory of the project to build, i.e., the directory with the .sbt file in it.

-v $PWD:/root/project

⁠Suggested aliases

# for direct invocation of sbt on your command line
alias sbt='docker run -it  -v ~/.ivy2/:/root/.ivy2  -v $PWD:/root/project markerichanson/docker-scala-sbt:2.11.8-0.13.13 sbt'
# for a bash session in the sbt environment, though this isn't likely needed except for debuging the image
alias sbt_bash='docker run -it  -v ~/.ivy2/:/root/.ivy2  -v $PWD:/root/project markerichanson/docker-scala-sbt:2.11.8-0.13.13 bash --login'

Tag summary

Content type

Image

Digest

Size

137.5 MB

Last updated

over 7 years ago

docker pull markerichanson/docker-scala-sbt:2.12.7-1.2.8