Create a traditional application package

About a traditional application package

A traditional application package includes the following parts:

Example application parameter file

{

  "name": "apache-tomcat",                     # Application name

  "type": "software",                           # Application type

  "app_file": "apache-tomcat-9.0.0.M21.tar.gz",     # Application package name

  "endpoint": {                               # API port. The value can be a fixed value or a built-in function. Currently, the “$get_var_from_config()” function is supported, which obtains variables automatically from the customized_config parameter.

    "port": 8080,

    "protocol": "TCP"

  },

  "customized_config": {                        # Customized parameter settings. The parameters can be edited during application deployment and finally deployed to the host as environment variables.

    "tomcat_port": {

      "type": "string",

      "default": "8080",

      "description": "tomcat port"

    },

    "install_dir":{

      "type": "string",

      "default": "/data/tomcat",

      "description": "The directory where tomcat will be installed in"

    }

  }

}