Skip to content

shinyay/docker-mvn-jdk8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Dockerfile for Maven

The Dockerfile generates Maven with Oracle Java 8 images

Description

Apache Maven is a project management and comprehension tool which is generally used. This Dockerfile makes Maven environment pre-installed and configured Java and Maven. Java and Maven vesion is the following:

  • Java: Oracle JDK 8 (1.8.0_241-b07 as of 20-May-2020)
  • Mavan: Maven 3.6.3

Demo

Demo

Features

All of Docker functions

Requirement

Installation

docker pull shinyay/docker-mvn-jdk8:3.6.3

Usage

docker run -it --rm -v [LOCAL_MAVEN_PROJECT]:[WORKDIR_IN_CONTAINER] -w [WORKDIR_IN_CONTAINER] shinyay/docker-mvn-jdk8:3.6.3 mvn [MAVEN GOAL]

Example: mvn clean

docker run -it --rm -v /home/shinyay/works/mvn-projects/mvn-webapp/mytest-app:/usr/src/mvnproject -w /usr/src/mvnproject shinya/mvn:3.6.3 mvn clean

Example: mvn package

docker run -it --rm -v /home/shinyay/works/mvn-projects/mvn-webapp/mytest-app:/usr/src/mvnproject -w /usr/src/mvnproject shinya/mvn:3.6.3 mvn package

Licence

Released under the MIT license

Author

shinyay

About

Maven with Oracle Java 8 on Docker

Resources

Stars

Watchers

Forks

Packages

No packages published