-
Notifications
You must be signed in to change notification settings - Fork 38
Installation
This guide provides step-by-step instructions for setting up Synapse on your local machine or in a cloud environment. Synapse can be deployed using Docker, Kubernetes, or directly on your system using the provided .NET binaries.
Before you begin, ensure you have the following software installed:
- Docker (for containerized deployment)
- Kubernetes (optional, for deploying in a Kubernetes cluster)
- Git (to clone the repository)
- .NET 8.0 SDK (for running the Synapse services directly)
-
synctl
CLI (for managing workflows from the command line)
The easiest way to get started with Synapse is by using Docker Compose. This method allows you to run all Synapse components as Docker containers.
-
Clone the Synapse Repository:
git clone https://github.com/serverlessworkflow/synapse.git
-
Navigate to the Docker Compose directory:
cd synapse/deployments/docker-compose
-
Build the Docker images:
docker-compose build
-
Start the Synapse services:
docker-compose up
This will start the Synapse services as defined in the docker-compose.yml
file. The API server and other components will be accessible according to the configuration in this file.
For deploying Synapse in a Kubernetes cluster, you can use the provided Helm chart or YAML configurations.
-
Install Helm (if not already installed):
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
-
Add the Synapse Helm repository:
helm repo add synapse https://serverlessworkflow.github.io/synapse/charts
-
Install Synapse using Helm:
helm install synapse synapse/synapse
-
Verify the installation:
kubectl get pods -n synapse
This will deploy Synapse components within your Kubernetes cluster. You can customize the installation using Helm values.
You can also run Synapse directly using the provided .NET binaries. This method requires the .NET 8.0 runtime environment.
-
Download the latest release:
Visit the Synapse releases page and download the appropriate binaries for your system.
-
Extract the binaries:
tar -xzf synapse-<version>.tar.gz cd synapse-<version>
-
Run the Synapse API Server:
dotnet Synapse.Api.Server.dll
-
Run other components as needed:
You can start other components (e.g., Operator, Correlator) similarly by running their respective
.dll
files:dotnet Synapse.Operator.dll
The synctl
CLI allows you to interact with the Synapse API from the command line. Here's how to set it up:
-
Download
synctl
:Download the
synctl
binary from the Synapse releases page. -
Make the binary executable:
chmod +x synctl
-
Set up the Synapse API server:
synctl config set-api default -server=http://localhost:8080
You can now use synctl
to create, manage, and run workflows.
- Quick Start Guide: Learn how to create and run your first workflow.
- API Documentation: Explore the API endpoints and how to use them.
- Advanced Configuration: Customize your Synapse installation.
If you encounter any issues during installation, check the troubleshooting guide or visit the discussions page for help from the community.