Customizing the Installer
You can modify the following installer scripts and files under /var/jenkins_home/docker-build and /var/jenkins_home/docker-deploy to build the Docker images.
docker-build
This directory contains the Docker files, as well as build and installation scripts for each TML component.
Files under docker-build-rwxr-xr-x 1 jenkins jenkins 1570 Apr 1 18:18 build.sh drwxr-sr-x 3 jenkins jenkins 4096 Apr 1 18:18 tmgc drwxr-sr-x 3 jenkins jenkins 4096 Apr 1 18:18 tmgc-api drwxr-sr-x 3 jenkins jenkins 4096 Apr 1 18:18 tmgc-cache drwxr-sr-x 3 jenkins jenkins 4096 Apr 1 18:18 tmgc-cm drwxr-sr-x 3 jenkins jenkins 4096 Apr 1 18:18 tmgc-log drwxr-sr-x 3 jenkins jenkins 4096 Apr 1 18:18 tmgc-nosql drwxr-sr-x 4 jenkins jenkins 4096 Apr 1 18:18 tmgc-sql drwxr-sr-x 3 jenkins jenkins 4096 Apr 1 18:18 tmgc-tm
- build.sh: This is the primary script used to build all the tml-components. This
build.sh script internally calls the individual component's Docker image builder script build
-<tml_component_type>.sh. under
tmgc-<tml_component_type>.
Files under tmgc-<tml_component_type>:
-rw-r--r-- 1 jenkins jenkins 631 Apr 1 18:18 Dockerfile.nosql -rwxr-xr-x 1 jenkins jenkins 645 Apr 1 18:18 build-nosql.sh -rwxr-xr-x 1 jenkins jenkins 1076 Apr 1 18:18 create-nosql.sh drwxr-sr-x 2 jenkins jenkins 4096 Apr 1 18:18 install
- build-<tml_component_type>.sh: This script is used to build the docker image for the given tml_component_type. This script internally uses Dockerfile.<tml_component_type>, create_<tml_component_type>.sh and files under the install folder for installing the required software/resources.
- Dockerfile.<tml_component_type>: This contains the information on how to create/add users and groups, environment variables, expose ports. This file internally calls the <tml_component_type>-install.sh to install the required software.
- create_<tml_component_type>.sh: This script finally builds the Docker image by using the information provided in Dockerfile.<tml_component_type>.
- install: This directory contains the scripts for installing the required software, configuration files required for the software installation, logback configs and readiness probes.
Sample showing files under install folder
-rwxr-xr-x 1 jenkins jenkins 3951 Apr 1 18:18 cassandra -rw-r--r-- 1 jenkins jenkins 226 Apr 1 18:18 cassandra-local.repo -rw-r--r-- 1 jenkins jenkins 1200 Apr 1 18:18 cassandra-rackdc.properties -rw-r--r-- 1 jenkins jenkins 179 Apr 1 18:18 cassandra-tibco.repo -rw-r--r-- 1 jenkins jenkins 1105 Apr 1 18:18 cassandra-topology.properties -rw-r--r-- 1 jenkins jenkins 170 Apr 1 18:18 cassandra.repo -rw-r--r-- 1 jenkins jenkins 4794 Apr 1 18:18 logback.xml -rw-r--r-- 1 jenkins jenkins 2705 Apr 1 18:18 nosql-entry-compose.sh -rw-r--r-- 1 jenkins jenkins 7246 Apr 1 18:18 nosql-entry-k8s.sh -rw-r--r-- 1 jenkins jenkins 1714 Apr 1 18:18 nosql-entrypoint.sh -rwxr-xr-x 1 jenkins jenkins 2627 Apr 1 18:18 nosql-install.sh -rw-r--r-- 1 jenkins jenkins 779 Apr 1 18:18 nosql-ready-probe.sh
docker-deploy
This directory contains the deployment scripts, configuration data for different cloud platforms and Docker.
Files under docker-deploy:
drwxr-sr-x 4 jenkins jenkins 4096 Apr 1 18:18 aws drwxr-sr-x 5 jenkins jenkins 4096 Apr 1 18:18 azure drwxr-sr-x 2 jenkins jenkins 4096 Apr 1 18:18 compose drwxr-sr-x 3 jenkins jenkins 4096 Apr 1 18:18 gcp -rwxr-xr-x 1 jenkins jenkins 2821 Apr 1 18:18 init-ml.sh drwxr-sr-x 4 jenkins jenkins 4096 Apr 1 18:18 onprem drwxr-sr-x 2 jenkins jenkins 4096 Apr 1 18:18 openshift drwxr-sr-x 2 jenkins jenkins 4096 Apr 1 18:18 properties drwxr-sr-x 2 jenkins jenkins 4096 Apr 1 18:18 sample_data -rwxr-xr-x 1 jenkins jenkins 348 Apr 1 18:18 set-user-variables.sh drwxr-sr-x 2 jenkins jenkins 4096 Apr 1 18:18 upgrade
Copyright © Cloud Software Group, Inc. All rights reserved.