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-rest
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-rest
Commits
2b417c57
Commit
2b417c57
authored
Aug 29, 2023
by
José Antonio Herrera Castillo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds configurations to connection with mongodb
parent
c520de1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
Dockerfile
Dockerfile
+6
-1
mongodbca.crt
mongodbca.crt
+20
-0
src/main/resources/application.properties
src/main/resources/application.properties
+7
-1
No files found.
Dockerfile
View file @
2b417c57
...
...
@@ -5,11 +5,16 @@ WORKDIR /app
COPY
pom.xml .
COPY
src ./src
COPY
mongodbca.crt .
RUN
mvn package
RUN
chmod
+x .
RUN
cp
target/
**
SNAPSHOT.jar ./app.jar
RUN
cp
keytool
-keystore
/opt/java/openjdk/lib/security/cacerts
-storepass
changeit
-noprompt
-trustcacerts
-importcert
-file
mongodbca.crt
\
&&
mvn package
\
&&
cp
target/
**
SNAPSHOT.jar ./app.jar
\
&&
rm
-rf
src target pom.xml mongodbca.crt
\
&&
chmod
+x app.jar
CMD
["java", "-jar", "app.jar"]
mongodbca.crt
0 → 100644
View file @
2b417c57
-----BEGIN CERTIFICATE-----
MIIDDzCCAfegAwIBA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IFICATE-----
src/main/resources/application.properties
View file @
2b417c57
...
...
@@ -23,4 +23,10 @@ spring.jackson.default-property-inclusion=non_empty
spring.cloud.function.definition
=
measureConsumer
#Producer
spring.cloud.stream.bindings.measureProducer.destination
=
measure
\ No newline at end of file
spring.cloud.stream.bindings.measureProducer.destination
=
measure
# MONGODB
spring.data.mongodb.repositories.enabled
=
true # Enable Mongo repositories.
spring.data.mongodb.uri
=
${SPRING_DATA_MONGODB_URI}
ssl.keystore.location
=
/opt/java/openjdk/lib/security/cacerts
ssl.keystore.password
=
changeit
\ No newline at end of file
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