tree: a21420826575670584280a94e1675d9ee87e6d12 [path history] [tgz]
  1. alpha-benchmark/
  2. alpha-core/
  3. alpha-fsm/
  4. alpha-server/
  5. alpha-spring-cloud-starter-consul/
  6. alpha-spring-cloud-starter-eureka/
  7. alpha-spring-cloud-starter-nacos/
  8. alpha-spring-cloud-starter-zookeeper/
  9. alpha-ui/
  10. pom.xml
  11. 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