Step 4: Configure the startall.sh Script

At startup time, the Docker run command executes the startall.sh script. The startall.sh script is located in the $CFROOT/bin directory.

    Procedure
  1. Configure the startall.sh script based on your requirements.
    The startall.sh script performs the following functions:
    • Catches the "TERM" signal that is thrown when a Docker container stops. This allows you to execute any commands when the Docker container stops.
    • The config.txt is parsed to extract permanent config/audit files and directories that should be saved in persistent storage.

    • Creates the following PSU environment variables: CFROOT, PATH, and LD_LIBRARY_PATH.
    • At startup, verifies that the persistent storage has the necessary files and directories. If not, it creates the necessary files and directories. If the config directory does not exist, it copies the config files to persistent storage.
    • Starts the necessary CyberMgr and CyberResp services. The following CyberResp services can be started:
      1. IPV4, IPV4 with TLS, IPV4 with TLS Tunnel
      2. IPV6, IPV6 with TLS, IPV6 with TLS Tunnel
    • Executes "sleep forever". This is done because the Docker container terminates when PID 1 ends. So, the startall.sh script is kept running forever.

    For information related to these configurations, see TIBCO® Managed File Transfer Platform Server for UNIX User's Guide.