You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2018/03/09 12:13:06 UTC

[incubator-servicecomb-java-chassis] branch master updated: SCB-29 add README document for config-apollo (#579)

This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
     new eccc4b7  SCB-29 add README document for config-apollo (#579)
eccc4b7 is described below

commit eccc4b704e9ae252ccbf7fbdd9b14490fe25badf
Author: lijasonvip <li...@huawei.com>
AuthorDate: Fri Mar 9 20:13:03 2018 +0800

    SCB-29 add README document for config-apollo (#579)
    
    Signed-off-by: lijasonvip <li...@huawei.com>
---
 samples/config-apollo-sample/README.md | 42 ++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/samples/config-apollo-sample/README.md b/samples/config-apollo-sample/README.md
new file mode 100644
index 0000000..398b826
--- /dev/null
+++ b/samples/config-apollo-sample/README.md
@@ -0,0 +1,42 @@
+## Use Apollo as Configuration Center
+
+To use Apollo as configuration source in ServiceComb Java Chassis services:
+
+* Start Apollo service and create a project to associate with Chassis service, then generate a token
+
+  [How to use Apollo configuration center](http://servicecomb.incubator.apache.org/cn/users/dynamic-config/)
+
+
+* Import `config-apollo` in pom:
+
+  ```xml
+  <dependency>
+        <groupId>org.apache.servicecomb</groupId>
+        <artifactId>config-apollo</artifactId>
+   </dependency>
+  ```
+
+* Configurations for Apollo itself in `microservice.yaml`, for example:
+
+  ```yaml
+  apollo:
+    config:
+      serverUri: http://127.0.0.1:8070	#Apollo portal server address
+      serviceName: apollo-test		#service name
+      env: DEV				#default valueDEV
+      clusters: test-cluster		#default value default
+      namespace: application		#default value application
+      token: 				#get token from Apollo web pages
+  ```
+
+* Start Chassis service and update configurations in Apollo portal service.
+
+  [Need to start service center first](http://servicecomb.incubator.apache.org/users/setup-environment/#)
+
+
+## More
+
+[Apollo Doc](https://github.com/ctripcorp/apollo/wiki)
+
+[Use Apollo In ServiceComb](http://servicecomb.incubator.apache.org/cn/users/dynamic-config/)
+

-- 
To stop receiving notification emails like this one, please contact
ningjiang@apache.org.