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
81adccda
Commit
81adccda
authored
Aug 15, 2023
by
Ioan Mircea Pop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed to fix connection to mongodb
parent
f811754c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
7 deletions
+29
-7
Dockerfile
Dockerfile
+6
-5
mongodbca.crt
mongodbca.crt
+20
-0
src/main/resources/application.properties
src/main/resources/application.properties
+3
-2
No files found.
Dockerfile
View file @
81adccda
...
@@ -6,11 +6,12 @@ WORKDIR /app
...
@@ -6,11 +6,12 @@ WORKDIR /app
COPY
pom.xml .
COPY
pom.xml .
COPY
src ./src
COPY
src ./src
COPY
mongodbca.crt .
RUN
mvn package
RUN
keytool
-keystore
/opt/java/openjdk/lib/security/cacerts
-storepass
changeit
-noprompt
-trustcacerts
-importcert
-file
mongodbca.crt
\
&&
mvn package
\
RUN
chmod
+x .
&&
cp
target/
**
SNAPSHOT.jar ./app.jar
\
&&
rm
-rf
src target pom.xml mongodbca.crt
\
RUN
cp
target/
**
SNAPSHOT.jar ./
app.jar
&&
chmod
+x
app.jar
CMD
["java", "-jar", "app.jar"]
CMD
["java", "-jar", "app.jar"]
mongodb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kI3k2daS2OHJABW0vSj4nLz
+PQzp/B9cQmOO8dCe049Q3oaUA==
-----END CERTIFICATE-----
src/main/resources/application.properties
View file @
81adccda
...
@@ -36,5 +36,6 @@ spring.cloud.stream.bindings.measureProducer.destination=measure
...
@@ -36,5 +36,6 @@ spring.cloud.stream.bindings.measureProducer.destination=measure
#spring.data.mongodb.password=82c4923123d85e6ced7d7c82ae8a451c65fbdd2607bd21963847479e6fdb3190
#spring.data.mongodb.password=82c4923123d85e6ced7d7c82ae8a451c65fbdd2607bd21963847479e6fdb3190
#spring.data.mongodb.port=30301
#spring.data.mongodb.port=30301
spring.data.mongodb.repositories.enabled
=
true # Enable Mongo repositories.
spring.data.mongodb.repositories.enabled
=
true # Enable Mongo repositories.
spring.data.mongodb.uri
=
mongodb://ibm_cloud_203a8f7e_6d29_4f2c_987f_3c8b70cc8a2b:82c4923123d85e6ced7d7c82ae8a451c65fbdd2607bd21963847479e6fdb3190@56e4dce3-cd7e-481e-a150-d52b47dadebb-0.blijtlfd05jdimoomdig.databases.appdomain.cloud:30301,56e4dce3-cd7e-481e-a150-d52b47dadebb-1.blijtlfd05jdimoomdig.databases.appdomain.cloud:30301,56e4dce3-cd7e-481e-a150-d52b47dadebb-2.blijtlfd05jdimoomdig.databases.appdomain.cloud:30301/ibmclouddb?authSource=admin&replicaSet=replset
spring.data.mongodb.uri
=
${SPRING_DATA_MONGODB_URI}
#
spring.data.mongodb.username
=
ibm_cloud_203a8f7e_6d29_4f2c_987f_3c8b70cc8a2b
ssl.keystore.location
=
/opt/java/openjdk/lib/security/cacerts
\ No newline at end of file
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