/maven-scala-container

Maven with Scala Docker container

Apache License 2.0Apache-2.0

Docker container with Maven Java7 and Scala

![logo] (https://binfalse.de/assets/media/pics/2016/mvn-docker.jpg "Docker & Apache")

Description

This could be useful if you don't want to install Maven locally

Usage

  1. Put this Dockerfile into your project directory

  2. Build the image with, for example (you can call image as you want)

docker build -t maven .

  1. Build your project with

docker run -i -t -v /your/project/directory:/usr/src:rw maven mvn clean install -f /usr/src/pom.xml

Properties

  • Java version: 1.7.0_111
  • Scala version: 2.9.1-1
  • sbt version: 0.13.13
  • Maven version: 3.3.9
  • NPM version: 1.4.21

Notes

This image would contain npm as well. It was needed to build Apache Zeppelin

Tests

Tested on macOS 10.12.1 (Sierra) with Docker for Mac Version 1.12.1 (build: 12133)

References