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/04/18 00:28:22 UTC

[incubator-servicecomb-saga] branch master updated (54ed83e -> 87949e4)

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

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


    from 54ed83e  SCB-497 Fix the Omega test log issue
     new 9fb9f03  Add README.md file for alpha-server. Describe how to 'build and run' alpha-server.
     new 87949e4  Add alpha-server as prerequisite to run saga demo

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 alpha/README.md             | 33 +++++++++++++++++++++++++++++++++
 saga-demo/booking/README.md |  2 ++
 2 files changed, 35 insertions(+)
 create mode 100644 alpha/README.md

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

[incubator-servicecomb-saga] 02/02: Add alpha-server as prerequisite to run saga demo

Posted by ni...@apache.org.
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-saga.git

commit 87949e488ea1ec51f26cd284fe90b6bc35891c8b
Author: crystaldust <ju...@huawei.com>
AuthorDate: Tue Apr 17 05:43:20 2018 +0000

    Add alpha-server as prerequisite to run saga demo
---
 saga-demo/booking/README.md | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/saga-demo/booking/README.md b/saga-demo/booking/README.md
index 4c642b3..1540e29 100644
--- a/saga-demo/booking/README.md
+++ b/saga-demo/booking/README.md
@@ -10,11 +10,13 @@ You will need:
 2. [Maven 3.x][maven]
 3. [Docker][docker]
 4. [Docker compose][docker_compose]
+5. [alpha server][alpha_server]
 
 [jdk]: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
 [maven]: https://maven.apache.org/install.html
 [docker]: https://www.docker.com/get-docker
 [docker_compose]: https://docs.docker.com/compose/install/
+[alpha_server]: https://github.com/apache/incubator-servicecomb-saga/tree/master/alpha
 
 ## Running Demo
 You can run the demo using either docker compose or executable files.

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

[incubator-servicecomb-saga] 01/02: Add README.md file for alpha-server. Describe how to 'build and run' alpha-server.

Posted by ni...@apache.org.
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-saga.git

commit 9fb9f036ce9edb86568d143cf96ebd5273c704c3
Author: crystaldust <ju...@huawei.com>
AuthorDate: Tue Apr 17 05:42:44 2018 +0000

    Add README.md file for alpha-server.
    Describe how to 'build and run' alpha-server.
---
 alpha/README.md | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/alpha/README.md b/alpha/README.md
new file mode 100644
index 0000000..a1d21a6
--- /dev/null
+++ b/alpha/README.md
@@ -0,0 +1,33 @@
+# alpha-server
+
+The alpha-server works as the pack leader to keep the consistency of transactions.
+For more information, see [saga pack design](https://github.com/apache/incubator-servicecomb-saga/blob/master/docs/design.md)
+
+## Build and Run
+
+### Via docker image
+Build the executable files and docker image:
+```
+mvn clean package -DskipTests -Pdocker -Pdemo
+```
+
+Then play `alpha-server` image with docker, docker-compose or any other container based environment.
+
+You can override the configurations by `JAVA_OPTS` environment variable:
+```
+docker run -d -p 8080:8080 -p 8090:8090 \ 
+-e "JAVA_OPTS=-Dspring.profiles.active=prd -Dspring.datasource.url=jdbc:postgresql://${host_address}:5432/saga?useSSL=false" alpha-server:${saga_version}
+```
+
+
+### Via executable file
+
+Build the executable files:
+```bash
+mvn clean package -DskipTests -Pdemo
+```
+
+And run:
+```
+java -Dspring.profiles.active=prd -D"spring.datasource.url=jdbc:postgresql://${host_address}:5432/saga?useSSL=false" -jar alpha-server-${saga_version}-exec.jar
+```

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