update deps
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2021-08-11 16:43:08 +02:00
parent 4825f54c89
commit 9cfaf5857b
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
6 changed files with 26 additions and 26 deletions

View File

@ -39,13 +39,13 @@ repositories {
}
dependencies {
compile 'org.postgresql:postgresql:42.2.2'
compile 'org.jetbrains.exposed:exposed-core:0.23.1'
compile 'org.jetbrains.exposed:exposed-dao:0.23.1'
compile 'org.jetbrains.exposed:exposed-jdbc:0.23.1'
compile 'org.jetbrains.exposed:exposed-java-time:0.23.1'
compile 'com.rabbitmq:amqp-client:2.7.1'
compile 'com.zaxxer:HikariCP:2.7.8'
compile 'org.postgresql:postgresql:42.2.23'
compile 'org.jetbrains.exposed:exposed-core:0.32.1'
compile 'org.jetbrains.exposed:exposed-dao:0.32.1'
compile 'org.jetbrains.exposed:exposed-jdbc:0.33.1'
compile 'org.jetbrains.exposed:exposed-java-time:0.33.1'
compile 'com.rabbitmq:amqp-client:5.13.0'
compile 'com.zaxxer:HikariCP:5.0.0'
compile 'com.viartemev:the-white-rabbit:0.0.5'
implementation "org.koin:koin-ktor:$koin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"

View File

@ -1,4 +1,4 @@
ktor_version=1.4.2
ktor_version=1.6.2
kotlin.code.style=official
kotlin_version=1.4.10
logback_version=1.2.1

View File

@ -1,15 +1,15 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: output-service-rdb-config
name: sample-service-config
labels:
app: output-service-rdb
app: sample-service
namespace: birbnetes
data:
PORT: "8080"
DB_URL: "jdbc:postgresql://output-postgres:5432/output-service"
DB_USER: output-service
DB_PASSWORD: output-service-supersecret
DB_URL: "jdbc:postgresql://sample-postgres:5432/sample-service"
DB_USER: sample-service
DB_PASSWORD: sample-service-supersecret
MQ_HOST: birb-rabbitmq
MQ_USERNAME: user
MQ_PASSWORD: F3ACadDRsT

View File

@ -1,29 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: output-service-rdb
name: sample-service
namespace: birbnetes
labels:
app: output-service-rdb
app: sample-service
spec:
replicas: 1
selector:
matchLabels:
app: output-service-rdb
app: sample-service
strategy:
type: Recreate
template:
metadata:
labels:
app: output-service-rdb
app: sample-service
spec:
containers:
- image: registry.kmlabz.com/birbnetes/output-service-rdb
- image: registry.kmlabz.com/birbnetes/sample-service
imagePullPolicy: Always
name: output-service-rdb
name: sample-service
envFrom:
- configMapRef:
name: output-service-rdb-config
name: sample-service-config
ports:
- containerPort: 8080
imagePullSecrets:

View File

@ -1,16 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: output-service-rdb
name: sample-service
namespace: birbnetes
labels:
app: output-service-rdb
app: sample-service
spec:
ports:
- name: output-service-rdb
- name: sample-service
port: 80
targetPort: 8080
protocol: TCP
selector:
app: output-service-rdb
app: sample-service
type: ClusterIP

View File

@ -29,7 +29,7 @@ class OutputServiceRDBServer {
val dateAfter = call.parameters["dateAfter"] ?: error(HttpStatusCode.NotAcceptable)
val dateTimeFormatter: DateTimeFormatter = DateTimeFormatter.ISO_LOCAL_DATE
val localDateAfter : LocalDate = LocalDate.parse(dateAfter,dateTimeFormatter)
val resultList = resultObjectService.getSampleObjectafterDate(localDateAfter) ?: call.respond(HttpStatusCode.NotFound)
val resultList = resultObjectService.getSampleObjectafterDate(localDateAfter)
call.respond(resultList)
}
@ -38,7 +38,7 @@ class OutputServiceRDBServer {
val dateAfter = call.parameters["dateBefore"] ?: error(HttpStatusCode.NotAcceptable)
val dateTimeFormatter: DateTimeFormatter = DateTimeFormatter.ISO_LOCAL_DATE
val localDateBefore : LocalDate = LocalDate.parse(dateAfter,dateTimeFormatter)
val resultList = resultObjectService.getSampleObjectbeforeDate(localDateBefore) ?: call.respond(HttpStatusCode.NotFound)
val resultList = resultObjectService.getSampleObjectbeforeDate(localDateBefore)
call.respond(resultList)
}