5 Startup Script
The startup script is a shell script that runs when the application starts. The shell script starts the containers in the right order and performs a health check to determine if the containers are up. Each container is started one by one to handle dependencies, for example an application that needs a database to be ready. The container startup process is standardized, so the startup script starts containers in order: A, B, C.
In some cases, special commands need to be run. For example, copying a template from the container root drive to a writable tmp mount point. Note that most applications do not need this.
For the startup script, what is needed is:
- If needed (most applications do not need this): special commands that are unique to this application.