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
- Host: GitHub
- URL: https://github.com/grem11n/maven-scala-container
- Owner: grem11n
- License: apache-2.0
- Created: 2016-11-09T13:04:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-10T09:30:36.000Z (over 8 years ago)
- Last Synced: 2025-02-07T14:40:08.495Z (4 months ago)
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)