Skip to content

scalacenter/docker-scala

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Scala Platform Docker image

Depend on it with scalacenter/scala-docs:1.5.

The Scala Platform Docker image is built on top of the Alpine Linux image, which is only a 5MB image, and contains JDKs, SBT extras, git, openssh and Jekyll.

It's also bundled with some scripts that are meant to be used by Scala Platform's Drone CI and sbt-platform.

Supported JDKs

  • JDK8 at /usr/lib/jvm/jdk8/bin (default).
  • JDK10 at /usr/lib/jvm/jdk10/bin.
  • JDK11 at /usr/lib/jvm/jdk11/bin.

If you want to run your program with any of these JDKs, redefine $JAVA_HOME and add the new home to the beginning of the $PATH (the default jdk 8 will be at the end of it).

For example, the following statements switch to JDK 11 (remember that environment variables are only temporary):

$ export JAVA_HOME="/usr/lib/jvm/jdk8/bin"
$ export PATH="$JAVA_HOME:$PATH"
$ java -version
java version "11" 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11+28)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)

About

An image to run Scala (and related utils, like native and Scala.js) on several JDKs, customized for Drone.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 44.9%
  • Shell 43.3%
  • Clojure 11.8%