mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 13:35:50 +00:00
LDOP-40 traefik deploy proxy (#14)
* Add traefik labels to petclinic dev * Added QA/Prod Traefik labels
This commit is contained in:
parent
6f9097e701
commit
6eabad7c63
1 changed files with 4 additions and 4 deletions
|
@ -36,7 +36,7 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
steps {
|
steps {
|
||||||
sh 'docker rm -f petclinic-tomcat-temp || true'
|
sh 'docker rm -f petclinic-tomcat-temp || true'
|
||||||
sh 'docker run -p 18887:8080 -d --network=${LDOP_NETWORK_NAME} --name petclinic-tomcat-temp petclinic-tomcat'
|
sh 'docker run -d --network=${LDOP_NETWORK_NAME} --name petclinic-tomcat-temp petclinic-tomcat'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Smoke-Test & OWASP Security Scan') {
|
stage('Smoke-Test & OWASP Security Scan') {
|
||||||
|
@ -61,7 +61,7 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
steps {
|
steps {
|
||||||
sh 'docker rm -f dev-petclinic || true'
|
sh 'docker rm -f dev-petclinic || true'
|
||||||
sh 'docker run -p 18888:8080 -d --network=${LDOP_NETWORK_NAME} --name dev-petclinic petclinic-tomcat'
|
sh 'docker run --label "traefik.backend=dev-petclinic" --label "traefik.frontend.rule=Host:dev.petclinic.docker.localhost" -d --network=${LDOP_NETWORK_NAME} --name dev-petclinic petclinic-tomcat'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Smoke test dev') {
|
stage('Smoke test dev') {
|
||||||
|
@ -81,7 +81,7 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
steps {
|
steps {
|
||||||
sh 'docker rm -f qa-petclinic || true'
|
sh 'docker rm -f qa-petclinic || true'
|
||||||
sh 'docker run -p 18889:8080 -d --network=${LDOP_NETWORK_NAME} --name qa-petclinic petclinic-tomcat'
|
sh 'docker run --label "traefik.backend=qa-petclinic" --label "traefik.frontend.rule=Host:qa.petclinic.docker.localhost" -d --network=${LDOP_NETWORK_NAME} --name qa-petclinic petclinic-tomcat'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Smoke test qa') {
|
stage('Smoke test qa') {
|
||||||
|
@ -102,7 +102,7 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
steps {
|
steps {
|
||||||
sh 'docker rm -f prod-petclinic || true'
|
sh 'docker rm -f prod-petclinic || true'
|
||||||
sh 'docker run -p 18890:8080 -d --network=${LDOP_NETWORK_NAME} --name prod-petclinic petclinic-tomcat'
|
sh 'docker run --label "traefik.backend=prod-petclinic" --label "traefik.frontend.rule=Host:prod.petclinic.docker.localhost" -d --network=${LDOP_NETWORK_NAME} --name prod-petclinic petclinic-tomcat'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Smoke Test prod') {
|
stage('Smoke Test prod') {
|
||||||
|
|
Loading…
Reference in a new issue