Dockerfiles for Hawk Container Edition
Hawk Container Edition provides Dockerfiles for installation of Hawk Container Edition components inside the Docker containers.
Dockerfile is a script, which consists of various commands to automatically perform actions on a base image to create a new one. Dockerfiles simplify the process of deployment. The default base image on the provided Dockerfiles is Debian Linux with OpenJDK 11.
Dockerfile Key Commands
FROM openjdk:11.0.1-jre-slim-stretch
After specifying the base image, define various other methods, commands and arguments (or conditions), in return, provide a new image which is to be used for creating Docker containers. The Dockerfile is then supplied to the Docker daemon to build an image.
Command argument argument ...
# Print "Hello docker!" RUN echo "Hello docker!"
For more details on each command of Dockerfile, refer to the Docker documentation at https://docs.docker.com/engine/reference/builder/.
Sample Hawk Container Edition Dockerfiles
- hkce_agent_Dockerfile - The hkce_agent_Dockerfile contains the commands to create Docker image of the Hawk Agent.
- hkce_clustermanager_Dockerfile - The hkce_clustermanager_Dockerfile contains the commands to create Docker image of the Hawk Cluster Manager.
- hkce_console_Dockerfile - The hkce_console_Dockerfile contains the commands to create Docker image of the Hawk Console.
The sample Dockerfile (hkce_clustermanager_Dockerfile) for Hawk Cluster Manager provided with the Hawk Container Edition is as follows:
FROM openjdk:11.0.1-jre-slim-stretch COPY ./hkce/2.0/bin/startclustermanager.sh tibco.home/hkce/2.0/bin/ COPY ./hkce/2.0/lib/common-core tibco.home/hkce/2.0/lib/ COPY ./hkce/2.0/lib/common-ext tibco.home/hkce/2.0/lib/ext WORKDIR tibco.home/hkce/2.0/bin/ ENTRYPOINT ["bash", "startclustermanager.sh"]