Ver Fonte

Add dcos configuration

Monte Cillo Co há 9 anos atrás
pai
commit
0259d1146f

+ 17 - 1
application.yml

@@ -91,4 +91,20 @@ spring:
   rabbitmq:
     host: 192.168.39.117
 logging.level:
-  com.pemc.crss: INFO
+  com.pemc.crss: INFO
+
+---
+spring:
+  profiles: dcos
+  rabbitmq:
+    host: rabbitmq.marathon.l4lb.thisdcos.directory
+security.server.url: http://phase1app.marathon.l4lb.thisdcos.directory:8080/admin
+eureka:
+  client:
+    serviceUrl:
+      defaultZone: http://phase1discovery.marathon.l4lb.thisdcos.directory:8080/eureka/
+  instance:
+    prefer-ip-address: false
+    # HOST and PORT environment variable came from mesos as docker ENV
+    hostname: ${HOST}
+    noneSecurePort: ${PORT}

+ 29 - 0
crss-admin/crss-admin-dcos.yml

@@ -0,0 +1,29 @@
+spring:
+  profiles.include: embedded-ldap
+  datasource:
+    platform : postgres
+    url: jdbc:postgresql://postgresql.marathon.l4lb.thisdcos.directory:5432/crss_admin
+    username: crss_admin
+    password: crss_admin
+    driverClassName: org.postgresql.Driver
+  jpa:
+    database: POSTGRESQL
+    show-sql: false
+    hibernate:
+      ddl-auto: none
+    properties:
+      hibernate:
+        dialect: org.hibernate.dialect.PostgreSQL94Dialect
+      jadira.usertype.autoRegisterUserTypes: true
+      javax.persistence.schema-generation.database.action: none
+  mail:
+    host: mailserver.marathon.l4lb.thisdcos.directory
+    port: 3025
+    username: crss@local.dev.pemc.com
+    password: P@ssw0rd1434412
+    properties:
+      mail:
+        transport.protocol: smtp
+        smtp:
+          auth: true
+          starttls.enable: true

+ 15 - 0
crss-metering/application-dcos.yml

@@ -0,0 +1,15 @@
+spring:
+  profiles.include: pg-query
+  datasource:
+    url: jdbc:postgresql://postgresql.marathon.l4lb.thisdcos.directory:5432/crss_metering_p1
+    username: crss_metering
+    password: crss_metering
+    driverClassName: org.postgresql.Driver
+    hikari:
+      connectionTimeout: 10000
+      maximumPoolSize: 20
+  jpa:
+    database: POSTGRESQL
+    properties:
+      hibernate:
+        dialect: org.hibernate.dialect.PostgreSQL94Dialect

+ 31 - 0
crss-reg/crss-reg-dcos.yml

@@ -0,0 +1,31 @@
+spring:
+  datasource:
+    platform: postgres
+    url: jdbc:postgresql://postgresql.marathon.l4lb.thisdcos.directory:5432/crss_registration
+    username: crss_reg
+    password: crss_reg
+    driverClassName: org.postgresql.Driver
+  jpa:
+    database: POSTGRESQL
+    show-sql: false
+    properties:
+      hibernate:
+        dialect: org.hibernate.dialect.PostgreSQL94Dialect
+   #we dont need spring mvc here
+  freemarker:
+    enabled: false
+    template-loader-path: classpath:/mail/templates
+app:
+  docmgt:
+    root-folder: /crss/docmgt
+  xdf:
+    client-type: local  # OPTIONS:[local, ftp, sftp]
+    root-folder: /crss/xdf
+    auto-create-dir: true
+    file-encoding: UTF-8
+    file-exists-mode: fail  # OPTIONS:[append, append_no_flush, fail, ignore, replace]
+    remote:
+      host: localhost
+      port: 22
+      username: crss
+      password: crss