Integrated environment deployment method and system, electronic equipment and storage medium
The integrated environment deployment method addresses the challenge of manual deployment errors in construction machinery by automating the process with offline programs and dependency packages, ensuring consistent and efficient deployment across multiple systems.
Patent Information
- Application Number
- CN202411176006.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-12-17
AI Technical Summary
The manual deployment of integrated environments for multiple construction machinery requires high professional expertise and is prone to errors, leading to inconsistent dependency versions and inefficient debugging.
An integrated environment deployment method that matches dependency deployment requirements with offline programs in a preset target server, issues customization prompts for mismatches, and automates the deployment process using control programs and dependency packages, ensuring consistency and efficiency.
The method reduces professional knowledge requirements, minimizes deployment errors, and enhances efficiency by automating the deployment of multiple systems with consistent dependency versions, optimizing resource use and reducing manual intervention.
Smart Images

Figure CN119149053A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an integrated environment deployment method, system, electronic device and storage medium. Background Art
[0002] With the continuous development of automation technology, unmanned construction machinery is becoming more and more popular. Through automated control of construction machinery, construction machinery can achieve a higher level of intelligent operation, such as autonomous excavation, shoveling, and loading. Automated control involves the deployment, upgrade and maintenance of the integrated environment, that is, the deployment, upgrade and maintenance of the integrated environment in the operating system of the construction machinery.
[0003] Unmanned construction machinery projects usually involve automated control of multiple construction machinery, and the deployment requirements of the integrated environment of each construction machinery may be different. At present, technicians usually deploy, upgrade and maintain the integrated environment of each construction machinery one by one. However, this method requires high professionalism from technicians and is prone to errors. For example, due to manual operation errors, the dependency versions of construction machinery with the same deployment requirements are different, which has an unnecessary impact on the overall debugging progress and debugging efficiency of the project. Summary of the invention
[0004] The present invention provides an integrated environment deployment method, system, electronic device and storage medium to solve the problem that the prior art method of manually deploying integrated environments for multiple engineering machines one by one has high professional requirements for technicians and is prone to errors.
[0005] The present invention provides an integrated environment deployment method, the method comprising: obtaining deployment requirements, the deployment requirements comprising: a plurality of systems to be deployed and dependent deployment requirements corresponding to the systems to be deployed one by one, the dependent deployment requirements comprising: a dependency combination requirement and a version requirement of each dependency item in the dependency combination;
[0006] Matching the dependency deployment requirements with dependencies of multiple offline programs in a preset target server, wherein the offline programs include: a control program for installing dependency packages and multiple dependency packages, wherein the dependency packages are software packages of dependency items;
[0007] If any of the dependent deployment requirements fails to match, an offline program customization prompt is issued, and the customized offline program is stored in the target server; if all the dependent deployment requirements are matched successfully, the integrated environment deployment of multiple systems to be deployed is completed based on the offline programs corresponding to the dependent deployment requirements.
[0008] In one embodiment of the present invention, after the step of issuing the offline program customization prompt, the following step is further included:
[0009] Receive basic information input by a user, the basic information including: a target system kernel, an installation tool, an installation path, a dependency combination, and version information of each dependency item in the dependency combination, the target system kernel refers to a system kernel compatible with the currently customized offline program, the installation tool is used to automate the dependency installation steps, and the installation path refers to an installation path of the currently customized offline program in the system to be deployed;
[0010] Create a target folder, and based on the dependency combination input by the user and the version information of each dependency item in the dependency combination, obtain multiple dependency packages from a preset offline dependency folder, wherein the obtained dependency packages correspond to the version information input by the user;
[0011] Based on the obtained dependency package, a control program for installing the dependency package is created to complete the current offline program customization.
[0012] In one embodiment of the present invention, based on the acquired dependency package, the steps of creating a control program for installing the dependency package to complete the current offline program customization include:
[0013] Integrate the basic information, the target folder, and the currently created control program into a currently customized offline program;
[0014] Performing target testing on the currently customized offline program in a preset program tester, wherein the target testing includes: functional testing and correctness testing;
[0015] If the target test passes, the currently customized offline program will be uploaded to the target server, which is used to perform version management on multiple offline programs. If the target test fails, the log information in the offline program customization process will be checked for errors, and the detected error information will be fed back to instruct the user to re-customize the offline program.
[0016] In one embodiment of the present invention, the steps of completing the integrated environment deployment of the plurality of systems to be deployed based on the offline program corresponding to the dependent deployment requirements include:
[0017] Receive deployment strategy formulation instructions;
[0018] Based on the deployment strategy formulation instruction, a deployment strategy formulation interface pops up;
[0019] Receive policy information input by the user in the deployment policy formulation interface, the policy information including: the deployment order of multiple systems to be deployed, the deployment time of each system to be deployed, the model of the device where the system to be deployed is located, the user name, the version of the offline program to be deployed by the system to be deployed, and the target deployment strategy of the system to be deployed, the target deployment strategy including: big bang release strategy and gray release strategy, the big bang distribution strategy refers to switching the system environment of the system to be deployed to a new version at the same time point, the new version refers to the version of the offline program corresponding to the current system to be deployed, the gray release strategy refers to installing the dependency package of the offline program to the corresponding system to be deployed in a way of installing the dependency packages one by one, during the installation process, if a dependency package is installed, the performance and stability of the integrated environment of the system to be deployed are tested, and if the test passes, the next dependency package is installed until all dependency packages are installed;
[0020] According to the policy information, integrated environment deployment is performed on the multiple systems to be deployed.
[0021] In one embodiment of the present invention, the step of deploying the integrated environment for the plurality of systems to be deployed according to the policy information includes:
[0022] Determine the device where the system to be deployed is located as the target device;
[0023] When it is determined that the target device has enabled the control authority, according to the version of the offline program that needs to be deployed by the system to be deployed in the policy information, the corresponding target offline program is downloaded from the target server and packaged to obtain a data packet to be transmitted;
[0024] The deployment time of each system to be deployed is monitored. When the deployment time of any system to be deployed is reached, the corresponding data packet to be transmitted is sent to the system to be deployed, and the system to be deployed is remotely controlled to decompress and run the data packet to be transmitted, so as to complete the integrated environment deployment of multiple systems to be deployed.
[0025] In one embodiment of the present invention, the step of remotely controlling the system to be deployed to decompress and run the data packet to be transmitted to complete the integrated environment deployment of multiple systems to be deployed includes:
[0026] Control the system to be deployed to decompress the data packet to be transmitted, obtain the decompressed control program and multiple dependent packages, and run the control program to complete the integrated environment deployment, wherein the execution steps of the control program include:
[0027] Performing target verification on the current system to be deployed, the target verification includes: operating system type verification and operating system version verification;
[0028] If the target verification passes, the decompressed multiple dependency packages are matched with the dependencies installed in the current system to be deployed; according to the matching results, the dependency packages not installed in the current system to be deployed are installed to the system to be deployed, or the dependencies with incorrect version installation in the system to be deployed are updated. The installation and update processes both adopt the corresponding target deployment strategy.
[0029] In one embodiment of the present invention, the step of remotely controlling the system to be deployed to decompress and run the data packet to be transmitted to complete the integrated environment deployment of multiple systems to be deployed also includes:
[0030] Receive the return code of each installation step or update step;
[0031] The return code is checked, and if the installation or update fails, the error message is recorded, and the installation or update is performed again until the installation or update is successful.
[0032] The present invention also provides an integrated environment deployment system, comprising:
[0033] A deployment requirement acquisition module, used to acquire deployment requirements, the deployment requirements including: multiple systems to be deployed and dependent deployment requirements corresponding to the systems to be deployed one by one, the dependent deployment requirements including: dependency combination requirements and version requirements of each dependency in the dependency combination;
[0034] A dependency matching module, used for performing dependency matching between the dependency deployment requirement and multiple offline programs in a preset target server, wherein the offline program includes: a control program for installing a dependency package and multiple dependency packages, wherein the dependency package is a software package of a dependency;
[0035] The customized deployment module is used to issue an offline program customization prompt if any of the dependent deployment requirements fails to match, and store the customized offline program to the target server; if all the dependent deployment requirements are matched successfully, the integrated environment deployment of multiple systems to be deployed is completed based on the offline programs corresponding to the dependent deployment requirements.
[0036] The present invention also provides an electronic device, comprising a processor, a memory and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute a computer program stored in the memory to implement an integrated environment deployment method provided in any one of the above embodiments.
[0037] The present invention also provides a computer-readable storage medium on which a computer program is stored, wherein the computer program is used to enable a computer to execute the integrated environment deployment method provided in any one of the above embodiments.
[0038] Beneficial effects of the present invention: The integrated environment deployment method, system, electronic device and storage medium proposed in the present invention obtain deployment requirements, the deployment requirements include: multiple systems to be deployed and dependent deployment requirements corresponding to the systems to be deployed one by one, the dependent deployment requirements include: dependent combination requirements and version requirements of each dependency in the dependent combination; the dependent deployment requirements are matched with multiple offline programs in a preset target server, the offline programs include: a control program for installing dependent packages and multiple dependent packages, and the dependent packages are software packages of the dependencies; if any dependent deployment requirement fails to match, an offline program customization prompt is issued, and the customized offline program is stored in the target server; if all dependent deployment requirements are matched successfully, the integrated environment deployment of multiple systems to be deployed is completed based on the offline programs corresponding to the dependent deployment requirements. The method can realize automatic deployment of multiple engineering machines, that is, the integrated environment of multiple systems to be deployed, avoids the defects of different installed dependency versions caused by manual deployment of the integrated environment of multiple engineering machines one by one, lowers the deployment threshold of the integrated environment, has high deployment efficiency and high accuracy, and the method can realize the customization of the offline program of the system to be deployed with high flexibility. By setting the dependency package in the offline program, the offline installation of the dependency package can be realized, that is, when the dependency is installed for the system to be deployed, since the offline program comes with the dependency package, there is no need to manually download the dependency package one by one through the network, thus avoiding the download error of the dependency package version, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of a flow chart of an integrated environment deployment method provided by an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of the structure of an integrated environment deployment system provided in one embodiment of the present invention;
[0041] Figure 3 A schematic diagram of a structure of a specific embodiment of an integrated environment deployment system provided by an embodiment of the present invention;
[0042] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0044] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0045] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0046] In order to facilitate the understanding of the present invention, some technical terms involved in the present invention are explained below.
[0047] Linux: An open-source Unix-like operating system widely used in servers, desktop computers, mobile devices, and embedded systems.
[0048] Offline program: A program or script that can run independently on a local computer or device without relying on a network connection.
[0049] SVN: The full name is Subversion. It is an open source version control system used to manage changes to files and directories. It is widely used in software development, document management, and other fields that require version control.
[0050] SSH: is a network protocol and encryption technology used for data communication and remote access while ensuring the confidentiality and integrity of the data.
[0051] Combine the following Figures 1 to 4 , the integrated environment deployment method, system, electronic device and storage medium provided by the present invention are explained.
[0052] See also Figure 1 , Figure 1 A flow chart of an integrated environment deployment method provided by an embodiment of the present invention is shown as follows: Figure 1 As shown, the integrated environment deployment method provided in this embodiment includes:
[0053] S110: Obtaining deployment requirements, the deployment requirements including: multiple systems to be deployed and dependent deployment requirements corresponding to the systems to be deployed one by one, the dependent deployment requirements including: dependency combination requirements and version requirements of each dependency in the dependency combination.
[0054] It should be noted that the system to be deployed refers to the operating system of engineering machinery, such as the Linux system, and engineering machinery such as excavators and scrapers. The dependency deployment requirements corresponding to each system to be deployed may be the same or different. For example, assuming that the system to be deployed is divided according to the function of the equipment, it can be divided into multiple functional subsystems, such as the perception subsystem, the decision-making subsystem, and the operation and control subsystem. Each functional subsystem needs to deploy corresponding dependencies, and since the functional subsystems included in each system to be deployed may be the same or different, the dependency deployment requirements corresponding to each system to be deployed may also be the same or different.
[0055] It should also be noted that the dependency combination requirement refers to the dependency combination required by the system to be deployed, and the dependency combination includes multiple dependencies.
[0056] S120: matching the dependency deployment requirement with dependencies of multiple offline programs in a preset target server, wherein the offline program includes: a control program for installing a dependency package and multiple dependency packages, and the dependency package is a software package of the dependency.
[0057] It should be noted that the target server is an SVN server for version management of multiple offline programs. By matching the dependency deployment requirements with the multiple offline programs in the target server, it is easy to determine whether the existing offline programs in the target server can meet the dependency deployment requirements, that is, whether the dependency packages in the existing offline programs correspond to the dependency deployment requirements.
[0058] It should also be noted that the above step S120 requires matching the dependencies of the multiple dependent deployment requirements with the existing offline programs in the target server.
[0059] It should be mentioned that by integrating the dependency package into the offline program, the offline operation of the offline program can be guaranteed, that is, there is no need to download the dependency package through the network during the deployment process.
[0060] S130: If any of the dependent deployment requirements fails to match, an offline program customization prompt is issued, and the customized offline program is stored in the target server; if all the dependent deployment requirements are matched successfully, the integrated environment deployment of the multiple systems to be deployed is completed based on the offline programs corresponding to the dependent deployment requirements.
[0061] It should be noted that if any dependent deployment requirement fails to match, it means that there is no offline program corresponding to the dependent deployment requirement in the target server. Therefore, an offline program customization prompt is issued to prompt the user to customize the offline program, and the customized offline program is sent to the target server for version management, so as to obtain the offline program in the subsequent integrated environment deployment of multiple systems to be deployed.
[0062] It should be mentioned that the integrated environment deployment method in the above embodiment is not only applicable to multiple engineering machines, that is, the integrated environment deployment of multiple systems to be deployed, but also applicable to the upgrade and maintenance of the integrated environment of multiple engineering machines, which will not be repeated here.
[0063] It is also necessary to mention that the integrated environment deployment method in the above embodiment can greatly improve the speed of integrated environment deployment, upgrade, and maintenance, avoid the difference in the version of the environment dependency caused by online installation by different personnel (different personnel deploy the integrated environment for multiple systems to be deployed, and manually download the corresponding dependency package online during the deployment process) (here refers to the difference between the downloaded dependency version and the dependency version that needs to be downloaded, and the version difference caused by the manual download of the dependency due to the error of two systems to be deployed with the same dependency deployment requirements), and ensure the consistency and stability of the integrated environment. In addition, the integrated environment deployment method in the above embodiment can also realize the unified centralized management of the integrated environment of multiple machines (multiple engineering machinery), optimize resource allocation and utilization, avoid resource waste and repeated investment, and if the existing offline program can meet the dependency deployment requirements, there is no need to re-customize the offline program, and it can be used directly. The method provides a better control and supervision mechanism. In addition, the method also effectively reduces the professional knowledge requirements for operators and improves ease of use and friendliness.
[0064] In some embodiments, the step of issuing an offline program customization prompt further includes:
[0065] 1. Receive basic information input by the user, the basic information including: target system kernel, installation tool, installation path, dependency combination, and version information of each dependency in the dependency combination. The target system kernel refers to the system kernel compatible with the currently customized offline program, the installation tool is used to automate the dependency installation steps, and the installation path refers to the installation path of the currently customized offline program in the system to be deployed.
[0066] It should be noted that by setting the target system kernel, the compatibility between the dependencies deployed in the subsequent integrated environment deployment process and the system to be deployed can be guaranteed, and the deployment anomalies caused by kernel version mismatch can be avoided. The installation tool can be a command line tool such as apt-get (advanced package tool), yum (a package management tool), dpkg (a package management tool), and rpm (a package manager). In the subsequent integrated environment deployment process, the installation tool is used to perform operations such as installation of dependency packages (software packages of dependencies). The installation path specifically refers to the installation path of multiple dependency packages in the offline program in the system to be deployed. By receiving the dependency combination input by the user and the version information of each dependency in the dependency combination, it is possible to facilitate the subsequent acquisition of the corresponding dependency package, and place the acquired dependency package in the target folder, so as to facilitate direct acquisition in the subsequent deployment process, without the need to download through the network, saving resources, and avoiding version download errors during the deployment process.
[0067] 2. Create a target folder, and based on the dependency combination input by the user and the version information of each dependency item in the dependency combination, obtain multiple dependency packages from a preset offline dependency folder, wherein the obtained dependency packages correspond to the version information input by the user.
[0068] It should be noted that the offline dependency folder includes multiple dependency packages. Since the dependency packages required by different offline programs may overlap, that is, the dependency packages required by different offline programs may be partially the same (such as offline program one requires dependency package one, dependency package two, and dependency package three, and offline program two requires dependency package one and dependency package two), if each dependency package is downloaded separately during the customization process of the offline program, such as downloading dependency package one, dependency package two, and dependency package three once when customizing offline program one, and downloading dependency package one and dependency package two once when customizing offline program two, there is a waste of resources. Therefore, in this embodiment, multiple dependency packages are downloaded to the offline dependency folder in advance. When the offline program needs to be customized, the corresponding dependency package can be directly obtained from the offline dependency folder without repeated downloading, thereby avoiding waste of resources and effectively improving the customization efficiency of the offline program.
[0069] It should also be noted that by creating a target folder, it is easier for the control program to reference dependent packages and avoid network dependence.
[0070] It should be mentioned that the dependency packages in this embodiment correspond one-to-one to the functional subsystems of the system to be deployed, such as a control subsystem corresponds to a dependency package, a decision subsystem corresponds to a dependency package, etc., to facilitate the control program to reference the dependency package.
[0071] 3. Based on the obtained dependency package, create a control program for installing the dependency package to complete the current offline program customization.
[0072] In some embodiments, based on the acquired dependency package, the steps of creating a control program for installing the dependency package to complete the current offline program customization include:
[0073] 1. Integrate the basic information, the target folder, and the currently created control program into the currently customized offline program.
[0074] 2. Perform target testing on the currently customized offline program in a preset program tester, wherein the target testing includes: functional testing and correctness testing.
[0075] It should be noted that the functional test refers to testing the functions of the offline program, such as the dependency package installation function, etc. The correctness test refers to testing the syntax of the offline program, etc. If both the functional test and the correctness test are passed, it means that the target test is passed.
[0076] 3. If the target test passes, the currently customized offline program is uploaded to the target server, which is used to perform version management on multiple offline programs. If the target test fails, the log information in the offline program customization process is checked for errors, and the detected error information is fed back to instruct the user to re-customize the offline program.
[0077] It should be noted that, through the above steps, the correctness of the customized offline program can be effectively guaranteed.
[0078] It should also be noted that after completing the above steps, a record file can also be created, which is used to record information such as the author, time, function label, usage method, and simple exception handling method, so as to facilitate user identification. The record file is also part of the offline program.
[0079] In some embodiments, based on the offline program corresponding to the dependent deployment requirement, the step of completing the integrated environment deployment of the plurality of systems to be deployed includes:
[0080] 1. Receiving a deployment strategy formulation instruction It should be noted that the deployment strategy formulation instruction can be triggered by touching a deployment strategy formulation button preset on the display screen.
[0081] 2. Based on the deployment strategy formulation instruction, a deployment strategy formulation interface pops up. The user can enter corresponding information in the deployment strategy formulation interface to complete the formulation of the deployment strategy.
[0082] 3. Receive policy information input by the user in the deployment policy formulation interface, the policy information including: the deployment order of multiple systems to be deployed, the deployment time of each system to be deployed, the model of the device where the system to be deployed is located, the user name, the version of the offline program to be deployed by the system to be deployed, and the target deployment strategy of the system to be deployed, the target deployment strategy including: big bang release strategy and grayscale release strategy, the big bang distribution strategy refers to switching the system environment of the system to be deployed to a new version at the same time point, the new version refers to the version of the offline program corresponding to the current system to be deployed, the grayscale release strategy refers to installing the dependency packages of the offline program to the corresponding system to be deployed one by one. During the installation process, if a dependency package is installed, the performance and stability of the integrated environment of the system to be deployed are tested. If the test passes, the next dependency package is installed until all dependency packages are installed.
[0083] It is understandable that the above deployment information constitutes a deployment strategy. It should be noted that by receiving or obtaining the above strategy information, the integrated environment deployment of multiple systems to be deployed can be better achieved.
[0084] It should also be noted that the big bang distribution strategy can switch the system environment of the system to be deployed to the new version at the same time point, without a transition period. It is simple and direct, and is mostly used for rapid deployment of new machines. The grayscale release strategy installs dependent packages one by one, and after installing a dependent package, it tests the performance and stability of the integrated environment of the system to be deployed. If the test passes, the next dependent package is installed until the old version of the system to be deployed is completely replaced. It is mostly used for upgrading the old machine version. The above embodiment can meet the deployment requirements of most systems to be deployed by providing two strategies: the big bang distribution strategy and the grayscale release strategy.
[0085] 4. Perform integrated environment deployment on the plurality of systems to be deployed according to the policy information.
[0086] In some embodiments, the step of deploying the plurality of systems to be deployed in an integrated environment according to the policy information includes:
[0087] 1. Identify the device where the system to be deployed is located as the target device.
[0088] 2. When it is determined that the target device has enabled control authority, the corresponding target offline program is downloaded from the target server and packaged according to the version of the offline program that needs to be deployed by the system to be deployed in the policy information to obtain a data packet to be transmitted.
[0089] It should be noted that the control authority in this embodiment refers to the root (super user) authority. Only when the target device has the root authority enabled can the subsequent deployment steps be performed.
[0090] 3. Monitor the deployment time of each system to be deployed. When the deployment time of any system to be deployed is reached, send the corresponding data packet to be transmitted to the system to be deployed, and remotely control the system to be deployed to decompress and run the data packet to be transmitted, so as to complete the integrated environment deployment of multiple systems to be deployed.
[0091] It should be noted that the above steps can well realize the integrated environment deployment of multiple systems to be deployed, with a high degree of automation.
[0092] In some embodiments, the step of remotely controlling the system to be deployed to decompress and run the data packet to be transmitted to complete the integrated environment deployment of multiple systems to be deployed includes:
[0093] Control the system to be deployed to decompress the data packet to be transmitted, obtain the decompressed control program and multiple dependent packages, and run the control program to complete the integrated environment deployment, wherein the execution steps of the control program include:
[0094] 1. Perform target verification on the current system to be deployed, wherein the target verification includes: operating system type verification and operating system version verification.
[0095] It should be noted that the operating system type verification refers to verifying whether the type of the current system to be deployed meets the system type requirements of this integrated environment deployment. The operating system version verification refers to verifying whether the version of the current system to be deployed is compatible with the dependent package to be deployed this time. If both the operating system type verification and the operating system version verification pass, it means that the target verification has passed.
[0096] 2. If the target verification passes, the multiple unpacked dependency packages are matched with the dependencies installed in the current system to be deployed; according to the matching results, the dependency packages not installed in the current system to be deployed are installed to the system to be deployed, or the dependencies with incorrect version installation in the system to be deployed are updated. The installation and update processes both adopt the corresponding target deployment strategy.
[0097] It should be mentioned that the priority order between dependent packages, that is, the installation order, also needs to be considered during the installation and update process.
[0098] In some embodiments, the step of remotely controlling the system to be deployed to decompress and run the data packet to be transmitted to complete the integrated environment deployment of multiple systems to be deployed further includes:
[0099] 1. Receive the return code of each installation step or update step.
[0100] 2. Check the return code. If the installation or update fails, record the error message and reinstall or update until the installation or update is successful.
[0101] It should be noted that by monitoring the return code of each installation step or update step, real-time follow-up of each step can be achieved.
[0102] It should be mentioned that after installing all dependent packages, you also need to delete temporary files, set environment variables, and start services to complete the deployment of the integrated environment.
[0103] It is also necessary to remember that the integrated environment is a collection of multiple functional systems, and technical personnel with rich professional knowledge are required to complete this complex deployment and configuration task. The integrated environment deployment method in the above embodiment effectively reduces the professional knowledge requirements for operators by customizing offline programs and other steps, so that even people who are not familiar with the technology can easily complete the integrated environment deployment task. At the same time, the offline program is different from the online installation. During the dependency package acquisition stage in the integrated environment deployment process, it will not be limited by the network, effectively avoiding the differences in the dependency package versions obtained. In addition, the existing integrated environment deployment usually focuses on the deployment of a single device (system to be deployed), and cannot well realize the centralized deployment and management of multiple systems to be deployed. The integrated environment deployment method in the above embodiment can better solve this problem.
[0104] The integrated environment deployment system provided by the present invention is described below. The integrated environment deployment system described below and the integrated environment deployment method described above can be referenced to each other.
[0105] Please refer to Figure 2 The integrated environment deployment system provided in this embodiment includes:
[0106] A deployment requirement acquisition module 210 is used to acquire deployment requirements, wherein the deployment requirements include: multiple systems to be deployed and dependent deployment requirements corresponding to the systems to be deployed one by one, wherein the dependent deployment requirements include: dependency combination requirements and version requirements of each dependency in the dependency combination;
[0107] The dependency matching module 220 is used to match the dependency deployment requirements with the dependencies of multiple offline programs in the preset target server, wherein the offline programs include: a control program for installing dependency packages and multiple dependency packages, wherein the dependency packages are software packages of the dependencies;
[0108] The customized deployment module 230 is used to issue an offline program customization prompt if any of the dependent deployment requirements fails to match, and store the customized offline program to the target server; if all the dependent deployment requirements are successfully matched, the integrated environment deployment of the multiple systems to be deployed is completed based on the offline programs corresponding to the dependent deployment requirements. The deployment requirement acquisition module 210, the dependency matching module 220, and the customized deployment module 230 are connected. The integrated environment deployment system in this embodiment can realize the automatic deployment of multiple engineering machines, that is, the integrated environment of multiple systems to be deployed, avoiding the defects of different installed dependency versions caused by manual deployment of the integrated environment for multiple engineering machines one by one, reducing the deployment threshold of the integrated environment, with higher deployment efficiency, higher accuracy, and lower cost, and can realize offline program customization with higher flexibility.
[0109] In some embodiments, the custom deployment module 230 is further used to receive basic information input by a user, the basic information including: a target system kernel, an installation tool, an installation path, a dependency combination, and version information of each dependency item in the dependency combination, the target system kernel refers to a system kernel compatible with the currently customized offline program, the installation tool is used to automate the dependency installation steps, and the installation path refers to the installation path of the currently customized offline program in the system to be deployed;
[0110] Create a target folder, and based on the dependency combination input by the user and the version information of each dependency item in the dependency combination, obtain multiple dependency packages from a preset offline dependency folder, wherein the obtained dependency packages correspond to the version information input by the user;
[0111] Based on the obtained dependency package, a control program for installing the dependency package is created to complete the current offline program customization.
[0112] In some embodiments, the custom deployment module 230 is specifically used to integrate the basic information, the target folder, and the currently created control program into a currently customized offline program;
[0113] Performing target testing on the currently customized offline program in a preset program tester, wherein the target testing includes: functional testing and correctness testing;
[0114] If the target test passes, the currently customized offline program will be uploaded to the target server, which is used to perform version management on multiple offline programs. If the target test fails, the log information in the offline program customization process will be checked for errors, and the detected error information will be fed back to instruct the user to re-customize the offline program.
[0115] In some embodiments, the custom deployment module 230 is specifically used to receive deployment strategy formulation instructions;
[0116] Based on the deployment strategy formulation instruction, a deployment strategy formulation interface pops up;
[0117] Receive policy information input by the user in the deployment policy formulation interface, the policy information including: the deployment order of multiple systems to be deployed, the deployment time of each system to be deployed, the model of the device where the system to be deployed is located, the user name, the version of the offline program to be deployed by the system to be deployed, and the target deployment strategy of the system to be deployed, the target deployment strategy including: big bang release strategy and gray release strategy, the big bang distribution strategy refers to switching the system environment of the system to be deployed to a new version at the same time point, the new version refers to the version of the offline program corresponding to the current system to be deployed, the gray release strategy refers to installing the dependency package of the offline program to the corresponding system to be deployed in a way of installing the dependency packages one by one, during the installation process, if a dependency package is installed, the performance and stability of the integrated environment of the system to be deployed are tested, and if the test passes, the next dependency package is installed until all dependency packages are installed;
[0118] According to the policy information, integrated environment deployment is performed on the multiple systems to be deployed.
[0119] In some embodiments, the custom deployment module 230 is further specifically used to determine the device where the system to be deployed is located as the target device;
[0120] When it is determined that the target device has enabled the control authority, according to the version of the offline program that needs to be deployed by the system to be deployed in the policy information, the corresponding target offline program is downloaded from the target server and packaged to obtain a data packet to be transmitted;
[0121] The deployment time of each system to be deployed is monitored. When the deployment time of any system to be deployed is reached, the corresponding data packet to be transmitted is sent to the system to be deployed, and the system to be deployed is remotely controlled to decompress and run the data packet to be transmitted, so as to complete the integrated environment deployment of multiple systems to be deployed.
[0122] In some embodiments, the customized deployment module 230 is further specifically used to control the system to be deployed to decompress the data packet to be transmitted, obtain the decompressed control program and multiple dependent packages, and run the control program to complete the integrated environment deployment, wherein the execution steps of the control program include:
[0123] Performing target verification on the current system to be deployed, the target verification includes: operating system type verification and operating system version verification;
[0124] If the target verification passes, the decompressed multiple dependency packages are matched with the dependencies installed in the current system to be deployed; according to the matching results, the dependency packages not installed in the current system to be deployed are installed to the system to be deployed, or the dependencies with incorrect version installation in the system to be deployed are updated. The installation and update processes both adopt the corresponding target deployment strategy.
[0125] In some embodiments, the custom deployment module 230 is further specifically configured to receive a return code for each installation step or update step;
[0126] The return code is checked, and if the installation or update fails, the error message is recorded, and the installation or update is performed again until the installation or update is successful.
[0127] The integrated environment deployment system in the above embodiment is further explained below with a specific embodiment.
[0128] Assume that you need to control multiple construction machines (such as Figure 3 The integrated environment is deployed in the following ways:
[0129] Regarding the outdoor site, each construction machine includes an industrial computer, a switch, and an AP (wireless access point, such as a wireless network router, etc.). The industrial computer and the AP are connected to the switch respectively, and the AP is connected to the ground base station.
[0130] Regarding the indoor site, i.e., the central control room, the central control room is provided with an SVN server, a program generator (for offline program customization and generation), a program tester AP, a local machine, and a switch. This embodiment integrates the integrated environment deployment system into the local machine by integrating the deployment requirement acquisition module 210, the dependency matching module 220, and the customized deployment module 230. The program generator and the program tester are set independently from the local machine to facilitate program customization and testing, that is, the program generator is used to customize the offline program, and the customized offline program is tested using the program tester. The SVN server, the integrated environment deployment system, and the AP are respectively connected to the switch in the central control room. Similarly, the AP in the central control room is connected to the ground base station to realize the network interconnection between indoor and outdoor. Through the above settings, the unified deployment and management of the integrated environment of multiple engineering machinery in the outdoor site can be better realized.
[0131] In some embodiments, an electronic device is also provided, which may be a server, and its internal structure is shown in FIG. Figure 4As shown. The electronic device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile and / or 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. The network interface of the electronic device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, the functions or steps on the server side of the above method are implemented.
[0132] In some embodiments, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: obtaining deployment requirements, the deployment requirements including: multiple systems to be deployed and dependent deployment requirements corresponding one to one to the systems to be deployed, the dependent deployment requirements including: dependency combination requirements and version requirements of each dependency in the dependency combination; matching the dependency deployment requirements with multiple offline programs in a preset target server, the offline programs including: a control program for installing dependency packages and multiple dependency packages, the dependency packages being software packages of the dependencies; if any dependency deployment requirement fails to match, an offline program customization prompt is issued, and the customized offline program is stored in the target server; if all dependency deployment requirements are successfully matched, the integrated environment deployment of multiple systems to be deployed is completed based on the offline programs corresponding to the dependency deployment requirements.
[0133] In some embodiments, 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 deployment requirements, the deployment requirements include: multiple systems to be deployed and dependent deployment requirements corresponding to the systems to be deployed one by one, the dependent deployment requirements include: dependency combination requirements and version requirements of each dependency in the dependency combination; matching the dependency deployment requirements with multiple offline programs in a preset target server, the offline programs include: a control program for installing dependency packages and multiple dependency packages, and the dependency packages are software packages of dependencies; if any dependency deployment requirement fails to match, an offline program customization prompt is issued, and the customized offline program is stored in the target server; if all dependency deployment requirements are successfully matched, the integrated environment deployment of multiple systems to be deployed is completed based on the offline programs corresponding to the dependency deployment requirements.
[0134] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or electronic device can refer to the relevant descriptions on the server side and the client side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0135] The flow chart and block diagram in the accompanying drawings illustrate the possible implementation architecture, function and operation of the method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0136] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. An integrated environment deployment method, characterized in that: include: Obtaining deployment requirements, the deployment requirements including: multiple systems to be deployed and dependent deployment requirements corresponding to the systems to be deployed one by one, the dependent deployment requirements including: dependency combination requirements and version requirements of each dependency in the dependency combination; Matching the dependency deployment requirements with dependencies of multiple offline programs in a preset target server, wherein the offline programs include: a control program for installing dependency packages and multiple dependency packages, wherein the dependency packages are software packages of dependency items; If any of the dependent deployment requirements fails to match, an offline program customization prompt is issued, and the customized offline program is stored in the target server; if all the dependent deployment requirements are matched successfully, the integrated environment deployment of multiple systems to be deployed is completed based on the offline programs corresponding to the dependent deployment requirements.
2. The integrated environment deployment method according to claim 1, characterized in that: The step of issuing the offline program customization prompt also includes: Receive basic information input by a user, the basic information including: a target system kernel, an installation tool, an installation path, a dependency combination, and version information of each dependency item in the dependency combination, the target system kernel refers to a system kernel compatible with the currently customized offline program, the installation tool is used to automate the dependency installation steps, and the installation path refers to an installation path of the currently customized offline program in the system to be deployed; Create a target folder, and based on the dependency combination input by the user and the version information of each dependency item in the dependency combination, obtain multiple dependency packages from a preset offline dependency folder, wherein the obtained dependency packages correspond to the version information input by the user; Based on the obtained dependency package, a control program for installing the dependency package is created to complete the current offline program customization.
3. The integrated environment deployment method according to claim 2, characterized in that: Based on the obtained dependency package, a control program for installing the dependency package is created to complete the current offline program customization steps including: Integrate the basic information, the target folder, and the currently created control program into a currently customized offline program; Performing target testing on the currently customized offline program in a preset program tester, wherein the target testing includes: functional testing and correctness testing; If the target test passes, the currently customized offline program will be uploaded to the target server, which is used to perform version management on multiple offline programs. If the target test fails, the log information in the offline program customization process will be checked for errors, and the detected error information will be fed back to instruct the user to re-customize the offline program.
4. The integrated environment deployment method according to claim 1, characterized in that: The steps of completing the integrated environment deployment of the plurality of systems to be deployed based on the offline program corresponding to the dependent deployment requirements include: Receive deployment strategy formulation instructions; Based on the deployment strategy formulation instruction, a deployment strategy formulation interface pops up; Receive policy information input by the user in the deployment policy formulation interface, the policy information including: the deployment order of multiple systems to be deployed, the deployment time of each system to be deployed, the model of the device where the system to be deployed is located, the user name, the version of the offline program to be deployed by the system to be deployed, and the target deployment strategy of the system to be deployed, the target deployment strategy including: big bang release strategy and gray release strategy, the big bang distribution strategy refers to switching the system environment of the system to be deployed to a new version at the same time point, the new version refers to the version of the offline program corresponding to the current system to be deployed, the gray release strategy refers to installing the dependency package of the offline program to the corresponding system to be deployed in a way of installing the dependency packages one by one, during the installation process, if a dependency package is installed, the performance and stability of the integrated environment of the system to be deployed are tested, and if the test passes, the next dependency package is installed until all dependency packages are installed; According to the policy information, integrated environment deployment is performed on the multiple systems to be deployed.
5. The integrated environment deployment method according to claim 4, characterized in that: The step of deploying the plurality of systems to be deployed in an integrated environment according to the policy information includes: Determine the device where the system to be deployed is located as the target device; When it is determined that the target device has enabled the control authority, according to the version of the offline program that needs to be deployed by the system to be deployed in the policy information, the corresponding target offline program is downloaded from the target server and packaged to obtain a data packet to be transmitted; The deployment time of each system to be deployed is monitored. When the deployment time of any system to be deployed is reached, the corresponding data packet to be transmitted is sent to the system to be deployed, and the system to be deployed is remotely controlled to decompress and run the data packet to be transmitted, so as to complete the integrated environment deployment of multiple systems to be deployed.
6. The integrated environment deployment method according to claim 5, characterized in that: The step of remotely controlling the system to be deployed to decompress and run the data packet to be transmitted to complete the integrated environment deployment of multiple systems to be deployed includes: Control the system to be deployed to decompress the data packet to be transmitted, obtain the decompressed control program and multiple dependent packages, and run the control program to complete the integrated environment deployment, wherein the execution steps of the control program include: Performing target verification on the current system to be deployed, the target verification includes: operating system type verification and operating system version verification; If the target verification passes, the decompressed multiple dependency packages are matched with the dependencies installed in the current system to be deployed; according to the matching results, the dependency packages not installed in the current system to be deployed are installed to the system to be deployed, or the dependencies with incorrect version installation in the system to be deployed are updated. The installation and update processes both adopt the corresponding target deployment strategy.
7. The integrated environment deployment method according to claim 6, characterized in that: The step of remotely controlling the system to be deployed to decompress and run the data packet to be transmitted to complete the integrated environment deployment of multiple systems to be deployed also includes: Receive the return code of each installation step or update step; The return code is checked, and if the installation or update fails, the error message is recorded, and the installation or update is performed again until the installation or update is successful.
8. An integrated environment deployment system, characterized in that: include: A deployment requirement acquisition module, used to acquire deployment requirements, the deployment requirements including: multiple systems to be deployed and dependent deployment requirements corresponding to the systems to be deployed one by one, the dependent deployment requirements including: dependency combination requirements and version requirements of each dependency in the dependency combination; A dependency matching module, used for performing dependency matching between the dependency deployment requirement and multiple offline programs in a preset target server, wherein the offline program includes: a control program for installing a dependency package and multiple dependency packages, wherein the dependency package is a software package of a dependency; The customized deployment module is used to issue an offline program customization prompt if any of the dependent deployment requirements fails to match, and store the customized offline program to the target server; if all the dependent deployment requirements are matched successfully, the integrated environment deployment of multiple systems to be deployed is completed based on the offline programs corresponding to the dependent deployment requirements.
9. An electronic device, characterized in that: It comprises a processor, a memory and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute the computer program stored in the memory to implement the integrated environment deployment method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is used to enable a computer to execute the integrated environment deployment method as claimed in any one of claims 1 to 7.
