Public Repository

Last pushed: 2 years ago
Short Description
Maven 3.2.5 based on fedora_java image
Full Description

dockerfiles-fedora-maven

Fedora dockerfile for java development with maven

Get Docker version

# docker version

To build:

Copy the sources down and do the build

# docker build --rm -t <username>/fedora_maven .

Run maven build from current host directory where you have your Maven project in docker

# docker run -it --rm --name my-maven-docker -v "$PWD":/usr/src/mymaven --env mavenRepositoryUrl=http://10.200.138.76:8081/nexus/content/groups/public/ <username>/fedora_maven mvn clean install -f /usr/src/mymaven/pom.xml

By default there is used Maven repository mirror to $mavenRepositoryUrl environment property which you can customize to your prefered URL of proxy or a Maven repository manager.

Docker Pull Command
Owner
mareknovotny