Building and Verifying the Docker Images

The Jenkins job build_docker is used to build the Docker images and to verify the images before proceeding to the next step.

build_docker

RELEASE_VERSION

The release version, together with build number, are used to compose the docker image tag.

RELEASE_SUFFIX

This is the suffix used in conjunction with the release version, for example, GA, HF1 (for Hotfix 1), and so on.

TM_CONNECTORS

You can choose to build OAuth2 JWT Authenticator in the Traffic Manager container (tml-tm). For more information on using this connector, refer to OAuth2JWT Authentication Connector.

Choosing the Docker Images to Build

An Administrator builds the Mashery Local Docker images using this Jenkins job:
Jenkins Job Name Mashery Local Docker image
BUILD_DOCKER_NOSQL tml-nosql: NoSQL container
BUILD_DOCKER_LOG tml-log: Log container
BUILD_DOCKER_SQL tml-sql: SQL container
BUILD_DOCKER_CACHE tml-cache: Cache container
BUILD_DOCKER_TM tml-tm: Traffic Manager container
BUILD_DOCKER_CM tml-cm: Cluster Manager container
Note: You should verify the sizes of the images that are created. They should be approximately the following sizes after creation:
  • tml-nosql - 733MB
  • tml-log - 971MB
  • tml-sql - 2GB
  • tml-cache - 740MB
  • tml-tm - 822MB
  • tml-cm - 1.09GB

UPDATE_PACKAGES

The administrator can choose:
  • Update_Specified_Packages: update specified packages during build;
  • Update_All_Packages: all packages will be updated during build.

update_package_list:

Uploads a csv file that contains the list of packages to be updated during build. This list is applied to all Docker images.

Here is an example content of a csv file:
python.x86_64
libssh2
systemd
bind-license
openssl-libs
device-mapper.x86_64
device-mapper-libs.x86_64

VERIFY_DOCKER_IMAGE

Select the VERIFY_DOCKER_IMAGE checkbox to validate the images before carrying out the setup.

The VERIFY_DOCKER_IMAGE option checks the following:
  • Installed packages,
  • Contents of the Mashery Local directories and files,
  • Files required by Mashery Local scripts and services.