Construction method, system, device and equipment of software installation package and storage medium

By generating detailed build configuration parameters and automatically building software packages on multiple remote hosts, the problem of low build efficiency and accuracy in multi-CPU architecture and multi-operating system environments is solved, and efficient and accurate software installation package construction is achieved.

CN118708235AActive Publication Date: 2024-09-27XIAN XINTONG SEMICON TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411187410.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-09-27
Estimated Expiration
2044-08-28

AI Technical Summary

Technical Problem

In a multi-CPU architecture and multi-operating system test application verification environment, the efficiency and accuracy of building software installation packages using existing technologies are low, require manual intervention, and cannot achieve parallel construction, resulting in a waste of resources and a high risk of errors.

Method used

Generate detailed build configuration parameters by obtaining basic information about the software to be built, automatically build and install software packages on multiple remote hosts based on these parameters, and utilize multi-process parallel processing and dynamic host classification to achieve multi-operating systems and CPU architectures synchronous build.

Benefits of technology

It improves the efficiency and accuracy of software installation package construction, reduces labor costs, avoids errors caused by manual intervention, and realizes automated synchronous construction tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708235A
    Figure CN118708235A
Patent Text Reader

Abstract

The invention discloses a software installation package construction method, system, device and equipment and a storage medium, and relates to the technical field of software compilation. According to the scheme, detailed construction configuration parameters of different to-be-constructed software installation packages correspond to combinations of all operating systems and CPU architectures; the synchronous construction of the software installation package under the combination of multiple operating systems and a CPU architecture is realized, and the efficiency of constructing the software installation package is improved; besides, the synchronous construction task is automatically executed, manual intervention is not needed, the labor cost is saved, and the efficiency of constructing the software installation package is further improved; and moreover, errors caused by manual participation are avoided, and the accuracy of constructing the software installation package is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software compilation technology, and in particular to a method, system, device, equipment and storage medium for constructing a software installation package. Background Art

[0002] In a test application verification environment for multiple CPU architectures and multiple operating system combinations, since there are quite a lot of combinations of CPU architectures and operating systems, it is often necessary to create software installation packages for the test application for multiple CPU architectures and operating system combinations from one or more branches of a source code repository.

[0003] In the related art, when building a software installation package for a test application for a combination of multiple CPU architectures and operating systems, it is usually necessary to first confirm whether the operating system currently installed on the host is consistent with the target, and then log in to the operating system, clone the code from the source code repository according to the software source code repository and branch where the software installation package is located, and install the necessary build dependency software packages at the same time, and create the necessary source code compression package to perform compilation and construction work. After the compilation is successfully completed, collect the software installation package, build log and other related information located in the source code parent directory.

[0004] However, when the software installation package of the test application is constructed in the above manner, there are problems of low construction efficiency and accuracy. Summary of the invention

[0005] The present application aims to at least solve the technical problems existing in the prior art. To this end, the first aspect of the present application proposes a method for constructing a software installation package, which is applied to a control client. The method includes: Obtaining general build configuration parameters and specific configuration values ​​corresponding to basic information of the software installation package to be built; wherein the basic information includes package name information, version number information, software repository information, software repository branch information, and dependent package list information, and there is a corresponding relationship between the combination of each operating system and CPU architecture and the specific configuration value of the software installation package to be built; Generate detailed build configuration parameters of the software installation package to be built based on the general build configuration parameters and the specific configuration values ​​of the software installation package to be built; Send the build task to the target remote host in the preset host list file based on the detailed build configuration parameters, and obtain the target software compressed package returned by the target remote host; The target software compressed package is copied and decompressed to each remote host corresponding to the combination of the corresponding operating system and CPU architecture, so that each remote host can install the target software compressed package.

[0006] In a possible implementation, the method further includes: Obtain the remote host information corresponding to each remote host in the current host resource pool; wherein the remote host information includes operating system code information, CPU architecture information, kernel version information, boot time information and processor core number information; Based on the host information, each remote host is classified and processed to generate a preset host list file.

[0007] In a possible implementation, each remote host is classified and processed based on the host information to generate a preset host list file, including: Grouping and classifying each remote host based on a combination of operating system code information and CPU architecture information in the host information to obtain multiple categories and multiple remote hosts corresponding to each category; For remote hosts in each category, multiple remote hosts are sorted based on each boot time information and each processor core number information in the host information to obtain sorted remote hosts; For each sorted remote host, construct group parameter information and host-related definitions; wherein the group parameter information is used to mark the suffix of the target compressed package, and the host-related definitions are used to determine the target remote host that receives the build task; A preset host list file is generated based on multiple categories, multiple remote hosts corresponding to each category, group parameter information and host related definitions.

[0008] In a possible implementation manner, before obtaining the remote host information corresponding to each remote host in the current host resource pool, the method further includes: Checking necessary dependent tools of each remote host in the current host resource pool to obtain a first checking result; When the first check result is that the check is passed, the log system of the control client is initialized, and the current public and private key pairs of each remote host are checked through command line parameter parsing to obtain a second check result; When the second check result is that the check fails, a target public-private key pair is generated for each remote host, and multiple processes are used to perform login attempts and credential installation processing on each remote host in the current host resource pool to generate a processing result.

[0009] In a possible implementation, multiple processes are used to perform login probing and credential installation processing on each remote host in the current host resource pool, and a processing result is generated, including: For each remote host in the current host resource pool, a login attempt is performed on the remote host through the first preset login information to obtain a first return value; If the first return value is inconsistent with the first target value, determine whether the first return value is consistent with the second target value to obtain a determination result; If it is determined based on the judgment result that the first return value is consistent with the second target value, then the processing result is determined to be that the remote host is unreachable or the first preset login information is wrong; If it is determined based on the judgment result that the first return value is inconsistent with the second target value, a login attempt is performed on the remote host through the second preset login information to obtain a second return value; If the second return value is consistent with the second target value, it is determined that the processing result is that the remote host is unreachable or the second preset login information is wrong; If the second return value is inconsistent with the second target value, the host public key of the control client is installed on the remote host to obtain a processing result.

