Building TIBCO BusinessEvents Application Docker Image
TIBCO BusinessEvents provides script files to build a Docker image of the TIBCO BusinessEvents application by using bundled Dockerfiles.
You can build the Docker image either by using existing TIBCO BusinessEvents installation (BE_HOME) from your computer or by using the software installers of TIBCO BusinessEvents and other required products. The Docker image generated by using software installers is of smaller size in comparison to the Docker image generated by using your TIBCO BusinessEvents installation.
For details about Dockerfiles provided with TIBCO BusinessEvents, see Dockerfile for TIBCO BusinessEvents.
Procedure
-
Application Docker Image by Using Software Installers
Go to the BE_HOME/cloud/docker/bin folder and run the build_app_image application Docker image building script.
Syntax:build_app_image -l <installers-directory> -a <apps-artifact-directory> -r <app-image-name>:<app-image-version> [--gv-providers <names-of-GV-providers>] [-d <Dockerfile>] [-h]
Example:build_app_image -l /home/user/tibco/installers -a /home/user/tibco/be/5.6/examples/standard/FraudDetection -r fdapp --gv-providers "consul"
-
(Windows and Linux Only) Application Docker Image by Using Existing TIBCO BusinessEvents Installation
Go to the BE_HOME/cloud/docker/frominstall folder and run the build_app_image application Docker image building script.
Syntax:build_app_image [-l <BE_HOME_location>] -a <apps-artifact-directory> -r <app-image-name>:<app-image-version> [--gv-providers <names-of-GV-providers>] [-d <Dockerfile>] [-h]
Example:build_app_image -a /home/user/tibco/be/5.6/examples/standard/FraudDetection -r fdapp --gv-providers "consul"
Argument | Required/Optional | Description |
---|---|---|
-l/--installers-location
(For the Docker image based on software installers) |
Required | The location where installers for TIBCO BusinessEvents, TIBCO ActiveSpaces (optional), and TIBCO BusinessEvents add-ons (optional) are stored. This option is available for scripts that are run from BE_HOME/cloud/docker/bin. |
-l/--be-home
(For the Docker image based on the existing TIBCO BusinessEvents installation) |
Optional | Specify TIBCO BusinessEvents installation (BE_HOME) location. This is optional if the script runs from its default location (BE_HOME/cloud/docker/frominstall). |
-a/-app-location | Required | The location where the application CDD file, enterprise archive (EAR) file, and external JAR files are stored. |
-r/-repo | Required | Name that you want to assign to application Docker image.
Optionally, you can provide the version number for the Docker image. Use the following naming convention for the application Docker image:
<image-name>:[version-number]For example, fdc:1.0. |
--gv-providers | Optional | Provide names of the global variable providers as a comma-separated list. The values are: |
-d/--dockerfile | Optional | The custom Dockerfile used for generating image. You can use your own Dockerfile or you can edit and use the Dockerfile provided with the TIBCO BusinessEvents installation.
If you have placed the Dockerfile at a location other than the default location, provide the path of the Dockerfile. If not specified, the script uses the default bundled Dockerfile. For the list of default Dockerfiles associated with the scripts that are provided with TIBCO BusinessEvents, see Dockerfile for TIBCO BusinessEvents. |
-h/--help | Optional | Displays help for the script file. |