Public | Automated Build

Last pushed: a year ago
Short Description
Alpine Dockerized openjdk-8 + maven + sbt, published to the public Docker Hub via automated build.
Full Description

Maven + OpenJDK 8 on Alpine Linux

This repository contains an Alpine Dockerized openjdk-8 + Maven + SBT, published to the public Docker Hub via automated build mechanism.

Usage

Please notice this image is configured with a workdir /code, so make sure you mount such volume first.

General usage

$ docker run -v $(pwd):/code iflavoursbv/mvn-sbt-openjdk-8-alpine:latest 'your-commands-here'

You can run mvn commands like mvn -v simply:

$ docker run -ti --rm iflavoursbv/mvn-sbt-openjdk-8-alpine:latest mvn -v

You can run the default sbt command simply:

$ docker run -ti --rm iflavoursbv/mvn-sbt-openjdk-8-alpine:latest sbt sbt-version

This image can be configured for holding the Maven cache artifacts:

$ docker run -ti --rm -v $(pwd):/code -v "$HOME/.m2":/root/.m2 iflavoursbv/mvn-sbt-openjdk-8-alpine:latest mvn clean compile

This image can be configured for holding the IVY cache artifacts:

$ docker run -ti --rm -v $(pwd):/code -v "$HOME/.ivy2":/root/.ivy2 iflavoursbv/mvn-sbt-openjdk-8-alpine:latest sbt clean compile

Configuration

This docker image is based on the following stack:

  • OS: Alpine Linux
  • Java: OpenJDK 8
  • Maven: latest=3.3.9
  • SBT: latest=0.13.12 (see tag list for more versions)

Dependencies

History

  • 0.1.0 - Initial version

License

Licensed under MIT License

Docker Pull Command
Owner
iflavoursbv