[0010] In a possible implementation, the method further includes: Get host-related definitions in the host inventory file; Based on the remark information in the host-related definition, determine the target remote host whose boot time information and processor core number information meet the preset conditions; wherein the remark information includes the boot time information and processor core number information of the target remote host.

[0011] The second aspect of the present application provides a system for constructing a software installation package, the system comprising a control client and a plurality of remote hosts, the control client communicating with each remote host, A control client is used to obtain general build configuration parameters and specific configuration values ​​corresponding to basic information of a software installation package to be built; wherein the basic information includes package name information, version number information, software warehouse information, software warehouse branch information and dependent package list information, and there is a corresponding relationship between the combination of each operating system and CPU architecture and the specific configuration value of the software installation package to be built; based on the general build configuration parameters and the specific configuration value of the software installation package to be built, detailed build configuration parameters of the software installation package to be built are generated; based on the detailed build configuration parameters, a build task is issued to a target remote host in a preset host list file, and a target software compressed package returned by the target remote host is obtained; the target software compressed package is copied and decompressed to each remote host corresponding to the corresponding combination of the operating system and CPU architecture, so that each remote host can install the target software compressed package; The remote host is used to install the target software compressed package.

[0012] The third aspect of the present application provides a device for constructing a software installation package, the device comprising: The first acquisition module is used to obtain the general construction configuration parameters and specific configuration values ​​corresponding to the basic information of the software installation package to be built; wherein the basic information includes package name information, version number information, software warehouse information, software warehouse branch information and dependent package list information, and there is a corresponding relationship between the combination of each operating system and CPU architecture and the specific configuration value of the software installation package to be built; A generation module, used to generate detailed build configuration parameters of the software installation package to be built based on the general build configuration parameters and the specific configuration values ​​of the software installation package to be built; The second acquisition module is used to send the build task to the target remote host in the preset host list file based on the detailed build configuration parameters, and obtain the target software compression package returned by the target remote host; The installation module is used to copy and decompress the target software compressed package to each remote host corresponding to the combination of the corresponding operating system and CPU architecture, so that each remote host can install the target software compressed package.

[0013] In a possible implementation manner, the software installation package construction device is further used to: Obtain the remote host information corresponding to each remote host in the current host resource pool; wherein the remote host information includes operating system code information, CPU architecture information, kernel version information, boot time information and processor core number information; Based on the host information, each remote host is classified and processed to generate a preset host list file.

[0014] In a possible implementation manner, the software installation package construction device is further used to: Grouping and classifying each remote host based on a combination of operating system code information and CPU architecture information in the host information to obtain multiple categories and multiple remote hosts corresponding to each category; For remote hosts in each category, multiple remote hosts are sorted based on each boot time information and each processor core number information in the host information to obtain sorted remote hosts; For each sorted remote host, construct group parameter information and host-related definitions; wherein the group parameter information is used to mark the suffix of the target compressed package, and the host-related definitions are used to determine the target remote host that receives the build task; A preset host list file is generated based on multiple categories, multiple remote hosts corresponding to each category, group parameter information and host related definitions.

[0015] In a possible implementation manner, the software installation package construction device is further used to: Checking necessary dependent tools of each remote host in the current host resource pool to obtain a first checking result; When the first check result is that the check is passed, the log system of the control client is initialized, and the current public and private key pairs of each remote host are checked through command line parameter parsing to obtain a second check result; When the second check result is that the check fails, a target public-private key pair is generated for each remote host, and multiple processes are used to perform login attempts and credential installation processing on each remote host in the current host resource pool to generate a processing result.

[0016] In a possible implementation manner, the software installation package construction device is further used to: For each remote host in the current host resource pool, a login attempt is performed on the remote host through the first preset login information to obtain a first return value; If the first return value is inconsistent with the first target value, determine whether the first return value is consistent with the second target value to obtain a determination result; If it is determined based on the judgment result that the first return value is consistent with the second target value, then the processing result is determined to be that the remote host is unreachable or the first preset login information is wrong; If it is determined based on the judgment result that the first return value is inconsistent with the second target value, a login attempt is performed on the remote host through the second preset login information to obtain a second return value; If the second return value is consistent with the second target value, it is determined that the processing result is that the remote host is unreachable or the second preset login information is wrong; If the second return value is inconsistent with the second target value, the host public key of the control client is installed on the remote host to obtain a processing result.

[0017] In a possible implementation manner, the software installation package construction device is further used to: Get host-related definitions in the host inventory file; Based on the remark information in the host-related definition, determine the target remote host whose boot time information and processor core number information meet the preset conditions; wherein the remark information includes the boot time information and processor core number information of the target remote host.

[0018] In a fourth aspect of the present application, an electronic device is proposed, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for constructing a software installation package as described in the first aspect.

[0019] In a fifth aspect, the present application proposes a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the method for constructing a software installation package as described in the first aspect.

