Building the Container Image
Follow these steps to build your container image:
| 1. | Build the container image using the TDV Docker file and tar.gz file from the TIB_tdv_<version>_docker_k8s.zip archive. That archive file is contained in TIB_tdv_<version>_kubernetes.zip. The edelivery has separate archive files for each distribution. When building the container image for the Kubernetes distribution, it is important that you choose this archive. |
Note: The default password in the Dockerfile is tdvk8s. If you build the image, without changing the password for the docker_k8s Dockerfile at build time, then your image and the future containers will use this default TDV admin password. The best practice is to change the default TDV admin password. It will need to be done at build time as given below:
unzip TIB_TDV_<version>_docker_k8s.zip
chmod 755 *.sh
./build_tdv_image.sh --build-arg tdv_admin_password=<NEW PASSWORD>
For the Kubernetes distribution, the default image and tag name is "tibco/tdvk8s:<version>" where <version> is the TDV version. If you want to change the image tag, use the following command-line argument:
-n: Set name:tag for image (default is "tibco/tdvk8s:8.6").
When the image is successfully built, you will see a message similar to:
Successfully built <image>
Successfully tagged tibco/tdvk8s:8.6
| 2. | To verify that the image is built successfully, use the following command: |
docker images -a |grep <image tag>
If the image was built successfully, it will be listed.
| 3. | As a best practice, before transitioning to AKS or other container deployment tools, verify that you can run the image in Docker. To do this, run the script run_tdv_container.sh: |
$ chmod 777 run_tdv_container.sh
$ ./run_tdv_container.sh
The script runs Docker commands to verify that the image runs in Docker. If the image runs successfully in Docker, it will also run in AKS.
To complete the Kubernetes configuration in your instance using the quick start script, refer Configuring Kubernetes Using Quick Start Script.
You can also manually complete the configuration if you are familiar with the Helm and Kubernetes command line client tools (i.e. helm and kubectl).
For a list of helm commands, refer to:
For a list of kubectl commands, refer:
https://kubernetes.io/docs/reference/kubectl/cheatsheet/
Useful command examples of helm and kubectl can be found at: Useful Kubernetes Commands