mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:15:49 +00:00
modified Jenkinsfile
This commit is contained in:
parent
2926df3357
commit
5d79ac805e
1 changed files with 2 additions and 3 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -19,8 +19,7 @@ pipeline {
|
|||
|
||||
stage('MySQL setup') {
|
||||
steps {
|
||||
sh 'docker network create petclinic || true'
|
||||
sh 'docker run -d --network petclinic -e MYSQL_USER=petclinic -e MYSQL_PASSWORD=petclinic -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=petclinic -p 3306:3306 mysql:5.7.8'
|
||||
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'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -28,7 +27,7 @@ pipeline {
|
|||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile.run'
|
||||
args '-d -v $HOME/app:/root/app --network petclinic'
|
||||
args '-d -v $HOME/app:/root/app --link petclinic-mysql'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
|
|
Loading…
Reference in a new issue