Created
October 3, 2018 12:28
-
-
Save dannyelcf/8161dd4afbc9137a27b353142b94e53d to your computer and use it in GitHub Desktop.
Run maven project inside docker.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| docker run -it --rm --name mvn_docker \ | |
| -v "$HOME/.m2":/root/.m2 \ | |
| -v "$(pwd)":/tmp/tdd-lab \ | |
| -w /tmp/tdd-lab \ | |
| maven:3.5.4-jdk-8-alpine \ | |
| mvn "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment