The Stream Processor Studio allows you to export one or more selected Siddhi files as Docker artifacts in order to make it possible to run those Siddhi applications in a Docker environment.
To export Siddhi files as Docker artifacts, follow the steps below:
Before you begin:
Configuring Docker in SP
By default, WSO2 SP uses the latest docker image hosted in wso2.docker.com. If you want to use the different version of an image, follow the steps below:
Configurations for Docker exportsection of the
<SP_HOME>/conf/editor/deployment.yamlfile as follows.
You need to replace the
<PREFERED_PRODUCT_VERSION>with your preferred image version e.g., 4.3.0.
- Restart the WSO2 SP server.
This feature also uses the following configuration files with the content as shown below:
Exporting Siddhi files
To export multiple Siddhi files, follow the steps below:
- Start and access the Stream Processor Studio as instructed in Stream Processor Studio Overview - Starting the Stream Processor Studio.
- Click File, and then click Export as Docker.
As a result, the Export as Docker dialog box opens as follows.
- In the Profile field, select either Editor or Worker depending on the profile in which the Siddhi file you want to export is located.
- Under Files to be included, expand the workspace directory to view all the Siddhi applications that are available to be exported.
Select the speific Siddhi applications you want to export by selecting the relevant check boxes. If you want to select all the Siddhi applications, select the check box for the workspace directory.
- Click Export. The Siddhi applications are exported as docker artifacts in a zip file to the default location in your machine, based on your operating system and browser settings.