Skip to content

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:

  1. Open VSCode in the directory where your Siddhi application is located.
  2. Open the command palette by pressing Ctrl + Shift + P (or Cmd + Shift + P on macOS), and type SI: Deploy Siddhi Apps to Docker. Select this command.

    Deploy to Server Docker Option

    The Siddhi App selection dialog box opens as follows.

    Deploy Siddhi Apps to Docker

  3. Enter the Docker image name.

    Docker Image Name

  4. 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.

    Select Siddhi Extensions

  5. Provide the export file name.

    Export File Name

  6. 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