Building Foresight REST API Docker Images

Perform the following steps to build Foresight REST API components docker images.

  1. Download TIB_fs-restapi_1.0.0.tar.gz file from the TIBCO eDelivery site (https://edelivery.tibco.com/).

    To download the installation package, a user name and password are required. If you do not have a user name and password, contact TIBCO Technical Support.

  2. Extract the file contents to a folder.
  3. Navigate to <folder>/fsrest_<version>/config folder.
  4. Open the configuration.properties file and configure the following properties:
    Configuration Properties
    Property Description
    docker_repository=<docker_registry_ip>: <docker_registry_port> <docker_registry_ip> is the IP address of the machine in which you want to push the docker images.
    <docker_registry_port> is the optional port number of the docker repository at the IP address specified in <docker_registry_ip>.
    Note: If this parameter is not needed, remove the preceding colon (:)
    docker_username= Specify the user name of the docker login.
  5. Save and close the configuration.properties file.
  6. Navigate to <folder>/fsrest_<version>/scripts folder.
  7. Run the following command:

    ./build-images.sh

    If you are running the script for the first time, the following message is displayed: You must accept the License agreement before proceeding. Press ENTER key to read the License. Press q to finish reading.

  8. Press ENTER key to read the license agreement. Press q to finish reading.
  9. Enter y to accept the license agreement.

    The following message is displayed: Do you want to push the TIBCO Foresight REST API docker image to <ip_address>? If not, the TIBCO Foresight REST API docker image will still be built at local.

    (y/n)

  10. Enter y or n as per the following requirements:
    • If you enter y, the Foresight REST API docker image is built and pushed to the Docker repository.
    • If you enter n, the Foresight REST API docker image is built locally.