Script (build_be_image.sh) for building a Docker Image for TIBCO BusinessEvents is failing in case there is no internet connectivity available for a Docker daemon.

Script (build_be_image.sh) for building a Docker Image for TIBCO BusinessEvents is failing in case there is no internet connectivity available for a Docker daemon.

book

Article ID: KB0074864

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.5.0, 5.6.0, 5.6.1

Description

Script (build_be_image.sh) for building a Docker Image for TIBCO BusinessEvents (BE) is failing in case there is no internet connectivity available for a Docker daemon. Below error is seen :- ==============================================
INFO:Installing BusinessEvents 5.5.0... Cannot open file /opt/tibco/be/5.5/bin/be-engine.tra for read at be_docker_install.pm line 460. The command '/bin/sh -c perl -I. -Mbe_docker_install -e "be_docker_install::install_be('$BE_PRODUCT_VERSION','$BE_PRODUCT_EDITION','$BE_PRODUCT_ADDONS','$BE_PRODUCT_HOTFIX','$AS_PRODUCT_HOTFIX','$AS_VERSION')"' returned a non-zero code: 2 Docker build failed.
==============================================

Environment

Containerized Environment

Resolution

Exact BE Installation error can be found from /root/.TIBCO/install_ files inside container. You need to start a last successful image created as :-
========
docker run -it bf6d2fd8e919 /bin/bash
========
Universal Installer for BE is looking for exact version of LGPL GTK Plugin for Eclipse. Each BE version needs a specific LGPL Plugin version that is listed at https://edelivery.tibco.com/ under respective BE version. Download the platform-specific LGPL plugin from http://public.tibco.com/pub/tibco_oss/eclipse_lgpl/. For example, for Linux download the product_tibco_be_eclipse_lgpl_4.5.2.001_linux_x86_64.zip archive for BE 5.5.0.

For a docker installation with no Internet Connectivity :-
- unzip BE installation files (eg: /home/tibco/beInstallationFiles)
- copy product_tibco_be_eclipse_lgpl_4.5.2.001_linux_x86_64.zip (assume BE 5.5.0) to assembly folder
- reset permissions in BE installation folder (eg.: chmod -R 777 /home/tibco/beInstallationFiles)
- create a new installer zip file (same name as original one)
   for exapmle:
     cd /home/tibco/beInstallationFiles
     zip -r TIB_businessevents-enterprise_.zip *
- copy the file to the docker installation folder (/apps/TFS/Docker)
- create the image using build_be_image.sh

Same can be done for Oracle Elliptic Curve Cryptography (ECC) Library which is required for BE 5.6.0 onward. You need to find the required version from https://edelivery.tibco.com/ under respective BE version and download from http://public.tibco.com/pub/tibco_oss/sunec/ copy to assembly folder per above steps.

In addition to that, it is also not possible to load and install the required packages (unzip, procps, findutils).

Copied from Dockerfile:
RUN apt-get update \
&& apt-get install -y unzip procps findutils

In this case, one needs to use prebuilt OS image with above utilities installed and updated in respective Dockerfile.

 

Issue/Introduction

Script (build_be_image.sh) for building a Docker Image for TIBCO BusinessEvents is failing in case there is no internet connectivity available for a Docker daemon.

Additional Information

https://docs.tibco.com/pub/businessevents-enterprise/5.6.1/doc/html/GUID-92C3C560-4F90-4131-9066-6FDAB81634C8.html
https://docs.tibco.com/pub/businessevents-enterprise/5.6.1/doc/html/GUID-EB402FBF-8F73-4811-BEC9-8B7DFFEA74F6.html