Generating Application Configuration File (YAML)

In TIBCO ActiveMatrix Service Grid 3.x, we have Administrator UI to configure an application before deployment. All configurations are stored in the Administrator database.

ActiveMatrix Service Grid - Container Edition, does not have an Administrator database. All configurations are stored in the YAML configuration file. When building the Docker image of an application, the YAML file is copied to the Docker image. The YAML file has a higher precedence as compared with DAA, which means that the YAML file overrides the configuration given in the DAA. The Application Configuration (YAML) file with DAA and Log4j (Optional) and JVM configuration (Optional) is required to create a Docker image of an application. You can generate this configuration by using one of the following ways:

Application Configurator

The Application Configurator is a web application that you can use to configure an application and generate an application configuration (YAML) file. You must upload application DAA as an input to the Application Configurator. From the Application Configurator UI, you can configure different entities such as Substitution variables, Bindings, Resource Template, JVM Arguments, and Log4j configuration. You can download the generated application configuration (YAML) file with DAA as a .zip file. You can provide this .zip file as an argument when building an application Docker image. For more information about generating the Application Configuration (YAML) file by using the Application Configurator, see ActiveMatrix Service Grid - Container Edition Administration.

DAA2Config Command-Line Tool

DAA2Config is a command line tool, which you can use to generate the application configuration YAML file from DAA. This tool generates the application configuration YAML file with default values. You can edit the file in a text editor or upload the file in the Application Configurator to configure an application. You can use the script provided in the amsgce-runtime-<version>/daautil/bin/DAA2Config.sh file. You must pass the DAA file name with the path when running this script. You can specify the location where to generate the Application Configuration (YAML) file. If you do not specify, it is generated in the same folder where the DAA is located. For more information about generating Application Configuration (YAML) file by using DAA2Config CLI, see ActiveMatrix Service Grid - Container Edition Administration.

Application Extractor

To generate application configuration (YAML) files for applications deployed in your TIBCO ActiveMatrix Service Grid 3.x setup, you can use the Application Extractor. The Application Extractor tool is a TIBCO ActiveMatrix Service Grid 3.x-based SOA application that you can use to extract DAA and deployment configuration of an application in YAML files, so that you can containerize an application. You can download the DAA and configuration YAML file as a .zip file. For single or multiple applications, the format for the downloaded zip file is [Enterprise_Name]_[Environment_Name]_[Timestamp].zip. For more information about how to deploy Application Extractor, see Deploying the Application Extractor.