Installation and Upgrade Guide > TDV Docker Container > Building TDV Docker Images
 
Building TDV Docker Images
You will be using TDV Dockerfile and corresponding tar.gz file that are provided on eDelivery.tibco.com alongside the other TDV distributions (e.g. installer and patch). Follow these steps to build the TDV Docker Images:
1. Download the Dockerfile.tdv and tdv_<TDV_VERSION>_bin.tar.gz on your instance for building Docker images.
2. You should also download the md5 checksum files in order to validate the integrity of these files.
Example:
md5sum -c Dockerfile.tdv.md5
md5sum -c tdv-<TDV_VERSION>-bin.tar.gz.md5
3. Goto to the location where you have downloaded the TDV Dockerfile and tar.gz file and run the Docker build command as shown below.
Note: The TDV Docker image uses a Linux base OS. If you are running Docker on Windows then make sure Docker is set to use Linux containers. See https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers for more details.
Generic example:
$ docker build -t <your-docker-repo-name>/<image_name>[:<image-tag>] -f Dockerfile.tdv .
 
TDV default build example: (default TDV base port 9400, default TDV admin password, and default TDV server memory 8 GB):
$ docker build -t myrepo/tdv:<TDV_VERSION> -f Dockerfile.tdv.
 
TDV custom build example: (custom TDV ports, TDV admin password, and TDV server memory value):
$ docker build -t myrepo/tdv:<TDV_VERSION> -f Dockerfile.tdv . --build-arg tdv_base_port=10000 --build-arg tdv_base_port_3=10003 --build-arg tdv_base_port_7=10007 --build-arg tdv_base_port_drill=9903 --build-arg tdv_admin_password=<TDV_ADMIN_PASSWORD> --build-arg tdv_server_max_memory=<number of KB>
Note:
You can also configure your TDV build:
By modifying the Dockerfile.tdv file's args that have tdv prefixed variables.
By adjusting TDV server memory with the tdv_server_max_memory argument. When a TDV container is created from this image, make sure your container memory setting (e.g. -m) is the same or higher value then your build value.
Example for TDV configuration: tdv_server_max_memory=8192 then -m=8g
By changing TDV configuration during runtime. The TDV admin password, TDV base port and TDV server memory settings can be done when the TDV container is running. Docker container restart is not required when changing TDV admin password via a TDV client (e.g. TDV Studio and TDV command line util - server_util.bat/sh). Changing the TDV base port and server memory will require using the TDV Studio client and starting a new TDV container due to port and/or resource (i.e. memory) changes.
See section Runtime TDV Container Configuration - Common Examples for more details.