Binding BusinessWorks Application to Open Tracing on Docker

We can enable Open Tracing forTIBCO BusinessWorks™ Container Edition application on docker using the environment variable BW_JAVA_OPTS, JAEGER_AGENT_HOST, JAEGER_AGENT_PORT, and JAEGER_SAMPLER_MANAGER_HOST_PORT.

Prerequisites

Ensure the correct JAEGER agent is running.

Procedure

  1. Create a Dockerfile to deploy TIBCO BusinessWorks Container Edition application on docker. For more information about creating Dockerfile, see Application Development for Docker in the Application Development guide.
    FROM tibco/bwce:latest
    MAINTAINER Tibco
    ADD <application name>.ear/
    EXPOSE 8080
    
  2. Run the Docker terminal and navigate to the directory where the EAR and Docker file are stored.
  3. Run the following command to build the application image:
    docker build -t <application name> . 
  4. In docker run command, set the environment variables BW_JAVA_OPTS, JAEGER_AGENT_HOST, JAEGER_AGENT_PORT , and JAEGER_SAMPLER_MANAGER_HOST_PORT to enable open tracing.
  5. Run the command in the docker terminal using docker machine IP or using link.

    1. docker run -d -p 18050:8080
      -e BW_JAVA_OPTS="-Dbw.engine.opentracing.enable=true"
      -e JAEGER_AGENT_HOST: 18.207.139.80
      -e JAEGER_AGENT_PORT: 6831
      -e JAEGER_SAMPLER_MANAGER_HOST_PORT: 18.207.139.80:5778 <application name>