Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For an explanation about spring cloud config see http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html 

 

Blueriq The runtime uses spring cloud config (besides the all the other functionality that spring cloud config uses) for changing/reloading properties. In the configured folder one can place a an application.properties and/or application-debug.properties (and yaml variants) because as the default name is application (can be configured via spring.application.name=application).

1. Client

Spring config client is integrated in the blueriq-web.

Client config options

Code Block
titlebootstrap.properties

...

code
spring:
  cloud:
    config:
      uri: http://localhost:8888
      username: <cloud-server-username> (*)
      password: <cloud-server-password> (*)
      failFast: true
      retry:
        max-attempts: 10
        initial-interval: 5000
        max-interval: 10000

* To make a connection to cloud config server, see #scsauth

application.properties will not contain any property meant for the config client

...

The property files will either come from the file-system or use GIT.


Code Block

...

titlebootstrap.properties

...

code
encrypt:
  failOnError: false
  key: "IGotTheKey"
  key-store:
    secret: "IGotTheSecret"
spring:
  cloud:
    config:
      server:
        bootstrap: true (*)

* Indicates that the server should read it’s own application.properties from the remote config server (GIT or filesystem)

 


Code Block
titlebootstrap.properties - extended for using the file-system

...

code
spring:
  profiles:
    active: native
  cloud:
    config:
      server:
        native:
          searchLocations: file:D:/local-properties

 


Code Block
titlebootstrap.properties - extended for using GIT - basic

...

code
authentication
spring:
  cloud:
    config:
      server:
        git:
          uri: https://git.blueriq.com/config-repo.git
          basedir: target/config
          username: <git_username>
          password: <git_password>

 

 

 application.properties 

Anchor
scsauth
scsauth

Code Block
titleapplication.properties
server:
  port: 8888
security:
  user:
    name: <username> (*)
    password: <password> (*)
management:
  context-path: /admin

 * Username and password that will be used for the client to connect to this server.

 

Repository structure

TODO - ongoing discussion

Branch per environment?

Branch per version?

 

Image Removed