How to deploy a TIBCO BusinessEvents application to Docker Swarm

How to deploy a TIBCO BusinessEvents application to Docker Swarm

book

Article ID: KB0072940

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.x/6.x

Description

TIBCO BusinessEvents application deployment to Docker Swarm
 

Environment

Docker Swarm TIBCO BusinessEvents 6.1.1

Resolution

To deploy a TIBCO BusinessEvents application to Docker swarm below steps required.

1.)  Create a docker image 
Download the Docker deployment scripts from:  https://github.com/TIBCOSoftware/be-tools
Documentation:  https://github.com/TIBCOSoftware/be-tools/wiki/Building-TIBCO-BusinessEvents-Application

2.) Create the network referenced in the yaml file(s)
e.g.,
docker network create --driver=overlay be_network_fd

3.) Create the swarm deployment scripts.
Sample yaml files attached.

FD-Sample application
 - 01_FDSampleDeploy.yaml

FDCache - sample
There are two options available to set the hostname required to define the TIBCO ActiveSpaces discoveryURL

Option 1: Hostnames configured in yaml file
 - 02_HostNameHardCoded-deploy.yaml

Option 2: Hostname - <appname>_<servicename>
 - 03_HostNameSetToAppService-deploy.yaml

Note:
It is required to modify the yaml file and update the docker image names and the network name referenced in the yaml file.

4.) Deploy the application
docker stack deploy -c <yamlFile> <appname>
e.g.,
docker stack deploy -c 01FDSampleDeploy.yaml be_fd_v611

 
Note:
You can create a service with a command line instead of the yaml file and define all configuration values as command line parameters.
docker service create --name=<APPNAME> --network=<dNetwork> --publish published=<EXT_PORT1>,target=<INT_PORT1> <DOCKIMAGE>
e.g.,
docker service create --name=be_fd_v611 --network=be_network_fd --publish published=8108,target=8108 fd:be611


Docker Swarm Commands:
- List the services:

docker service ls

- Scale the service: 

docker service scale <APPNAME>=<numberOfInstances>

e.g., stop the service and scale down to 0
docker service scale be_fd_v611=0

- Check if service running:

docker service ps <servicename>
e.g.,
docker service ps be_fd_v611

- Check logs: 

docker service logs <servicename>
docker service logs -f <servicename>
e.g.,
  docker service logs -f be_fd_v611


- Delete the service:

docker service rm %APPNAME%
e.g.,
docker service rm be_fd_v611

 

Issue/Introduction

How to deploy a TIBCO BusinessEvents application to Docker Swarm

Additional Information

https://github.com/TIBCOSoftware/be-tools
https://contribute.docker.com/docs/communityleaders/eventhandbooks/java/swarm/

Attachments

How to deploy a TIBCO BusinessEvents application to Docker Swarm get_app
How to deploy a TIBCO BusinessEvents application to Docker Swarm get_app
How to deploy a TIBCO BusinessEvents application to Docker Swarm get_app