Skip to content

Running TIBCO BusinessEvents Application

yogita edited this page May 23, 2022 · 3 revisions

By using the TIBCO BusinessEvents Container Image, you can run it in Docker or Podman.

Prerequisites

Procedure

Execute the run command on the machine where you have created the container image.

Syntax Using Docker:

docker run --net=<NETWORK_NAME> \
-p <CONTAINER_PORT>:<HOST_PORT> \
-v <LOCAL_DIRECTORIES>:<CONTAINER_DIRECTORIES> \
-e <ENVIRONMENT_VARIABLES> \
<IMAGE_NAME>:<IMAGE_VERSION>

Syntax Using Podman:

podman run --net=<NETWORK_NAME> \
-p <CONTAINER_PORT>:<HOST_PORT> \
-v <LOCAL_DIRECTORIES>:<CONTAINER_DIRECTORIES> \
-e <ENVIRONMENT_VARIABLES> \
<IMAGE_NAME>:<IMAGE_VERSION>

Example

Running inmemory Application

docker run -p 8110:8110 -e PU=default "HOSTNAME=localhost" httpapp 

Running Activespaces Legacy Cache Application

Example Using Docker.

  • Build Image:

    ./build_image.sh -i app \
    -a '<Path to Application CDD and EAR>' \
    -s '<Installer Location>' \
    -t be6dascache:v1
    
  • Create Network

    docker network create net1
    
  • Run Cache agent

    docker run --net=net1 \
    -e PU=cache \
    --name=cacheagent \
    be6dascache:v1
    
  • Run Inference agent

    docker run --net=net1 \
    -e PU=default \
    -e AS_DISCOVER_URL=tcp://cacheagent:50000 \
    --name=inferenceagent \
    -p 8109:8109 \
    be6dascache:v1
    

Example Using Buildah and Podman:

With podman we can create network only in root user mode. If you like to run in root less mode you can use default network host.

  • Rootless Mode:

    • Build Image

      ./build_image.sh -i app \
      -a '<Path to Application CDD and EAR>' \
      -s '<Installer Location>' \
      -b buildah \
      -t be6dascache:v1
      
    • Run Cache agent

      podman run --net=host \
      -e PU=cache \
      -e JMX_PORT=5556 \
      -e ENGINE_NAME=be-engine-ascache  \
      be6dascache:v1
      
    • Run Inference agent

      podman run --net=host \
      -e PU=default \
      -e AS_LISTEN_PORT=51000 \
      -e AS_DISCOVER_URL=tcp://127.0.0.1:50000 \
      be6dascache:v1
      
  • Rootuser Mode:

    • Build Image

      sudo ./build_image.sh -i app \
      -a '<Path to Application CDD and EAR>' \
      -s '<Installer Location>' \
      -b buildah \
      -t be6dascache:v1
      
    • Create Network

      sudo podman network create net1
      
    • Run Cache agent

      sudo podman run --net=net1 \
      -e PU=cache \
      be6dascache:v1
      
    • Get IP address of above container:

      sudo podman inspect <container-id> | grep IPAddress
      
    • Run Inference agent

      sudo podman run --net=net1 \
      -e PU=default \
      -e AS_DISCOVER_URL=tcp://<cache-ip>:50000 \
      -p 8109:8109 \
      be6dascache:v1
      

Parent topic: Running TIBCO BusinessEvents

Clone this wiki locally