Gitlab - Argos ALM by PALO IT

Commit 81adccda authored by Ioan Mircea Pop's avatar Ioan Mircea Pop

changed to fix connection to mongodb

parent f811754c
......@@ -6,11 +6,12 @@ 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 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"]
-----BEGIN CERTIFICATE-----
MIIDDzCCAfegAwIBAgIJANEH58y2/kzHMA0GCSqGSIb3DQEBCwUAMB4xHDAaBgNV
BAMME0lCTSBDbG91ZCBEYXRhYmFzZXMwHhcNMTgwNjI1MTQyOTAwWhcNMjgwNjIy
MTQyOTAwWjAeMRwwGgYDVQQDDBNJQk0gQ2xvdWQgRGF0YWJhc2VzMIIBIjANBgkq
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8lpaQGzcFdGqeMlmqjffMPpIQhqpd8qJ
Pr3bIkrXJbTcJJ9uIckSUcCjw4Z/rSg8nnT13SCcOl+1to+7kdMiU8qOWKiceYZ5
y+yZYfCkGaiZVfazQBm45zBtFWv+AB/8hfCTdNF7VY4spaA3oBE2aS7OANNSRZSK
pwy24IUgUcILJW+mcvW80Vx+GXRfD9Ytt6PRJgBhYuUBpgzvngmCMGBn+l2KNiSf
weovYDCD6Vngl2+6W9QFAFtWXWgF3iDQD5nl/n4mripMSX6UG/n6657u7TDdgkvA
1eKI2FLzYKpoKBe5rcnrM7nHgNc/nCdEs5JecHb1dHv1QfPm6pzIxwIDAQABo1Aw
TjAdBgNVHQ4EFgQUK3+XZo1wyKs+DEoYXbHruwSpXjgwHwYDVR0jBBgwFoAUK3+X
Zo1wyKs+DEoYXbHruwSpXjgwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOC
AQEAJf5dvlzUpqaix26qJEuqFG0IP57QQI5TCRJ6Xt/supRHo63eDvKw8zR7tlWQ
lV5P0N2xwuSl9ZqAJt7/k/3ZeB+nYwPoyO3KvKvATunRvlPBn4FWVXeaPsG+7fhS
qsejmkyonYw77HRzGOzJH4Zg8UN6mfpbaWSsyaExvqknCp9SoTQP3D67AzWqb1zY
doqqgGIZ2nxCkp5/FXxF/TMb55vteTQwfgBy60jVVkbF7eVOWCv0KaNHPF5hrqbN
i+3XjJ7/peF3xMvTMoy35DcT3E2ZeSVjouZs15O90kI3k2daS2OHJABW0vSj4nLz
+PQzp/B9cQmOO8dCe049Q3oaUA==
-----END CERTIFICATE-----
......@@ -36,5 +36,6 @@ spring.cloud.stream.bindings.measureProducer.destination=measure
#spring.data.mongodb.password=82c4923123d85e6ced7d7c82ae8a451c65fbdd2607bd21963847479e6fdb3190
#spring.data.mongodb.port=30301
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.username=ibm_cloud_203a8f7e_6d29_4f2c_987f_3c8b70cc8a2b
\ No newline at end of file
spring.data.mongodb.uri=${SPRING_DATA_MONGODB_URI}
ssl.keystore.location=/opt/java/openjdk/lib/security/cacerts
ssl.keystore.password=changeit
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment