Step 3: Deploy the Siddhi Application¶
The SweetFactoryApp that you created in Step 2: Create the Siddhi Application is now ready to be exported as a Docker image, or deployed in Kubernetes.
Deploying in Docker¶
To export the SweetFactoryApp Siddhi application as a Docker artifact, follow the procedure below:
- Open VSCode in the directory where your Siddhi application is located.
-
Open the command palette by pressing
Ctrl + Shift + P(orCmd + Shift + Pon macOS), and type SI: Deploy Siddhi Apps to Docker. Select this command.
The Siddhi App selection dialog box opens as follows.

-
Enter the Docker image name.

-
Select the JAR files of Siddhi extensions that you want to include in the Docker image. If you do not select any JAR files, the default Siddhi extensions are included.

-
Provide the export file name.

-
Once completed, a zip will be created in the workspace directory with the following structure:
. ├── Dockerfile ├── README.md └── siddhi-files ├── <SIDDHI_FILE>.siddhi ├── ... └── <SIDDHI_FILE>.siddhi
What's Next?
Now you can run the SweetFactoryApp in the WSO2 Integrator: SI server. To do this, proceed to Step 4: Running the Siddhi Application