diff --git a/BuildImage.sh b/BuildImage.sh new file mode 100644 index 000000000..eae4eaca7 --- /dev/null +++ b/BuildImage.sh @@ -0,0 +1,7 @@ +#!/bin/bash +sudo rm -rf /home/jenkins/centos_data/apps/java-app/ +git clone https://github.com/ametgud4u/spring-petclinic.git /home/jenkins/centos_data/apps/java-app/ + +echo "*****************************************" +echo "*****************Build*******************" +docker run --rm -ti -v $PWD/java-app:/apps -v /root/.m2/:/root/.m2/ -w /apps/ maven3:alphine "$@"