Gitlab - Argos ALM by PALO IT
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
poc-measure-kafka
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Luis Eduardo Oviedo Granados
poc-measure-kafka
Commits
8b4183c4
Commit
8b4183c4
authored
Aug 15, 2023
by
Ioan Mircea Pop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
latest changes
parent
dc5e69a7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
7 deletions
+34
-7
Dockerfile
Dockerfile
+6
-3
redisca.crt
redisca.crt
+20
-0
src/main/resources/application.properties
src/main/resources/application.properties
+8
-4
No files found.
Dockerfile
View file @
8b4183c4
#FROM maven:3.9.3-eclipse-temurin-17-alpine
FROM
maven:3.9.3-amazoncorretto-17
MAINTAINER
Palo-IT
...
...
@@ -5,9 +6,11 @@ WORKDIR /app
COPY
pom.xml .
COPY
src ./src
COPY
redisca.crt .
RUN
mvn package
-Dmaven
.test.skip
=
true
RUN
cp
target/
**
SNAPSHOT.jar ./app.jar
RUN
keytool
-keystore
/usr/lib/jvm/java-17-amazon-corretto/lib/security/cacerts
-storepass
changeit
-noprompt
-trustcacerts
-importcert
-file
redisca.crt
\
&&
mvn package
-Dmaven
.test.skip
=
true
\
&&
cp
target/
**
SNAPSHOT.jar ./app.jar
\
&&
rm
-rf
src pom.xml target redisca.crt
CMD
["java", "-jar", "app.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SVjouZs15O90kI3k2daS2OHJABW0vSj4nLz
+PQzp/B9cQmOO8dCe049Q3oaUA==
-----END CERTIFICATE-----
src/main/resources/application.properties
View file @
8b4183c4
...
...
@@ -28,7 +28,7 @@ spring.jackson.visibility.is-getter=none
spring.cloud.stream.bindings.measureProducer.destination
=
measure
# Stream
spring.cloud.stream.kafka.binder.brokers
=
localhost:9092
spring.cloud.stream.kafka.binder.brokers
=
${SPRING_CLOUD_STREAM_KAFKA_BINDER_BROKERS}
spring.cloud.function.definition
=
measureConsumer
spring.cloud.stream.kafka.binder.configuration.key.serializer
=
org.apache.kafka.common.serialization.StringSerializer
...
...
@@ -37,9 +37,13 @@ spring.cloud.stream.bindings.measureConsumer-in-0.destination=measure
spring.cloud.stream.bindings.measureConsumer-in-0.group
=
measureGroup
# Redis
spring.data.redis.host
=
localhost
spring.data.redis.port
=
6379
spring.data.redis.password
=
pa55word
#
spring.data.redis.host=localhost
#
spring.data.redis.port=6379
#
spring.data.redis.password=pa55word
spring.data.redis.jedis.pool.max-active
=
15
spring.data.redis.jedis.pool.min-idle
=
3
spring.cache.redis.time-to-live
=
1m
#SSL
ssl.keystore.location
=
/opt/java/openjdk/lib/security/cacerts
ssl.keystore.password
=
changeit
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment