Java 1.8 & Maven Dockerfile

This repository contains a Dockerfile to create a docker container with Java 1.8, Maven 3.1.1 and git

This Dockerfile has been published as a trusted build to the public Docker Registry.

Dependencies

Installation

  1. Install Docker.

  2. Download trusted build from public Docker Registry: docker pull jamesdbloom/docker-java8-maven

    (alternatively, you can build an image from Dockerfile: docker build -t="jamesdbloom/docker-java8-maven" github.com/jamesdbloom/docker_java8_maven)

Usage (two options)

1. Run container and clone git repo into container

docker run -i -t -name docker-java8-maven -rm jamesdbloom/docker-java8-maven

git clone <your repo url>

2. Run container with git repo attached container (from host OS)

docker run -i -t -name docker-java8-maven -rm -v <your git repo directory>:/volume/git jamesdbloom/docker-java8-maven

James D Bloom