[0020] The embodiments of the present application have the following beneficial effects: The method for constructing a software installation package provided in an embodiment of the present application includes: obtaining general construction configuration parameters and specific configuration values ​​corresponding to the basic information of the software installation package to be constructed, generating detailed construction configuration parameters of the software installation package to be constructed based on the general construction configuration parameters and the specific configuration values ​​of the software installation package to be constructed, issuing a construction task to the target remote host in the preset host list file based on the detailed construction configuration parameters, and obtaining the target software compressed package returned by the target remote host, copying and decompressing the target software compressed package to each remote host corresponding to the combination of the corresponding operating system and CPU architecture, so that each remote host can install the target software compressed package. This scheme realizes the synchronous construction of software installation packages under the combination of multiple operating systems and CPU architectures through the detailed construction configuration parameters of different software installation packages to be constructed corresponding to the combination of each operating system and CPU architecture, thereby improving the efficiency of constructing software installation packages; in addition, the synchronous construction task is automatically executed, does not require manual intervention, saves labor costs, and further improves the efficiency of constructing software installation packages; and avoids errors caused by manual participation, thereby improving the accuracy of constructing software installation packages. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A block diagram of a computer device provided in an embodiment of the present application; Figure 2 A flowchart of a method for constructing a software installation package provided in an embodiment of the present application; Figure 3 A flowchart of the steps for processing each remote host in the current host resource pool provided in an embodiment of the present application; Figure 4 A flowchart of the steps for generating a preset host list file provided in an embodiment of the present application; Figure 5 Another flowchart of steps for generating a preset host list file provided in an embodiment of the present application; Figure 6 A flowchart of the steps for determining a target remote host provided in an embodiment of the present application; Figure 7 A structural block diagram of a device for constructing a software installation package provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] When building a software installation package for a test application for a combination of multiple CPU architectures and operating systems, it is usually necessary to first confirm whether the operating system currently installed on the host is consistent with the target, then log in to the operating system, clone the code from the source code repository according to the software source code repository and branch where the software installation package is located, install the necessary build dependency software packages, create the necessary source code compression package, and then compile and build. After the compilation is successfully completed, collect the software installation package, build log and other related information located in the source code parent directory.

[0024] However, the above-mentioned test application software installation package construction scheme has the following problems: 1. Assuming that there is a host in the existing network environment that is consistent with the target CPU architecture and operating system combination, when starting to build the software installation package, you need to first locate whether the host's current operating system and CPU architecture are consistent with the expected target, and then log in to the remote host to compile and make the software installation package. This often means flipping through several pages in the host resource pool list maintained by development and operation to find a host record that meets the target, which is a lot of work.

[0025] 2. Human intervention is required in the entire construction process. After one operation, you may have to wait for a while before proceeding to the next operation, which relies heavily on human resources. In addition, due to the need for human intervention in the construction process, it is often only possible to complete the various steps of this construction in series under one CPU architecture and operating system combination, and then go to the next CPU architecture and operating system combination to complete the various steps of software package production. Assuming that the time for a single software installation package is 30 minutes, if you need to prepare 10 software installation packages for CPU architecture and operating system combinations from source code for a test application, it will take at least 5 hours.

[0026] 3. Since it is necessary to manually query the source code URL address of the software installation package of each test application and the correct branch used under different CPU architecture and operating system combinations, it means that it is necessary to manually maintain the source code URL and source code branch combination corresponding to the target CPU architecture and operating system combination from the source code. This will be a very large task and it will be easy to introduce errors during the query process.

[0027] 4. Because the dependencies of the same test application may vary under different CPU architectures and operating system combinations, it is often impossible to completely and correctly install all corresponding build dependency packages at once before building.

[0028] 5. Also because of reliance on manual intervention, it is impossible to automate parallel build tasks, and the hosts in the host resource pool cannot be efficiently utilized.

[0029] In view of this, the present application proposes a method for constructing a software installation package, which realizes the synchronous construction of software installation packages under the combination of multiple operating systems and CPU architectures through detailed construction configuration parameters of different software installation packages to be constructed corresponding to the combination of each operating system and CPU architecture, thereby improving the efficiency of constructing software installation packages; in addition, the synchronous construction task is automatically executed and does not require human intervention, which saves labor costs and further improves the efficiency of constructing software installation packages; and avoids errors caused by human participation, thereby improving the accuracy of constructing software installation packages.

[0030] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "multiple" means two or more. In addition, the use of "based on" or "according to" means openness and inclusiveness, because the process, steps, calculations or other actions "based on" or "according to" one or more of the conditions or values ​​may be based on additional conditions or values ​​beyond the described values ​​in practice.

[0031] The method for constructing a software installation package provided in the present application can be applied to a computer device (electronic device), which can be a server or a terminal. The server can be a single server or a server cluster composed of multiple servers. The embodiments of the present application do not specifically limit this. The terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices.

[0032] Take the computer device as a server as an example. Figure 1 A block diagram of a server is shown, such as Figure 1 As shown, the server may include a processor and a memory connected via a system bus. The processor of the server is used to provide computing and control capabilities. The memory of the server includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a method for constructing a software installation package is implemented.

[0033] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. Optionally, the server may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0034] It should be noted that the execution subject of the embodiments of the present application can be a computer device or a device for constructing a software installation package. The following method embodiments will be described using a computer device as the execution subject.

[0035] Figure 2 A flowchart of a method for constructing a software installation package provided in an embodiment of the present application. Figure 2 As shown, the method comprises the following steps: Step 202: Obtain common construction configuration parameters and specific configuration values ​​corresponding to basic information of the software installation package to be constructed.

[0036] Among them, the basic information may include package name information, version number information, software repository information, software repository branch information and dependent package list information. There is a corresponding relationship between the combination of each operating system and CPU architecture and the specific configuration value of the software installation package to be built.

[0037] In some optional embodiments, when constructing a software installation package, Ansible can be selected as a configuration and automation framework. Ansible has the advantages of no need to install a client, immediate task push and execution, fast response speed, and rich community support information. In particular, the multi-level coverage of variables supported by it facilitates hierarchical settings of parameters for different groups, so as to achieve the effect of sub-group variables covering parent-group variables, thereby achieving the effect of unified setting of general construction configuration parameters for the software installation package to be constructed, and then selecting differentiated specific configuration values ​​for specific CPU architecture and operating system combinations.

[0038] Before starting to distribute the synchronous build task of the software installation package, it is necessary to perform dynamic detection, ssh login credentials installation and information collection according to the hosts in the current host resource pool. Then, the hosts are classified level by level according to the collected information to generate a preset host list file for ansible-playbook to issue the build task. Among them, ssh login credentials are authentication information used for identity authentication through ssh, usually including username and password or ssh private key. ansible-playbook is the configuration, deployment and orchestration language of ansible.

