CN-121996262-A - Application installation package installation flow control method, storage medium and electronic equipment
Abstract
The application provides an application installation package installation flow control method, a storage medium and electronic equipment. The method comprises the steps of constructing an application installation package, including an info. Json service folder, a conf folder, a gateway folder, cdn folders and a data folder, installing the application installation package, including decompressing the application installation package, reading the conf folder, writing configuration information in the conf folder into configuration service, reading the gateway folder, writing routing information in the gateway folder into gateway service, reading the cdn folder, writing information of the cdn folder into cdn service, reading application basic information in the info. Json service folder, creating account and password information, writing the account and password information into the configuration service, reading corresponding files in the data folder, starting a docker service and running a database file in a docker container. The application can facilitate different developers to construct and install the application installation package, and improves the deployment efficiency and consistency.
Inventors
- WANG XU
Assignees
- 上海云思智慧信息技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260115
Claims (10)
- 1. An application installation package installation flow control method is characterized by comprising the following steps: An application installation package is constructed, wherein the application installation package comprises an info.json service folder for recording basic information of an application, a conf folder for storing configuration information files, a gateway folder for storing routing information, a cdn folder for storing files required to be stored in cdn, and a data folder for storing docker image files and databases; Installing the application installation package, comprising: Decompressing the application installation package; Reading the conf folder, and writing configuration information in the conf folder into the configuration service; Reading the gateway folder, and writing the routing information in the gateway folder into gateway service; Reading the cdn folder, and writing information of the cdn folder into cdn service; Reading application basic information in the info. Json service folder, creating account and password information, and writing the account and password information into a configuration service; And reading the corresponding file in the data folder, starting the docker service and running the database file in the docker container.
- 2. The method for controlling the installation flow of the application installation package according to claim 1, wherein the configuration information of the file to be configured in the conf folder is written to a file yml of the conf folder according to a preset fixed format, and wherein the variable value in the preset fixed format is configured as a placeholder.
- 3. The method according to claim 2, wherein when the application installation package is installed and deployed to a different environment, the reading the conf folder and writing configuration information in the conf folder into the configuration service includes: Reading environment variables of the current environment; Replacing placeholders of configuration files in the conf folder with environment variables of the current environment; and writing the configuration information in the replaced conf folder into the configuration service.
- 4. The method for controlling installation flow of application installation package according to claim 1, wherein in the gateway folder storing the routing information, the configuration information of each route is written into an independent JSON file, and the reading the gateway folder and writing the routing information in the gateway folder into gateway service comprises: traversing all JSON files in the gateway folder, and analyzing the routing configuration information of each file; And calling an automation interface provided by the gateway service, submitting all the analyzed route configuration information to the gateway service, and completing route registration.
- 5. The method according to claim 1, wherein the cdn folders store files to be stored in cdn according to a folder path, and the reading the cdn folders and writing the cdn folder information to cdn services comprises: Reading a folder path corresponding to each file; Creating a folder corresponding to the folder path according to the folder path, and storing the file into the corresponding folder; And generating a file access path for accessing the folder according to the folder path.
- 6. The method for controlling the installation flow of the application installation package according to claim 1, wherein the dock image file comprises a dock image package and an image start file, and the database file comprises a database upgrade script file.
- 7. The method according to claim 6, wherein the reading the corresponding file in the data folder, starting the dock service, and running the database file in the dock container includes: traversing the catalogue of the data folder, searching and obtaining a Docker mirror image package, decompressing the Docker mirror image package, and executing a Docker loading command to load a mirror image; Searching and acquiring the mirror image starting file in the data folder, and starting a Docker container; and reading the database upgrading script file, and running the database upgrading script file in the Docker container.
- 8. A computer-readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the application installation package installation flow control method according to any one of claims 1 to 7.
- 9. A computer program product, characterized in that the computer program product comprises computer program code which, when run on a computer, causes the computer to implement the application installation package installation flow control method according to any one of claims 1 to 7.
- 10. An electronic terminal comprising a memory, a processor and a computer program stored on the memory, wherein the processor executes the computer program to implement the application installation package installation flow control method of any one of claims 1 to 7.
Description
Application installation package installation flow control method, storage medium and electronic equipment Technical Field The application belongs to the technical field of software control, and particularly relates to the technical field of software program installation package installation flow control. Background In the software deployment delivery process, application installation configuration is a core link for guaranteeing online operation of software. At present, most software companies adopt a traditional mode of cooperation of operation and maintenance execution and development, namely, an operation staff dominates installation operation, a developer provides scattered data such as scripts, installation packages, description documents and the like, and the operation staff completes installation configuration and debugging of the application on target equipment according to the data. However, the conventional mode has a plurality of technical defects, so that the installation efficiency is low, the execution consistency is poor, faults frequently occur, and the deployment progress and the operation stability are seriously affected. The specific core problems are as follows: Firstly, installation dependent data are scattered and non-standardized, and unified management and verification are lacked. The data of the installation package, the script and the like provided by the developer are stored in a scattered manner, no standardized delivery suite exists, the data omission and version mismatch are easily caused when operation and maintenance personnel acquire and integrate the data, the script may have hidden dangers such as grammar errors, insufficient environment adaptation and the like, the existing mode has no automatic verification link, the problems are exposed in the installation stage, and the investigation and rework cost is increased. Secondly, the installation accuracy depends on manual cooperation, and the problem of information deviation or operation omission is easy to occur. The installation logic depends on the oral description or the simple document, if the operator understands the deviation and the manual operation errors (such as the error transmission parameters and missing steps), the installation failure or the application abnormality can be caused, and when the installation is abnormal, the operation and the development need to be repeatedly communicated and checked, the information transmission is delayed, the communication cost is high, and the deployment progress is delayed. Thirdly, the developer cannot directly control the whole installation process and is easy to deviate from the design purpose. The installation and execution are dominated by operation and maintenance, a developer cannot monitor the progress and the state in real time, if the operation and maintenance are unauthorized to modify scripts or steps, the application operation environment is inconsistent with the design standard, hidden troubles such as compatibility and performance are caused, and the problems are difficult to locate in subsequent operation and maintenance, so that the long-term stable operation of software is affected. And fourthly, the mode reusability and the expandability are poor, and the method is not suitable for large-scale multi-environment deployment. Along with the development of business, applications need to be deployed in multiple servers and multiple environments (testing, pre-release, production and the like), but most of traditional modes are one-time manual configuration, no standardized reusable flow exists, repeated operation efficiency is low, inconsistent multi-environment configuration is easy to cause, and the requirement of large-scale deployment cannot be met. In summary, the existing application installation mode which depends on scattered data and needs multi-personnel cooperation has the defects of nonstandard data management, low execution accuracy, high communication cost, lack of development control, insufficient expandability and the like, so that the installation efficiency is low, faults frequently occur, deployment is inconsistent, deployment delivery efficiency and quality are restricted, and the requirements of industries on high efficiency, standardization and accuracy of installation links cannot be met. Therefore, there is a need for an application installation mode that is directly controlled by a developer, does not need to communicate across people, and can ensure accurate execution of installation, so as to solve the above-mentioned problems. Disclosure of Invention The application provides an application installation package installation flow control method, a storage medium and electronic equipment, which are used for facilitating different developers to construct and install application installation packages. In a first aspect, an embodiment of the present application provides an application installation package installation flow control method,