Building an Application Image

Follow these steps to build an application image in TIBCO BusinessWorks Container Edition.

    Procedure
  1. Copy the Dockerfile from the samples directory to the location where you placed the EAR file.
  2. From the terminal, navigate to the folder where the EAR and Dockerfile are stored.
  3. In the Dockerfile, make sure the base image points to the TIBCO BusinessWorks Container Edition runtime base image.
    Also make sure the ear file path and name is correct.
    FROM baseimage
    MAINTAINER Tibco
    ADD appname.ear /
    EXPOSE 8080
  4. On the terminal run the following command to generate the application image.
    docker build -t appname .
    
  5. If the TIBCO BusinessWorks Container Edition applications are designed using Rendezvous, use the following dockerfile:
    FROM baseimage
    COPY <<EAR NAME>> /
    COPY tibrv /tibrv
    RUN echo $PATH
    ENV PATH=$PATH:/tibrv/<rv_version>/bin
    ENV PATH=$PATH:/tibrv/<rv_version>/lib
    ENV PATH=$PATH:/tibrv/<rv_version>/lib/tibrvnative.jar
    ENV LD_LIBRARY_PATH=/tibrv/<rv_version>/lib