Building Hawk Container Edition Components Docker Images

Before you can run TIBCO Hawk Container Edition components, you must create Docker images for those components.

Note: The default base image in the provided sample Dockerfile is Debian Linux with OpenJDK 11. If required, you can change the base image reference in the Dockerfile. For information on Dockerfile, see https://docs.docker.com/engine/reference/builder/.

Prerequisites

  • Install Docker on the machine and perform the initial setup based on your operating system. For complete details on Docker installation, refer to the Docker documentation at https://docs.docker.com.
  • Download Hawk Container Edition software package from the TIBCO Software Product Download Site ( https://edelivery.tibco.com/). Extract the Hawk Container Edition archive file to a temporary directory on the machine.
  • Ensure that you have Dockerfile for each components for which you are creating the Docker image.

Procedure

  1. Open a console window and navigate to the temporary directory where you extracted the Hawk Container Edition archive file at <TEMP_DIRECTORY>/hkce-runtime-<version>/tibco.home/hkce/<version>/docker.
  2. Run the script build_hkce_clustermanager.sh. The script uses the hkce_clustermanager_Dockerfile to build the Docker image of Hawk Cluster Manager.
  3. Run the script build_hkce_agent.sh. The script uses the hkce_agent_Dockerfile to build the Docker image of Hawk Agent.
  4. Run the script build_hkce_console.sh. The script uses the hkce_console_Dockerfile to build the Docker image of Hawk Console.
  5. Run the following command to verify if the Docker images are built:
    docker images

Result

The hkce_clustermanager:2.0, hkce_agent:2.0, and hkce_console:2.0 Docker images are built.

What to do next

After building the Docker images, you can run the Hawk containers of these images. You can run the Hawk component in two different modes: