Cannot build Docker images using the BE 6.1 maven plugin

Cannot build Docker images using the BE 6.1 maven plugin

book

Article ID: KB0073725

calendar_today

Updated On:

Products Versions
DO NOT USE! - TIBCO BusinessEvents - Enterprise Edition 6.1.0

Description

When attempting to run the 'mvn build-app-image' goal to build a Docker image for a BE 6.1 project, the following error occurs:
[INFO] --- be-maven-plugin:6.1.0:buildAppImage (default-buildAppImage) @ FraudDetection ---
java.io.IOException: Cannot run program "C:/tibco/be/6.1/cloud/docker/frominstall/build_app_image.bat" (in directory "C:\tibco\be\6.1\cloud\docker\frominstall"): CreateProcess error=2, The system cannot find the file specified
This is due to a defect in the BE 6.1 maven plugin, where it is looking in the wrong place for the build_image script.
 

Issue/Introduction

An error is seen when attempting to build docker images using the BE maven plugin's 'build-app-image' goal.

Resolution

To work around this issue, you may instead run the build_image.[bat/sh] script directly from a terminal window. Note: The script must be run from its containing directory (%BE_HOME%\cloud\docker\). 

Example:
cd %BE_HOME%\cloud\docker

build_image.bat -i "app" -a "<path to artifacts>" -s "C:\TIBCO\be\6.1" -t "fdapp"
After the build completes, you may then run it from your Docker Desktop application, or from the command line:
docker run -d --name fdapp -p 8108:8108 fdapp:latest

Additional Information

BE Cloud Tools
Documentation on BE Maven Plugin Phases