# org.openwms.configuration **Repository Path**: comk1/org.openwms.configuration ## Basic Information - **Project Name**: org.openwms.configuration - **Description**: 类似于所有SpringBoot示例中所示的典型服务配置服务 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-02-28 - **Last Updated**: 2022-05-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # org.openwms.configuration A Spring Boot configuration service, built on top of Netflix Archaius. The purpose of this service is to provide technical microservice configuration centrally managed across the whole application. Furthermore this set of configuration files can be kept in separate project- specific repositories to keep the configuration service project independent. It can be configured to push configuration changes directly out to the certain services and trigger a configuration reload without the need to restart the downstream service. ![Build status][ci-image] # Build and Run Locally The easiest way to run the configuration server locally is in `native` mode without pointing to an external Git repository. In this mode, the server tries to resolve all configuration files locally, either from classpath or a file location. The server could also be configured to fetch the configuration files at startup from a Git repository. Locally: ``` $ ./mvnw package $ java -Dspring.profiles.active=native \ -Dspring.cloud.config.server.native.search-location=file://./myconf \ -jar target/openwms-configuration.jar ``` In this example the configuration server will look for configuration files in a directory named "myconf" within the current directory. Git Repository: ``` $ ./mvnw package $ java -Dspring.cloud.config.server.git.uri=https://github.com/spring-labs/org.openwms.zile \ -jar target/openwms-configuration.jar ``` # Run as Docker Container The configuration server is also available on [Docker Hub](https://hub.docker.com/r/interface21/openwms-configuration) as pre-built Docker image. Simply bootstrap a container and expose the internal port `8099` of the service: ``` docker run -p8099:8099 -d interface21/openwms-configuration:latest ``` # Release A release and upload of this service can be done: ``` $ ./mvn clean deploy -Prelease,gpg ``` # Resources [![Build status](https://travis-ci.com/spring-labs/org.openwms.configuration.svg?branch=master)](https://travis-ci.com/spring-labs/org.openwms.configuration) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) [![Join the chat at https://gitter.im/openwms/org.openwms](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/openwms/org.openwms?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)