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
-
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 copy the Docker Container configuration files to persistent storage. If you do not want to do this, comment out this step.
- Sets the persistent storage directory names and ensures that the necessary persistent directories have been created.
- Creates the following PSU environment variables: CFROOT, PATH and LD_LIBRARY_PATH.
- At startup, copies the configuration files from persistent storage to Ephemeral storage ($CFROOT/config) so that you can maintain configuration records when the Docker container is restarted. If you are deploying configuration changes contained in the Docker image, then you should comment out this step. When this is done, the configuration changes contained in the Docker image are used.
- Starts the necessary CyberResp services. The following services can be started:
- 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 .
Copyright © Cloud Software Group, Inc. All rights reserved.