/docker-scala

Docker image providing Java & Scala

Primary LanguageDockerfileMIT LicenseMIT

Docker Automated build Docker Build Status Docker Pulls Docker Stars

Travis Status License

Scala Docker Image

Supported tags and respective Dockerfile links

See also the previous versions of the Scala Docker image.


logo

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.

Check the Scala documentation to get more information about the Scala programming language.

Quick Start

This image provides an installation of the Scala environment. It consists on 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 on bigtruedata/scala image execution (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'

Image Variants

This image is based on the openjdk:8 image to provide the Java installation required by the Scala environment. This repository contains a default image for Scala and an alpine-based image. The standard image is referenced using the Scala version as image tag (like bigtruedata/scala:2.11.7). The alpine-based image is used where small Docker images are required. They are referenced using the suffix -alpine (like bigtruedata/scala:2.11.7-alpine).

The different versions of this image correspond tho the released versions of Scala that can be downloaded from the Scala downloads website. New Scala versions are generated as long as they are released and become available on download website.

Previous Versions

License

The MIT License (MIT)

Copyright © 2017 BigTrueData

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.