Modifiable Scripts to build Docker Images

To modify and build the docker image use the files located at the following two locations:

  • Docker build : var > jenkins_home > docker-build.
  • Docker deploy : var > jenkins_home > docker-deploy.

Details of each files are described below.

Docker-build

This directory contains the build script, docker files, and installation script for each tml component.

  • Build script (build.sh)- This is the primary script used to build all the tml-components. The build.sh script internally calls the individual component's docker image builder. The script for these compenents is build-<tml_component_type>.sh and is located under tmgc-<tml_component_type>.

    • build-<tml_component_type>.sh - This script is used to build the docker image for the given tml_component_type. This scripts internally uses Dockerfile.<tml_component_type>, create_<tml_component_type>.sh and files under install folder for installing the required software/resources.
  • Docker file - The script for the docker file is dockerfile.<tml_component_type> . This contains the information on how to create/add users and groups, environment variables, and expose ports. The file internally calls the <tml_component_type> -install.sh to install the required software.
    • create_<tml_component_type>.sh - This script builds the docker image by using the information provided in Dockerfile.<tml_component_type>.
  • Install - This directory contains the scripts, config files, logback configs and readiness probes for installing the required software.

Docker-deploy

This directory contains the deployment scripts, configuration data for different cloud platforms and docker.