Creating Docker Image for EAR File
You can create the Docker image for the application that is created for the ActiveMatrix BusinessWorks™ Plug-in for MDM activity.
To verify the EAR file name inside the Docker image, on the command line, enter the following command:
vi Dockerfile
If the EAR file name does not match with the name in the Dockerfile, you can either update the Dockerfile or change the EAR file name in BusinessWorks Container Edition.
- Take a backup of the Dockerfile located at TIBCO_HOME/bwce/version/docker.
- Edit the Dockerfile as follows:
FROM bwce:latest LABEL maintainer="TIBCO Software Inc." ADD bwpluginmdmbwce_1.0.0.ear /
- Procedure
- To build the Docker image, run the following command:
docker build -t tagname .
For example,docker build -t bwpluginmdmbwce:1.0.0
.Note: You must enter a space after the tag name (before the period) because the EAR file contains resources, directories, and files that you might want to include in the Docker image. - Run the following command to verify whether the Docker image is successfully created:
docker images
The newly created Docker image is displayed in the list of Docker images.
To run the Docker image, enter the following command on the command line:
docker run --network host -i bwpluginmdmbwce:1.0.0
OR
docker run -i IMAGE_ID
All the required variables are set. BusinessWorks Container Edition is started and the newly created application is mounted, deployed, and run.