2.12.2
,2.12
,latest
(2.12.2/Dockerfile)2.12.1
(2.12.1/Dockerfile)2.11.11
,2.11
(2.11.11/Dockerfile)2.11.8
(2.11.8/Dockerfile)2.10.6
,2.10
(2.10.6/Dockerfile)
Scala is an acronym for “Scalable Language”. This means that Scala grows with you. You can play with it by typing one-line expressions and observing the results. But you can also rely on it for large mission critical systems.
This image provides an specific version of the Scala environment. It consists of the Scala REPL (scala), the Scala compiler (scalac), the Scala class file decoder (scalap), and the Scala documentation generation tool (scaladoc). If not specified any command to execute the bigtruedata/scala
image (as specified in the following example), the Scala REPL will be launched.
docker run --rm --tty --interactive bigtruedata/scala
This image can also be use in a standalone fashion the same way as if the environment was directly installed in the local machine. You just need to provide the path to the directory contained the source files to work with and the command to be executed. To avoid writting tons of commands, the following aliases may be handy:
alias scala='docker run --rm --tty --interactive --volume $PWD:/app bigtruedata/scala'
alias scalac='docker run --rm --tty --interactive --volume $PWD:/app bigtruedata/scala scalac'
alias scalap='docker run --rm --tty --interactive --volume $PWD:/app bigtruedata/scala scalap'
alias scaladoc='docker run --rm --tty --interactive --volume $PWD:/app bigtruedata/scala scaladoc'
This image is based on the openjdk:8-alpine
image to provide the Java installation required by the Scala environment. The different versions of this image correspond tho the released versions of Scala that can be downloaded from the Scala downloads website.