Skip to content

Building TIBCO BusinessEvents Application

LakshmiMekala edited this page Mar 6, 2023 · 4 revisions

TIBCO BusinessEvents provides build_image script file to build a Container image of the TIBCO BusinessEvents application by using bundled Dockerfiles. Dockerfiles are available in BE_HOME/cloud/docker/dockerfiles folder.

Note: When building the Red Hat Enterprise Linux based Container image, update the dockerfile (Dockerfile.rhel) with your subscribed Red Hat Container image before running the build script. In the Dockerfile, replace the <RHEL_IMAGE> placeholder with the Red Hat Enterprise Linux Container image name.

You can build the Container image by two methods:

  1. Building Application image using BE cloud tools + downloaded software installers/installed BE product + Application artifacts

  2. Building S2I assemble image Using BE cloud tools + downloaded software installers/installed BE product + Source-to-Image (S2I) toolkit + Application artifacts

Prerequisites

Share BE_HOME/cloud/docker/tests folder with the Docker Daemon. See Docker documentation User Manual on how to share resources.

Procedure

Method One - Building BE Application image

Marshall application artifacts ready for build

Copy BE Application EAR, CDD and any 3rd Party JAR files to a folder that will be referenced as the apps-artifact-directory value.

Go to the BE_HOME/cloud/docker folder and run the build_image script.

Syntax:

build_image -i app \
-s <installers-directory/BE_HOME_location> \
-a <apps-artifact-directory> \
-t <app-image-name>:<app-image-version> \
--config-provider <names-of-config-providers> \
-d <Dockerfile> \
-b <name-of-build-tool>
  • Using Software Installers

    The source type should be installers directory location to build image using the installers.

    Example Using Docker

    ./build_image.sh -i app \
    -s /home/user/tibco/installers \
    -a /home/user/tibco/be/5.6/examples/standard/FraudDetection \
    -t fdapp
    

    Example Using Buildah

    ./build_image.sh -i app \
    -s /home/user/tibco/installers \
    -a /home/user/tibco/be/5.6/examples/standard/FraudDetection \
    -b buildah \
    -t fdapp
    

    Note: buildah supported only in linux

  • (Windows and Linux Only) Using Existing TIBCO BusinessEvents Installation

    The source type should be BE_HOME location to build image from the installation.

    Example Using Docker

    ./build_image.sh -i app \
    -s /home/user/tibco/be/5.6 \
    -a /home/user/tibco/be/5.6/examples/standard/FraudDetection \
    -t fdapp
    

    Note: For the Windows platform, use build_image.bat script and enclose all arguments in double quotes (").

    Example Using Buildah(Linux Only)

    ./build_image.sh -i app \
    -s /home/user/tibco/be/5.6 \
    -a /home/user/tibco/be/5.6/examples/standard/FraudDetection \
    -b buildah \
    -t fdapp
    

Method Two - Building using Source-to-Image (S2I) toolkit

This method is applicable only with docker build tool.

Marshall application artifacts ready for build

Copy BE Application EAR, CDD and any 3rd Party JAR files to a folder that will be referenced as the apps-artifact-directory value.

Go to the BE_HOME/cloud/docker folder and run the build_image script.

Syntax:

build_image -i s2ibuilder \
-s <installers-directory/BE_HOME_location> \
-t <app-image-name>:<app-image-version> \
--config-provider <names-of-config-providers> \
-d <Dockerfile>
  • Using Software Installers

    The source type should be installers directory location to build image using the installers.

    Example:

    ./build_image.sh -i s2ibuilder \
    -s /home/user/tibco/installers \
    -t fdapp
    
  • (Windows and Linux Only) Using Existing TIBCO BusinessEvents Installation

    The source type should be BE_HOME location to build image from the installation.

    Example:

    ./build_image.sh -i s2ibuilder \
    -s /home/user/tibco/be/5.6 \
    -t s2ibuilder:01
    

Note: For the Windows platform, use build_image.bat script and enclose all arguments in double quotes (").

Download the S2I toolkit from here. Next we provide application source to S2I to create an assembled image of the previously created builder image.

Syntax:


s2i build \
<apps-artifact-directory> \
<name of the builder image> \
<name of the application image>

Example:

s2i build \
/Users/test/Applications/FraudDetection/source \
s2ibuilder:01 \
fdopenshifts2i:01

Next Topic: Running TIBCO BusinessEvents Application

Parent Topic: Building TIBCO BusinessEvents

Clone this wiki locally