[0039] Alternatively, if Figure 3 As shown, Figure 3 A flowchart of the steps for processing each remote host in the current host resource pool provided in an embodiment of the present application includes: Step 302: Check necessary dependent tools of each remote host in the current host resource pool to obtain a first check result.

[0040] Step 304: When the first check result is passed, the log system of the control client is initialized, and the current public and private key pairs of each remote host are checked through command line parameter parsing to obtain a second check result.

[0041] Step 306: When the second check result is that the check fails, a target public-private key pair is generated for each remote host, and a multi-process is used to perform login probing and credential installation processing on each remote host in the current host resource pool to generate a processing result.

[0042] Among them, the necessary dependent tools for each remote host may include sshpass, ssh, ssh-keygen, etc. After checking whether these necessary dependent tools are installed, the first check result is obtained. sshpass is a command line tool for non-interactive ssh login, which allows it to be used in scripts without manually entering a password. SSH is a protocol for secure communications over an insecure network and is the main way for Ansible to connect and manage remote hosts. Ssh-keygen is a tool for generating, managing, and converting ssh keys. It can generate ssh public and private key pairs. SSH public and private key pairs are an authentication mechanism that uses public key encryption and private key decryption to achieve password-free secure login. ‌‌‌

[0043] When the first check result is passed, that is, the necessary dependent tools have been installed, the log system of the control client needs to be initialized. Then, the current public and private key pairs of each remote host are checked through command line parameter parsing, that is, whether the corresponding ssh public and private key pairs have been created, thereby obtaining the second check result.

[0044] If the second check result is that the check fails, that is, the corresponding ssh public and private key pair has not been made, it is necessary to use ssh-keygen to make a target public and private key pair, thereby generating a target public and private key pair for each remote host. Then, multiple processes are used to perform login attempts and credential installation processing on each remote host in the current host resource pool to generate processing results.

[0045] Optionally, in order to speed up the detection process of remote hosts in the current host resource pool, the repeated login detection, credential installation, and information collection tasks can be distributed to multiple cores of the processor that controls the client for parallel execution through the ProcessPoolExecutor process pool in Python, so as to achieve login probing and credential installation processing for each remote host in the current host resource pool through multiple processes. It was measured that when scanning a private network with a maximum limit of 254 remote hosts of Class C addresses on a 48-core host, it only takes about 18 seconds to complete the host inspection, credential installation, and information collection work in the entire network topology.

[0046] In some optional embodiments, when using multiple processes to perform login probing and credential installation processing on each remote host in the current host resource pool and generate processing results, you can first perform login probing on the remote host through the first preset login information for each remote host in the current host resource pool to obtain a first return value; if the first return value is inconsistent with the first target value, then determine whether the first return value is consistent with the second target value to obtain a judgment result; if it is determined based on the judgment result that the first return value is consistent with the second target value, then determine that the processing result is that the remote host is unreachable or the first preset login information is wrong; if it is determined based on the judgment result that the first return value is inconsistent with the second target value, then perform login probing on the remote host through the second preset login information to obtain a second return value; if the second return value is consistent with the second target value, then determine that the processing result is that the remote host is unreachable or the second preset login information is wrong; if the second return value is inconsistent with the second target value, then install the host public key of the control client on the remote host to obtain the processing result.

[0047] The first preset login information is a strict login check command, that is, -o StrictHostKeyChecking=yes, that is, a login attempt is performed on the remote host in a non-interactive manner under strict login check to obtain a first return value. The first target value can be 0. If the first return value is 0, it indicates that the remote host can log in normally.

[0048] If the first return value is inconsistent with the first target value, it is determined whether the first return value is consistent with the second target value to obtain a determination result. The second target value may be 5. If the first return value is 5, it can be determined based on the determination result that the first return value is consistent with the second target value, and the processing result is determined to be that the remote host is unreachable or the first preset login information is wrong.

[0049] If the second return value is other values, it can be determined based on the judgment result that the first return value is inconsistent with the second target value, indicating that the information of the remote host recorded on the control client, that is, the host key Host Key is outdated, and it may be because the remote host has reinstalled a new operating system, so it is necessary to log in to the remote host through the second preset login information to obtain the second return value. Among them, the second preset login information can be -o StrictHostKeyChecking=no, that is, the strict verification of the remote host is skipped through the second preset login information.

[0050] If the login to the remote host is verified with StrictHostKeyChecking=no and the return value is still 5, that is, the second return value is consistent with the second target value, then the processing result is determined to be that the remote host is unreachable or the second preset login information is incorrect. At this time, the remote host can be skipped and the next remote host can be tried.

[0051] If the return value obtained by verifying the login to the remote host in the StrictHostKeyChecking=no mode is not 5, that is, the second return value is inconsistent with the second target value, it indicates that the remote host can verify the login in the -o StrictHostKeyChecking=no mode. At this time, it is necessary to clear the host key information recorded in the remote host and install the host public key of the control client to the remote host to achieve password-free login to the remote host, and in the subsequent generation of the preset host list file, the setting of sshpass in ansible can be skipped.

[0052] It should be noted that in the implementation environment of the software package synchronous construction method, although each remote host may be in a specific operating system in the operating system list corresponding to the CPU architecture of the host at different times, all operating systems have created a unified default login user and use the same default login password. This is also a necessary prerequisite for the method to be able to successfully perform dynamic detection, ssh login credentials installation and information collection in the intranet environment where the host resource pool is located.

[0053] Next, the general build configuration parameters and specific configuration values ​​corresponding to the basic information of the software installation package to be built can be obtained. The basic information may include package name information, version number information, software repository information, software repository branch information, and dependency package list information. The package name information may be defined by the parameter pkg_name, the version number information may be defined by the parameter pkg_ver, the software repository information may be defined by the parameter repo_url, the software repository branch information may be defined by the parameter repo_branch, and the dependency package list information may be defined by the parameter build_depends.

