An open API service indexing awesome lists of open source software.

https://github.com/grem11n/maven-scala-container

Maven with Scala Docker container
https://github.com/grem11n/maven-scala-container

Last synced: 2 months ago
JSON representation

Maven with Scala Docker container

Awesome Lists containing this project

README

        

# 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 .```

3. 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](https://zeppelin.apache.org/)

## Tests

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

## References

- Docker starter guide: [Get started with Docker](https://docs.docker.com/engine/getstarted/)

- Maven quick guide: [Maven in 5 minutes](https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)