Build a TimesTen Container Image

TimesTen provides the files you need to build a TimesTen container image in its TimesTen Kubernetes Operator distribution. In this example, the directory that contains the unzipped TimesTen Kubernetes Operator distribution is kube_files.

  1. On your development host, change to the image directory of the unzipped TimesTen Kubernetes Operator distribution (kube_files/image, in this example).
    cd kube_files/image
  2. Copy the TimesTen distribution into the directory. In a previous example, you created the installation_dir directory. This directory contains the TimesTen distribution.
    cp installation_dir/timesten2211340.server.linux8664.zip .
  3. On your development host, change to the kube_files/image directory if you are not in that directory. Next, use the docker build command to build a TimesTen container image.

    This example specifies the following Dockerfile ARGs on the command line.

    • TT_DISTRO: The name of the file containing the TimesTen distribution (timesten2211340.server.linux8664.zip, in this example).

    • TT_RELEASE: The name of the TimesTen release in dotted format (22.1.1.34.0, in this example).
    docker build -t ttimage:22.1.1.34.0 \
    --build-arg TT_DISTRO=timesten2211250.server.linux8664.zip \
    --build-arg TT_RELEASE=22.1.1.34.0 .
    The build process starts. When completed, output similar to the following displays:
    Successfully tagged ttimage:22.1.1.34.0

    The name of the container image is ttimage:22.1.1.34.0.

  4. Save the name of the container image. You need it later.

Congratulations! You successfully built a TimesTen container image.