Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anant/example-cassandra-cadence-workflow
https://github.com/anant/example-cassandra-cadence-workflow
cadence cassandra docker
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/anant/example-cassandra-cadence-workflow
- Owner: Anant
- Created: 2022-04-20T14:54:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-09T09:37:05.000Z (over 2 years ago)
- Last Synced: 2024-11-18T14:45:37.808Z (3 months ago)
- Topics: cadence, cassandra, docker
- Language: Java
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cadence-Cassandra-Workflow
### **_Start by making a directory for your cadence workflows_**
```
mkdir cadence
```### **_Clone the Cadence and Cassandra example workflow_**
```
git clone https://github.com/Anant/example-cassandra-cadence-workflow.git
```***I assumes you to have***
* *A basic understanding of Docker images and containers.** *Docker installed on your local system, if you haven't please see to install it [Docker Installation Instructions](https://docs.docker.com/engine/installation/).*
*Make sure docker is running locally, if you don’t have it already, please get it from the docker webpage, and also get the latest version of the Cadence YAML file that contains the necessary images using the command below.**
```
curl -O https://raw.githubusercontent.com/uber/cadence/master/docker/docker-compose.yml && curl -O https://raw.githubusercontent.com/uber/cadence/master/docker/prometheus_config.yml
```
### **_Pull and start all the necessary images in the YAML file_**
```
docker-compose up -d
```
### **_When the containers are running, then pull the latest Cadence CLI image using the command below_**
```
docker run --rm ubercadence/cli:master
```*For your Cadence workflow, you must always register a domain for your Cadence workflow, run the following command once before running any new samples with a separate domain. Here we have created a domain called hello-domain.**
```
docker run --network=host --rm ubercadence/cli:master --do hello-domain domain register
```### *_Note: If you are getting a connection refused problems with registering a domain, you can go into the docker container and execute the following command to register workflow domain._**
```
docker exec -it cadence_cadence_1 /bin/bash
```### **_Register your domain_**
```
cadence --address $(hostname -i):7933 --do hello-domain domain register
```### **_Navigate to cadence/src/main/java/com/cadence/App.java and start the workflow_**
### **_Open another terminal to confrim that the domain has been created_**
```
docker run --network=host --rm ubercadence/cli:master --do hello-domain domain describe
```*See *[blog.anant.us](https://blog.anant.us/using-cadence-and-cassandra-for-workflow-orchestration/) for full article*