Packaging Specifications of Software Packages
JAR and WAR packages can be directly uploaded. Other types of software packages, such as ZIP packages, must meet the following requirements:
The name of a software package must be in the following format: software name+suffix. The suffix must be. tar.gz, .tar, or .zip.
{Software name}.{Suffix}
The suffix must be consistent with the package compression mode. Otherwise, software packages cannot be decompressed.
Directory Structure
For decompressed software packages, ensure that lifecycle command scripts can be normally executed.
The software package directory structure is recommended as follows:
Currently, you are advised not to store decompressed software packages in the top-level directory. Otherwise, when you need to modify lifecycle execution commands, you have to use the top-level directory name to find the corresponding scripts.
|- bin
|- xxx.tar.gz
|- xxx.bin
|- scripts
|- install.sh
|- start.sh
... For directory description, see the following table:
| Directory | Description |
|---|---|
| bin | Stores execution information about software packages, such as executable bin files and dependent compressed packages. |
| scripts | Stores lifecycle scripts. When creating an application, you can specify execution commands based on the location of lifecycle scripts. For example, specify bash scripts/install.sh in the install phase to run the installation script. Lifecycle commands supported by software package applications are as follows:
|
Last Article: Software Package Management
Next Article: Infrastructure Management
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.