tree: ebc02f897a59546d35ef6bbdb1be1cc346fa5784 [path history] [tgz]
  1. alpha-benchmark/
  2. alpha-core/
  3. alpha-persistence-jpa/
  4. alpha-server/
  5. alpha-spec-saga-akka/
  6. alpha-spec-saga-db/
  7. alpha-spec-tcc-db/
  8. alpha-spring-cloud-starter-consul/
  9. alpha-spring-cloud-starter-eureka/
  10. alpha-spring-cloud-starter-nacos/
  11. alpha-spring-cloud-starter-zookeeper/
  12. alpha-ui/
  13. pom.xml
  14. README.md
alpha/README.md

alpha-server

The alpha-server works as the pack leader to keep the consistency of transactions. For more information, see pack design

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:

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