mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
modified Jenkinsfile
This commit is contained in:
parent
ab296d73dc
commit
82c7247d8a
1 changed files with 2 additions and 8 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -17,22 +17,16 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('MySQL setup') {
|
|
||||||
steps {
|
|
||||||
sh 'docker run -d --name petclinic-mysql -e MYSQL_USER=petclinic -e MYSQL_PASSWORD=petclinic -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=petclinic -p 3306:3306 mysql:5.7.8'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Run') {
|
stage('Run') {
|
||||||
agent {
|
agent {
|
||||||
dockerfile {
|
dockerfile {
|
||||||
filename 'Dockerfile.run'
|
filename 'Dockerfile.run'
|
||||||
dir '.'
|
dir '.'
|
||||||
args '-d -v $HOME/app:/root/app --link petclinic-mysql'
|
additionalBuildArgs '-t hllvc/spring-petclinic:latest'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo 'App Running'
|
sh 'docker-compose up'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue