Docker image to run your maven command against a defined path
Use docker pull pasogo/maven-compilator
or build from docker-compose.yml using docker-compose build
if you want to customize build arguments.
JAVA_VERSION
-> Default: 7
MVN_VERSION
-> Default: 3.1.1
docker run -v PATH/WHERE/EXEC/COMMAND:/src -e COMMAND=MVN/COMMAND --name maven-compilator pasogo/maven-compilator
Change PATH/WHERE/EXEC/COMMAND
and MVN/COMMAND
as you need.