The Dockerfile generates Maven with Oracle Java 8 images
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
All of Docker functions
- Docker Store Account
- Oracle Java 8 SE on Docker Store cheked out
docker pull shinyay/docker-mvn-jdk8:3.6.3
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]
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
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
Released under the MIT license