Dockerfile links4.4.0 (Dockerfile)4.4.0-alpine (Dockerfile)4.4.0-centos (Dockerfile)4.3.0, latest (Dockerfile)4.3.0-alpine (Dockerfile)4.3.0-centos (Dockerfile)Where to get help:
Docker Community Forums, Docker Community Slack, Stack Overflow or mail to WSO2 Developer mailing list
Where to file issues:
Product specific issues at WSO2 Stream Processor product repository and Docker resource usage issues at product Docker resource repository
Maintained by:
WSO2 Inc.
Supported Docker versions:
Docker v17.09.0 or above
WSO2 Stream Processor is a Streaming SQL based, high performant, lightweight, open source stream processing platform, facilitating the creation of real-time, intelligent, actionable business insights, and data products for digital businesses. It allows you to collect events via multiple transports and in multiple formats. It uses streaming SQL to process streams, detect complex events, calculate time-based aggregations, and make predictions using machine learning models.
Worker profile runs Siddhi applications in a production environment when WSO2 Stream Processor is deployed in a single node or as a minimum HA cluster.
The following command starts a Linux Ubuntu-based Worker profile Docker image.
$ docker run -it -p 9090:9090 -p 9443:9443 --name worker wso2/wso2sp-worker:4.3.0
Here, ports 9090 and 9443 have been mapped to corresponding Docker host (host machine on top of which containers are spawned) ports.
Assuming you have started a Docker container instance of Worker profile as instructed in the previous section
Start a Worker profile instance,
$ docker logs worker
$ docker exec -it worker bash
To start a Docker container instance of the Worker profile in debug mode (assuming 5005 to be the remote debugging port), use the following command:
$ docker run -it -p 9090:9090 -p 9443:9443 -p 5005:5005 --name another-worker wso2/wso2sp-worker:4.3.0 -debug 5005
Configurations would lie on the Docker host machine and they can be volume mounted to the container. All the configurations related to the Worker profile are in deployment.yaml file. Each component has a corresponding heading in the YAML file that covers most of the component-specific configuration like Carbon configuration parameters, data source configuration, cluster configuration, etc. As an example, steps required to change the port offset using deployment.yaml is as follows:
In Worker profile product distribution, deployment.yaml configuration file can be found at {DISTRIBUTION_HOME}/conf/worker/deployment.yaml.
Copy the file to some suitable location of the host machine, referred to as {SOURCE_CONFIGS}/deployment.yaml and
increase the port offset value under wso2.carbon -> ports by 1.
other users for {SOURCE_CONFIGS}/deployment.yaml.$ chmod o+r {SOURCE_CONFIGS}/deployment.yaml
$ docker run -p 9090:9090 -p 9443:9443 --volume {SOURCE_CONFIGS}/deployment.yaml:{TARGET_CONFIGS}/deployment.yaml wso2/wso2sp-worker:4.3.0
Here, {TARGET_CONFIGS} refers to /home/wso2carbon/wso2sp-4.3.0/conf/worker folder of the container.
Multiple product profile Docker images based on different base operating systems are available.
wso2sp-worker:{version}Ubuntu 18.04 LTS based Docker image with AdoptOpenJDK 8 pre-installed has been used as the base Docker image.
Worker profile of WSO2 Stream Processor has been installed on top of this Docker image.
wso2sp-worker:{version}-alpineAlpine based Docker image with AdoptOpenJDK 8 pre-installed has been used as the base Docker image.
Worker profile of WSO2 Stream Processor has been installed on top of this Docker image.
wso2sp-worker:{version}-centosCentOS 7 based Docker image has been used. AdoptOpenJDK 8 and Worker profile of WSO2 Stream Processor have been installed on top of this Docker image.
View license information for the software contained in this image.
As with all Docker images, these are likely to contain other software which may be under other licenses (such as Bash, etc. from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
Content type
Image
Digest
Size
332.4 MB
Last updated
over 7 years ago
docker pull wso2/wso2sp-worker