Build your own Docker images

It is possible to build your own TDM Portal Docker images, from source binaries and Dockerfiles. The Image Kit is available for this purpose.
tdm49
It is possible to build your own TDM Portal Docker images, from source binaries and Dockerfiles. The Image Kit is available for this purpose.
Follow these steps:
 
  1. Download 
    CA TEST DATA MANAGER PORTAL FOR DOCKER (IMAGE KIT) <
    version_number
     from support.broadcom.com.
  2. Unzip the file that you download. This contains the file 
    TDM_Portal_docker_src-<
    version_number
    >.tgz.
     
  3. Untar 
    TDM_Portal_docker_src-<
    version_number
    >.tgz
     with the following command:
    tar -xzf TDM_Portal_docker_src-<
    version_number
    >.tgz
  4. Run 
    install.sh
    .
    A prompt asks you to accept the license agreement.
  5. To accept the license agreement, press 
    y
    .
    The script extracts the contents of 
    install.zip
    .
  6. Download Oracle client
     
    Due to licensing policy, you need to download additional software from Oracle. Please confirm that your Oracle license permits you to use this software under the terms of the License Agreement.
    1. Go to
      Instant Client Downloads for Linux x86-64 (64-bit)
       at linux-x86-64-downloads.html and download the following files:
      • instantclient-basic-linux.x64-12.2.0.1.0.zip
      • instantclient-sqlplus-linux.x64-12.2.0.1.0.zip
      • instantclient-tools-linux.x64-12.2.0.1.0.zip
    2. Copy these files to 
      ./target/CATDMWebDocker/instantclient
       
    3. Go to Java SE 8 Archive Downloads at https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html and download the file 
      jre-8u172-linux-x64.tar.gz
       
    4. Copy the file to 
      ./target/java
       
  7.  
    Build Docker images
    To build Docker images from Dockerfiles, you can either:
    • (Recommended)
       Customize and execute one of the following Docker-compose Files to Build Images:
      • docker-compose-build.yml
        Use this docker-compose file if you have an Oracle database for Docker to write to.
      • docker-compose-build-ora.yml
        Use this docker-compose file if you wish to create an Oracle container on your Docker network.
        This Oracle database should only be used for demo purposes. Before you execute this docker-compose file, it is necessary to build the official Oracle Docker container. For more information, see TDM Portal Oracle database container.
    • Build each image separately.
      Follow these steps:
      1. Change current directory to location where the contents of 
        TDM_Portal_docker_src-<
        version_number
        >.tgz
         are unpacked.
      2. Run the following commands, in this order:
        1.  
          docker build -t tdm/java:8u172 -f Dockerfile.java .
           
        2.  
          docker build -t tdm/tomcat:8.5.32 -f Dockerfile.tomcat .
           
        3.  
          docker build -t tdm/orientdb:2.2.33 -f Dockerfile.orientdb .
           
        4.  
          docker build -t tdm/tdmweb:<
          version
          > -f Dockerfile.tdmweb .
           
        5.  
          docker build -t tdm/tdmtools:<
          version
          > -f Dockerfile.tdmtools .
           
        6.  
          docker build -t tdm/action-service:<
          version
          > -f Dockerfile.action .
           
        7.  
          docker build -t tdm/messaging:<
          version
          > -f Dockerfile.messaging . 
           
        8.  
          docker build -t tdm/masking:<
          version
          > -f Dockerfile.masking .