mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Update BuildImage.sh
This commit is contained in:
parent
753e102359
commit
6732624bad
1 changed files with 9 additions and 6 deletions
|
@ -1,7 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
sudo rm -rf /home/jenkins/centos_data/java-app/
|
|
||||||
git clone https://github.com/ametgud4u/spring-petclinic.git /home/jenkins/centos_data/java-app/
|
|
||||||
|
|
||||||
echo "*****************************************"
|
# copying runtime to docker build path
|
||||||
echo "*****************Build*******************"
|
sudo cp -f /home/jenkins/centos_data/apps/workspace/SpringPetClinic-Piple/target/spring-petclinic-2.1.0.BUILD-SNAPSHOT.jar /home/jenkins/centos_data/Build/
|
||||||
docker run --rm -ti -v $PWD/java-app:/apps -v /root/.m2/:/root/.m2/ -w /apps/ maven3:alphine "$@"
|
|
||||||
|
echo " *************************************** "
|
||||||
|
echo " ********** Build Docker Image********** "
|
||||||
|
echo " *************************************** "
|
||||||
|
|
||||||
|
cd $HOME/centos_data/Build && docker-compose -f docker-compose-buildimage.yml build --no-cache
|
||||||
|
|
Loading…
Reference in a new issue