[0054] The software installation packages to be built for different test cases differ from each other only in the above basic information, or the basic information of the software installation packages to be built for the same test case may differ in different combinations of CPU architecture and operating system. Therefore, for different software installation packages to be built, the variable file can be introduced by the include_vars instruction of Ansible, and various basic information of the software installation package to be built can be dynamically loaded from the yaml file corresponding to the software installation package to be built in the playbook / var / debian / directory. Among them, yaml is a concise and easy-to-read data serialization format.

[0055] Next, these basic information can be used to select the common build configuration parameters of each parameter through the lookup method provided by Ansible, as well as the specific configuration values ​​in the yaml file of each operating system and CPU architecture combination of the sub-level corresponding to the remote host where the build task is located. Among them, the lookup method is a method for obtaining variables.

[0056] Step 204: Generate detailed construction configuration parameters of the software installation package to be constructed based on the general construction configuration parameters and the specific configuration values ​​of the software installation package to be constructed.

[0057] After obtaining the general build configuration parameters and specific configuration values ​​corresponding to the basic information of the software installation package to be built, the detailed build configuration parameters can be derived based on the general build configuration parameters and the specific configuration values ​​of the software installation package to be built.

[0058] In some optional embodiments, if the two software installation packages to be built are clpeak and glmark2, the corresponding glmark2.yaml files and clpeak.yaml files only define the variable names of the necessary construction elements of the five software packages, that is, the above-mentioned basic information, without specifically defining their variable values. The final variable values ​​are defined in the all.yaml file at the root level. The reason why the variable values ​​are not directly defined here, but the specific variable values ​​are derived through the intermediate variable names, is mainly designed for the ansible variable coverage feature. That is, all.yaml will store general construction configuration parameters, and according to the particularity of different automated construction tasks, when the corresponding construction tasks are sent to the target remote host, the configuration parameters of the specific automated construction tasks are dynamically derived, that is, the above-mentioned detailed construction configuration parameters are obtained.

[0059] In some other optional embodiments, exemplarily, for the construction task of the software installation package clpeak to be built, for various combinations of operating systems and CPU architectures, the version number information defined by clpeak_ver, the software repository branch information defined by clpeak_branch, and the dependency package list information defined by clpeak_build_depends in the all.yaml file can be used.

[0060] For example, for the software installation package glmark2 to be built, due to the different versions and capabilities of wayland-protocal, libdrm of different operating systems, it is necessary to maintain different software warehouse branches to see whether different libdrm and wayland-protocal are enabled to participate in the construction task in the configuration phase of glmark2 under the operating system, so different software warehouse branch information of glmark2_branch is defined on the files of different operating system and CPU architecture combinations. Among them, libdrm is a dynamic link library of the application layer, which encapsulates the underlying interface and provides a general API interface to the upper layer. Wayland-protocal is a protocol that defines how to perform window management. There are many applications on the operating system. After starting the application, a window of the application will pop up. When creating the window, a specified interface must be called to create it. This interface is equivalent to an interface provided by the window management protocol.

[0061] Step 206: Send the build task to the target remote host in the preset host list file based on the detailed build configuration parameters, and obtain the target software compression package returned by the target remote host.

[0062] Among them, in some optional embodiments, such as Figure 4 As shown, Figure 4 A flowchart of the steps for generating a preset host list file provided in an embodiment of the present application includes: Step 402: Obtain remote host information corresponding to each remote host in the current host resource pool.

[0063] Step 404: Classify and classify each remote host based on the host information to generate a preset host list file.

[0064] The remote host information may include operating system code information, CPU architecture information, kernel version information, boot time information, and processor core number information. Optionally, the operating system code information can be obtained through codename in the result of lsb_release -a, the CPU architecture information can be obtained through `uname -m`, the kernel version information can be obtained through `uname -r`, the boot time information can be obtained through `cat / proc / uptime`, and the processor core number information can be obtained through `nproc`.

[0065] Alternatively, if Figure 5 As shown, Figure 5 Another step flow chart for generating a preset host list file provided in an embodiment of the present application includes: Step 502: group and classify the remote hosts based on the combination of the operating system code information and the CPU architecture information in the host information to obtain multiple categories and multiple remote hosts corresponding to each category.

[0066] Step 504: for the remote hosts in each category, sort the multiple remote hosts based on the boot time information and the processor core number information in the host information to obtain sorted remote hosts.

[0067] Step 506: For each sorted remote host, construct group parameter information and host-related definitions.

[0068] Step 508: Generate a preset host list file based on the multiple categories, the multiple remote hosts corresponding to each category, the group parameter information and the host related definitions.

[0069] Among them, one operating system may correspond to multiple CPU architectures, so the remote hosts can be grouped and classified based on the combination of the operating system code information and the CPU architecture information in the host information, and multiple categories and multiple remote hosts corresponding to each category are obtained. The remote hosts after grouping and classification have a hierarchical relationship.

[0070] Next, for the remote hosts in each category, multiple remote hosts can be sorted based on the boot time information and processor core number information in the host information to obtain sorted remote hosts. Optionally, the boot time information can be sorted in descending order to ensure that remote hosts with longer boot time are ranked first, and the processor core number information can be sorted in descending order to ensure that remote hosts with more processor cores are ranked first.

[0071] Then, for each sorted remote host, group parameter information and host-related definitions are constructed. The group parameter information is used to mark the suffix of the target compressed package, and the host-related definition is used to determine the target remote host that receives the construction task. Finally, a preset host list file can be generated based on multiple categories, multiple remote hosts corresponding to each category, group parameter information and host-related definitions.

[0072] It should be noted that the remote hosts that cannot be grouped and classified according to the combination of the operating system code information and the CPU architecture information can also be output together, which is usually caused by the fact that these remote hosts cannot obtain the corresponding operating system code information due to the lack of relevant commands. Therefore, these remote hosts can be grouped and classified at a higher level according to the operating system code information and the CPU architecture information.

