Content
Runtime Environment
The configuration server is usually deployed as docker container. The docker image is interface21/openwms-configuration:latest. When the service is started up, it must know where to read configuration files in yaml or properties format from. These files are the externalised configuration files of all other services in the network. They can be stored in a Git repository or locally on the file system. The latter is the preferred choice. Therefor the configuration service must itself be configured with two runtime properties:
spring.profiles.active: "native"
spring.cloud.config.server.native.search-locations: file:///openwms/conf
Further documentation of the configuration server can be found at the Spring Cloud Config project. During development mode it is preferable to let the Configuration Server point to a local folder that contains all the service configurations. Here we can use the file
prefix from the Spring Resource abstraction, like file:///tmp/org.openwms.zile/conf