Environment setup
This guide lists the different ways to set up your environment for SonataFlow development. If you are new, start with the minimal one.
-
A machine with at least 8GB memory and a CPU with 8 cores
Minimal local environment setup
Recommended steps to set up your local development environment. By completing these steps you are able to start the development on your local machine using our guides.
-
Install Kubernetes CLI.
-
Install Knative using quickstart. This will also set up Knative Serving and Eventing for you and the cluster should be running.
-
Install the SonataFlow Operator manually.
-
Install Knative Workflow CLI.
-
Install Visual Studio Code with our extension that simplifies development of workflows by providing visual aids and auto-complete features.
Starting the cluster for local development
If you have used Knative using quickstart guide, your selected cluster should be running and properly configured to work with our guides.
Please note, that if the Knative quickstart procedure is not used, you need to install Knative Serving and Eventing manually. See Additional options for local environment setup.
# Set a driver and container runtime
minikube config set driver docker
minikube config set container-runtime docker
# Start the cluster
# Set the memory to at least 4096, increase to 6144 or 8192 if possible
minikube start --cpus 4 --memory 4096 --addons registry --addons metrics-server --insecure-registry "10.0.0.0/24" --insecure-registry "localhost:5000"
# Set the active profile
minikube profile knative
# Set a driver and container runtime
minikube config set driver podman
minikube config set container-runtime podman
# Start the cluster
# Set the memory to at least 4096, increase to 6144 or 8192 if possible
minikube start --cpus 4 --memory 4096 --addons registry --addons metrics-server --insecure-registry "10.0.0.0/24" --insecure-registry "localhost:5000"
# Set the active profile
minikube profile knative
kind create cluster
Advanced local environment setup
If you are interested in our Java and Quarkus development path, consider completing this procedure in addition to the Minimal local environment setup. By completing these steps you are able to start the development of applications on your local machine using our advanced developer guides.
-
Install OpenJDK 17+ and configure
JAVA_HOME
appropriately by adding it to thePATH
. -
Install Apache Maven 3.9.3.
-
Install Quarkus CLI corresponding to the currently supported version by SonataFlow. Currently, it is 3.8.4.
Additional options for local environment setup
Points listed in this section provide extra possibilities when working with our guides and are considered optional.
-
Install GraalVM 22.3.0. This will allow you to create native image of your SonataFlow application.
-
Install Knative Serving using YAML files for advanced customizations or in cases where the quickstart procedure fails.
-
Install Knative Eventing using YAML files for advanced customizations or in cases where the quickstart procedure fails.
Found an issue?
If you find an issue or any misleading information, please feel free to report it here. We really appreciate it!