[0073] Optionally, the preset host list file can be edited using the ini format so that ansible-playbook can recognize it. The content to the right of the '#' in the preset host list file is a comment and will not be read by the program. For the line used to define a category of grouping, the non-comment content after the line is used to define the information of each remote host under the group. Exemplarily, the information of each remote host may include the host name, IP address, and login user of the remote host when performing ssh operations.

[0074] The generated preset host list file determines how to specify the remote host or remote host group used to execute the build task or installation task when ansible-playbook issues the build task or installation task. Figure 6 As shown, Figure 6 A flowchart of steps for determining a target remote host provided in an embodiment of the present application includes: Step 602: Obtain host-related definitions in the host inventory file.

[0075] Step 604: Based on the remark information in the host-related definition, determine the target remote host whose boot time information and processor core number information meet the preset conditions.

[0076] The remark information may include boot time information and processor core number information of the target remote host. The preset condition may be the first remote host with the longest boot time and the largest number of processor cores under a combination of an operating system and a CPU architecture.

[0077] Therefore, it can be determined that under a combination of an operating system and a CPU architecture, the first remote host with the longest boot time and the largest number of processor cores is the target remote host, and the target remote host is used as a representative to issue the build task.

[0078] Step 208: copy and decompress the target software compressed package to each remote host corresponding to the combination of the corresponding operating system and CPU architecture, so that each remote host can install the target software compressed package.

[0079] Among them, the target software compressed package built on the target remote host and retrieved to the control client can be copied and decompressed again in an automated manner to each remote host or remote host group corresponding to the corresponding operating system and CPU architecture combination and installed, so as to facilitate the deployment of the build results to other remote hosts in a synchronous manner.

[0080] In the embodiment of the present application, the method includes: obtaining general construction configuration parameters and specific configuration values ​​corresponding to the basic information of the software installation package to be constructed, generating detailed construction configuration parameters of the software installation package to be constructed based on the general construction configuration parameters and the specific configuration values ​​of the software installation package to be constructed, issuing a construction task to the target remote host in the preset host list file based on the detailed construction configuration parameters, and obtaining the target software compressed package returned by the target remote host, copying and decompressing the target software compressed package to each remote host corresponding to the combination of the corresponding operating system and CPU architecture, so that each remote host installs the target software compressed package. This scheme realizes the synchronous construction of software installation packages under the combination of multiple operating systems and CPU architectures through the detailed construction configuration parameters of different software installation packages to be constructed corresponding to the combination of each operating system and CPU architecture, thereby improving the efficiency of constructing software installation packages; in addition, the synchronous construction task is automatically executed, does not require manual intervention, saves labor costs, and further improves the efficiency of constructing software installation packages; and avoids errors caused by manual participation, thereby improving the accuracy of constructing software installation packages.

[0081] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0082] The embodiment of the present application also provides a system for constructing a software installation package, characterized in that the system includes a control client and multiple remote hosts, and the control client is connected to each remote host for communication. A control client is used to obtain general build configuration parameters and specific configuration values ​​corresponding to basic information of a software installation package to be built; wherein the basic information includes package name information, version number information, software repository information, software repository branch information and dependency package list information, and there is a corresponding relationship between the combination of each operating system and CPU architecture and the specific configuration value of the software installation package to be built; based on the general build configuration parameters and the specific configuration value of the software installation package to be built, detailed build configuration parameters of the software installation package to be built are generated; based on the detailed build configuration parameters, a build task is issued to a target remote host in a preset host list file, and a target software compressed package returned by the target remote host is obtained; the target software compressed package is copied and decompressed to each remote host corresponding to the corresponding combination of the operating system and CPU architecture, so that each remote host can install the target software compressed package.

[0083] The remote host is used to install the target software compressed package.

[0084] The implementation principle and technical effects of the system for constructing a software installation package provided in the embodiment of the present application are similar to those of the above-mentioned method embodiment and will not be repeated here.

[0085] Figure 7 A structural block diagram of a device for constructing a software installation package provided in an embodiment of the present application.

[0086] like Figure 7 As shown, the software installation package construction device 700 includes: The first acquisition module 702 is used to obtain general construction configuration parameters and specific configuration values ​​corresponding to the basic information of the software installation package to be built; wherein the basic information includes package name information, version number information, software repository information, software repository branch information and dependent package list information, and there is a corresponding relationship between the combination of each operating system and CPU architecture and the specific configuration value of the software installation package to be built.

[0087] The generation module 704 is used to generate detailed construction configuration parameters of the software installation package to be constructed based on the general construction configuration parameters and the specific configuration values ​​of the software installation package to be constructed.

[0088] The second acquisition module 706 is used to send a build task to a target remote host in a preset host list file based on the detailed build configuration parameters, and acquire a target software compression package returned by the target remote host.

[0089] The installation module 708 is used to copy and decompress the target software compressed package to each remote host corresponding to the combination of the corresponding operating system and CPU architecture, so that each remote host can install the target software compressed package.

[0090] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here. Each module in the construction device of the above software installation package can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations of the above modules.

[0091] In one embodiment of the present application, a computer device is provided, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: Obtaining general build configuration parameters and specific configuration values ​​corresponding to basic information of the software installation package to be built; wherein the basic information includes package name information, version number information, software repository information, software repository branch information, and dependent package list information, and there is a corresponding relationship between the combination of each operating system and CPU architecture and the specific configuration value of the software installation package to be built; Generate detailed build configuration parameters of the software installation package to be built based on the general build configuration parameters and the specific configuration values ​​of the software installation package to be built; Send the build task to the target remote host in the preset host list file based on the detailed build configuration parameters, and obtain the target software compressed package returned by the target remote host; The target software compressed package is copied and decompressed to each remote host corresponding to the combination of the corresponding operating system and CPU architecture, so that each remote host can install the target software compressed package.

