Public Repository

Last pushed: 2 years ago
Short Description
Development environment for Scala
Full Description

This is a base image built on ubuntu:latest and with Scala 2.9.2 installed. The username is scala with git and vim installed as tools. Syntax highlighting for scala is also installed with Vundle and active for the scala user.

Run the container: docker run -i -t briantwalter/scala-env:latest ./runscala

There is sample code in the ~/examples directory. The tutorials themselves are built from the guide here: http://www.scala-lang.org/documentation/getting-started.html

Typing scala at the base bash shell will give you an interactive scala shell.

Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.7.0_65).
Type in expressions to have them evaluated.
Type :help for more information.

scala>

The HelloWorld.scala file can be found in the ~/examples directory.

// Hello World in Scala
// Example code and tutorial is here:
// http://www.scala-lang.org/documentation/getting-started.html

object HelloWorld {
  def main(args: Array[String]) {
    println("Hello, world!")
  }
}

The script.sh file is also in the ~/examples directory.

#!/bin/sh

## Hello World in Scala
## Example code and tutorial is here:
## http://www.scala-lang.org/documentation/getting-started.html

exec scala "$0" "$@"
!#
object HelloWorld extends App {
  println("Hello, world!")
}
HelloWorld.main(args)
Docker Pull Command
Owner
briantwalter

Comments (0)