Added Database Credentials #3
nclazz/nclazz-mail-relay/pipeline/head This commit looks good Details

pull/21/head
Niclas Thobaben 2022-02-15 15:27:16 +01:00
parent 7d3a37bfb8
commit 2a94eeb501
4 changed files with 13 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -5,6 +5,7 @@ pipeline {
NEXUS = credentials('jenkins_nexus')
MAIL = credentials('robots_mail')
NCLAZZ = credentials('nclazz_api_token')
DB = credentials('sql01_service')
DOCKER_REGISTRY = "docker.nclazz.de"
DOCKER_GROUP = 'nclazz-service'
@ -107,6 +108,8 @@ pipeline {
VERSION: env.DOCKER_VERSION,
MAIL_USERNAME: env.MAIL_USR,
MAIL_PASSWORD: env.MAIL_PSW,
DB_USERNAME: env.DB_USR,
DB_PASSWORD: env.DB_PSW,
AUTH_TOKEN: env.NCLAZZ
]
)
@ -114,7 +117,7 @@ pipeline {
name: 'nclazz-email-relay',
fqdn: 'api.nclazz.de',
description: 'nclazz email relay service',
location: '/mail',
location: '/mail/',
backendPort: 7006
)
}

View File

@ -5,6 +5,9 @@ services:
environment:
SPRING_MAIL_USERNAME: "${MAIL_USERNAME}"
SPRING_MAIL_PASSWORD: "${MAIL_PASSWORD}"
SPRING_DATASOURCE_USERNAME: "${DB_USERNAME}"
SPRING_DATASOURCE_PASSWORD: "${DB_PASSWORD}"
SPRING_PROFILES_ACTIVE: swarm
NCLAZZ_AUTH_TOKEN: "${AUTH_TOKEN}"
stop_grace_period: 60s
deploy:

View File

@ -65,7 +65,10 @@
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>

View File

@ -0,0 +1,2 @@
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://sql01.nclazz.de/prod_nclazz_mail_relay