[0092] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps: Obtain the remote host information corresponding to each remote host in the current host resource pool; wherein the remote host information includes operating system code information, CPU architecture information, kernel version information, boot time information and processor core number information; Based on the host information, each remote host is classified and processed to generate a preset host list file.

[0093] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps: Grouping and classifying each remote host based on a combination of operating system code information and CPU architecture information in the host information to obtain multiple categories and multiple remote hosts corresponding to each category; For remote hosts in each category, multiple remote hosts are sorted based on each boot time information and each processor core number information in the host information to obtain sorted remote hosts; For each sorted remote host, construct group parameter information and host-related definitions; wherein the group parameter information is used to mark the suffix of the target compressed package, and the host-related definitions are used to determine the target remote host that receives the build task; A preset host list file is generated based on multiple categories, multiple remote hosts corresponding to each category, group parameter information and host related definitions.

[0094] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps: Checking necessary dependent tools of each remote host in the current host resource pool to obtain a first checking result; When the first check result is that the check is passed, the log system of the control client is initialized, and the current public and private key pairs of each remote host are checked through command line parameter parsing to obtain a second check result; When the second check result is that the check fails, a target public-private key pair is generated for each remote host, and multiple processes are used to perform login attempts and credential installation processing on each remote host in the current host resource pool to generate a processing result.

[0095] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps: For each remote host in the current host resource pool, a login attempt is performed on the remote host through the first preset login information to obtain a first return value; If the first return value is inconsistent with the first target value, determine whether the first return value is consistent with the second target value to obtain a determination result; If it is determined based on the judgment result that the first return value is consistent with the second target value, then the processing result is determined to be that the remote host is unreachable or the first preset login information is wrong; If it is determined based on the judgment result that the first return value is inconsistent with the second target value, a login attempt is performed on the remote host through the second preset login information to obtain a second return value; If the second return value is consistent with the second target value, it is determined that the processing result is that the remote host is unreachable or the second preset login information is wrong; If the second return value is inconsistent with the second target value, the host public key of the control client is installed on the remote host to obtain a processing result.

[0096] In one embodiment of the present application, when the processor executes the computer program, the processor further implements the following steps: Get host-related definitions in the host inventory file; Based on the remark information in the host-related definition, determine the target remote host whose boot time information and processor core number information meet the preset conditions; wherein the remark information includes the boot time information and processor core number information of the target remote host.

[0097] The computer device provided in the embodiment of the present application has similar implementation principles and technical effects to those of the above-mentioned method embodiment, and will not be described in detail here.

[0098] In one embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: Obtaining general build configuration parameters and specific configuration values ​​corresponding to basic information of the software installation package to be built; wherein the basic information includes package name information, version number information, software repository information, software repository branch information, and dependent package list information, and there is a corresponding relationship between the combination of each operating system and CPU architecture and the specific configuration value of the software installation package to be built; Generate detailed build configuration parameters of the software installation package to be built based on the general build configuration parameters and the specific configuration values ​​of the software installation package to be built; Send the build task to the target remote host in the preset host list file based on the detailed build configuration parameters, and obtain the target software compressed package returned by the target remote host; The target software compressed package is copied and decompressed to each remote host corresponding to the combination of the corresponding operating system and CPU architecture, so that each remote host can install the target software compressed package.

[0099] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are further implemented: Obtain the remote host information corresponding to each remote host in the current host resource pool; wherein the remote host information includes operating system code information, CPU architecture information, kernel version information, boot time information and processor core number information; Based on the host information, each remote host is classified and processed to generate a preset host list file.

[0100] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are further implemented: Grouping and classifying each remote host based on a combination of operating system code information and CPU architecture information in the host information to obtain multiple categories and multiple remote hosts corresponding to each category; For remote hosts in each category, multiple remote hosts are sorted based on each boot time information and each processor core number information in the host information to obtain sorted remote hosts; For each sorted remote host, construct group parameter information and host-related definitions; wherein the group parameter information is used to mark the suffix of the target compressed package, and the host-related definitions are used to determine the target remote host that receives the build task; A preset host list file is generated based on multiple categories, multiple remote hosts corresponding to each category, group parameter information and host related definitions.

[0101] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are further implemented: Checking necessary dependent tools of each remote host in the current host resource pool to obtain a first checking result; When the first check result is that the check is passed, the log system of the control client is initialized, and the current public and private key pairs of each remote host are checked through command line parameter parsing to obtain a second check result; When the second check result is that the check fails, a target public-private key pair is generated for each remote host, and multiple processes are used to perform login attempts and credential installation processing on each remote host in the current host resource pool to generate a processing result.

[0102] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are further implemented: For each remote host in the current host resource pool, a login attempt is performed on the remote host through the first preset login information to obtain a first return value; If the first return value is inconsistent with the first target value, determine whether the first return value is consistent with the second target value to obtain a determination result; If it is determined based on the judgment result that the first return value is consistent with the second target value, then the processing result is determined to be that the remote host is unreachable or the first preset login information is wrong; If it is determined based on the judgment result that the first return value is inconsistent with the second target value, a login attempt is performed on the remote host through the second preset login information to obtain a second return value; If the second return value is consistent with the second target value, it is determined that the processing result is that the remote host is unreachable or the second preset login information is wrong; If the second return value is inconsistent with the second target value, the host public key of the control client is installed on the remote host to obtain a processing result.

[0103] In one embodiment of the present application, when the computer program is executed by a processor, the following steps are further implemented: Get host-related definitions in the host inventory file; Based on the remark information in the host-related definition, determine the target remote host whose boot time information and processor core number information meet the preset conditions; wherein the remark information includes the boot time information and processor core number information of the target remote host.

[0104] The computer-readable storage medium provided in this embodiment has similar implementation principles and technical effects to those of the above method embodiments, and will not be described in detail here.

