How to run TIBCO Cloud Integration Hybrid Agent (tibagent) in a docker container

How to run TIBCO Cloud Integration Hybrid Agent (tibagent) in a docker container

book

Article ID: KB0073712

calendar_today

Updated On:

Products Versions
TIBCO Cloud Integration -

Description

This article provides steps and sample files for Dockerizing Hybrid Agent.

Issue/Introduction

How to run TIBCO Cloud Integration Hybrid Agent (tibagent) in a docker container

Resolution

Following are the steps for running Hybrid Agent(tibagent) in a docker container.
1. Download tibagent binary from TIBCO Cloud UI
Documentation:https://integration.cloud.tibco.com/docs/#tci/using/hybrid-agent/installing-configuring-running-agent.html
  • tibagent-mac (if you on mac) | tibagent.exe (if on windows) needed to configure the tibagent
  • tibagent-linux to be copied into the agent docker image

2. Prepare the following list of files in a starting directory:
  • build-agent.sh
  • startup.sh
  • Dockerfile
  • tibagent-mac (if on mac) | tibagent.exe (if on windows) for configure
  • tibagent-linux (goes to image)
3. Steps in build-agent. sh
  • Configure
    1. This requires login to TCI
    2. It takes an optional parameter of the Port and the Agent name
    3. Default Agent name = your computer name
    4. Default Port = 7816
    5. It is configured with the current directory as the --config-dir
  • Build the image
    • The image is tag by default as tibagent/<agentName>:<port>
    • The entry point is set to run startup.sh
    • It launches tibagent using the config-dir on the current working dir
  • Generate the docker run script
    • Docker run with docker network as the agent name and container name also set as the agent name
4. Run the script build-agent.sh with the optional parameters agent name and port.
> build-agent.sh <agent name> <port>
eg: > build-agent.sh demoagent 7888
 
5.Script run-agent-<agent name>.sh file is generated. Run the script to start the container.
> run-agent-demoagent.sh

6. The Hybrid agent should now be displayed on the Agent page in TIBCO Cloud Integration (TCI)  UI with status running.
Navigating to Agent page:
https://integration.cloud.tibco.com/docs/#tci/using/hybrid-agent/agents-page.html
 
In the attached build-agent.sh script tibagent is configured for hybrid monitoring. You can modify the files according to your need for logstream and Hybrid connectivity.
The config-dir parameter can be used with tibagent to specify the tibagent configuration directory. Please refer to the below doc link for Hybrid Agent command Reference or use tibagent --help.
https://integration.cloud.tibco.com/docs/#tci/using/hybrid-agent/agent-command-reference.html

Additional Information

Documentation links:

Attachments

How to run TIBCO Cloud Integration Hybrid Agent (tibagent) in a docker container get_app
How to run TIBCO Cloud Integration Hybrid Agent (tibagent) in a docker container get_app
How to run TIBCO Cloud Integration Hybrid Agent (tibagent) in a docker container get_app