Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Evensberget committed Jun 2, 2021
1 parent ea05c97 commit adc15a4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
FROM docker.pkg.github.com/navikt/pus-nais-java-app/pus-nais-java-app:java11
FROM openjdk:14-slim

WORKDIR '/app'

COPY /target/veilarbvarsel-1.0-SNAPSHOT-jar-with-dependencies.jar app.jar
EXPOSE 8080

ENTRYPOINT ["java", "-jar", "app.jar", "-Xmx1024m"]
4 changes: 2 additions & 2 deletions nais-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ spec:
resources:
limits:
cpu: "2"
memory: 1024Mi
memory: 2056Mi
requests:
cpu: 200m
memory: 768Mi
memory: 1500Mi
envFrom:
- configmap: pto-config
vault:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ abstract class KafkaConsumerWrapper<K, V>(
props["group.id"] = systemUser
props["key.deserializer"] = StringDeserializer::class.java
props["value.deserializer"] = KafkaEventDeserializer::class.java
props["max.poll.records"] = 1
props["max.partition.fetch.bytes"] = 1048576/2
}

abstract fun handle(data: V)
Expand Down

0 comments on commit adc15a4

Please sign in to comment.