[0105] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0106] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0107] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for constructing a software installation package, applied to a control client, characterized in that: The method comprises: Obtaining general construction configuration parameters and specific configuration values ​​corresponding to basic information of the software installation package to be constructed; wherein the basic information includes package name information, version number information, software warehouse information, software warehouse branch information and dependent package list information, and there is a corresponding relationship between the combination of each operating system and CPU architecture and the specific configuration value of the software installation package to be constructed; Generate detailed construction configuration parameters of the software installation package to be constructed based on the general construction configuration parameters and the specific configuration values ​​of the software installation package to be constructed; Sending a build task to a target remote host in a preset host list file based on the detailed build configuration parameters, and obtaining a target software compression package returned by the target remote host; The target software compressed package is copied and decompressed to each remote host corresponding to the combination of the corresponding operating system and CPU architecture, so that each remote host can install the target software compressed package.

2. The method according to claim 1, characterized in that The method further comprises: Obtaining remote host information corresponding to each remote host in the current host resource pool; wherein the remote host information includes operating system code information, CPU architecture information, kernel version information, boot time information and processor core number information; The remote hosts are classified and categorized based on the host information to generate the preset host list file.

3. The method according to claim 2, characterized in that The step of performing classification processing on each remote host based on the host information to generate the preset host list file includes: Grouping and classifying each of the remote hosts based on a combination of the operating system code information and the CPU architecture information in the host information to obtain a plurality of categories and a plurality of remote hosts corresponding to each category; For remote hosts in each category, sorting multiple remote hosts based on the boot time information and the processor core number information in the host information to obtain sorted remote hosts; For each of the sorted remote hosts, construct group parameter information and host-related definitions; wherein the group parameter information is used to mark the suffix of the target compressed package, and the host-related definitions are used to determine the target remote host that receives the construction task; The preset host list file is generated based on the multiple categories, the multiple remote hosts corresponding to the categories, the group parameter information and the host-related definitions.

4. The method according to claim 2 or 3, characterized in that: Before obtaining the remote host information corresponding to each remote host in the current host resource pool, the method further includes: Checking necessary dependent tools of each remote host in the current host resource pool to obtain a first checking result; When the first check result is that the check is passed, the log system of the control client is initialized, and the current public and private key pairs of each remote host are checked through command line parameter parsing to obtain a second check result; When the second check result is that the check fails, a target public-private key pair is generated for each remote host, and multiple processes are used to perform login attempts and credential installation processing on each remote host in the current host resource pool to generate a processing result.

5. The method according to claim 4, characterized in that The method of using multiple processes to perform login probing and credential installation processing on each remote host in the current host resource pool and generating processing results includes: For each remote host in the current host resource pool, log in to the remote host through the first preset login information to obtain a first return value; If the first return value is inconsistent with the first target value, determining whether the first return value is consistent with the second target value to obtain a determination result; If it is determined based on the judgment result that the first return value is consistent with the second target value, then the processing result is determined to be that the remote host is unreachable or the first preset login information is incorrect; If it is determined based on the judgment result that the first return value is inconsistent with the second target value, a login attempt is performed on the remote host through second preset login information to obtain a second return value; If the second return value is consistent with the second target value, determining that the processing result is that the remote host is unreachable or the second preset login information is incorrect; If the second return value is inconsistent with the second target value, the host public key of the control client is installed on the remote host to obtain the processing result.

6. The method according to claim 3, characterized in that The method further comprises: Obtain the host-related definition in the host inventory file; Based on the remark information in the host-related definition, determine the target remote host whose boot time information and processor core number information meet the preset conditions; wherein the remark information includes the boot time information and processor core number information of the target remote host.

7. A system for constructing a software installation package, characterized in that: The system includes a control client and multiple remote hosts, wherein the control client is connected to each of the remote hosts for communication. The control client is used to obtain general construction configuration parameters and specific configuration values ​​corresponding to the basic information of the software installation package to be constructed; wherein the basic information includes package name information, version number information, software warehouse information, software warehouse branch information and dependent package list information, and there is a corresponding relationship between the combination of each operating system and CPU architecture and the specific configuration value of the software installation package to be constructed; based on the general construction configuration parameters and the specific configuration value of the software installation package to be constructed, the detailed construction configuration parameters of the software installation package to be constructed are generated; based on the detailed construction configuration parameters, a construction task is issued to the target remote host in the preset host list file, and a target software compressed package returned by the target remote host is obtained; the target software compressed package is copied and decompressed to each remote host corresponding to the corresponding combination of the operating system and CPU architecture, so that each of the remote hosts installs the target software compressed package; The remote host is used to install the target software compressed package.

8. A device for constructing a software installation package, characterized in that: The device comprises: A first acquisition module is used to acquire general construction configuration parameters and specific configuration values ​​corresponding to basic information of the software installation package to be constructed; wherein the basic information includes package name information, version number information, software warehouse information, software warehouse branch information and dependent package list information, and there is a corresponding relationship between the combination of each operating system and CPU architecture and the specific configuration value of the software installation package to be constructed; A generation module, configured to generate detailed construction configuration parameters of the software installation package to be constructed based on the general construction configuration parameters and the specific configuration values ​​of the software installation package to be constructed; A second acquisition module is used to send a build task to a target remote host in a preset host list file based on the detailed build configuration parameters, and to acquire a target software compression package returned by the target remote host; The installation module is used to copy and decompress the target software compressed package to each remote host corresponding to the combination of the corresponding operating system and CPU architecture, so that each remote host can install the target software compressed package.

9. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for constructing a software installation package as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for constructing a software installation package as described in any one of claims 1-6.

Citation Information

Patent Citations

  • On-line upgrading controlling method for application software on domestic operation system

    CN108829425A

  • Docker technology-based software product deployment method and system

    CN112181587A

  • Basic software packaging method based on domestic platform

    CN113076115A

  • Automatic publishing method for Helm chart

    CN113672245A

  • Method and device for installing software installation package

    CN114296747A