Data processing method and device, computer equipment and computer readable storage medium

By using the same packaging dependency component to package test and production environment data in the same development environment and storing the data packets on the repository server, the problem of low environment deployment efficiency is solved, and consistent deployment of data packets and efficient environment deployment are achieved.

CN115756502BActive Publication Date: 2026-04-07PING AN BANK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-14
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

When deploying existing technologies in the runtime environment, there are differences between the test environment data packages and the production environment data packages, resulting in low deployment efficiency, the need for manual inspection, and the online packaging method may cause network congestion and system anomalies.

Method used

By using the same packaging dependency component to package test environment data and production environment data, the packaged data packets are stored in the repository server. The target environment type is determined by the environment deployment command, and the corresponding data packets are retrieved from the repository and deployed.

Benefits of technology

It achieves consistency between test environment data packages and production environment data packages in the development environment, reduces manual inspection steps, improves environment deployment efficiency, and avoids network congestion and system anomalies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115756502B_ABST
    Figure CN115756502B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a kind of data processing method, device, computer equipment and computer readable storage medium, comprising: obtaining current target type environment parameter, running environment parameter and packing dependent component;Target type environment parameter and running environment parameter are packaged to obtain the data packet to be stored using packing dependent component;Send the data packet to be stored to preset resource warehouse;When detecting environment deployment instruction, determine the running environment variable set under current running environment to determine the target environment type that needs to be deployed;According to target environment type, generate data packet acquisition request and send to preset resource warehouse;Receive and download the target data packet returned by preset resource warehouse and push to the server corresponding to target environment type for environment deployment;The embodiment of the application makes the development environment of test environment data packet and production environment data packet of deployment environment consistent, without manual inspection of environment data packet, improve the efficiency of environment deployment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a data processing method, apparatus, computer device, and computer-readable storage medium. Background Technology

[0002] As banks expand their business, the types of services available to customers are increasing. With technological advancements, customers can now conduct transactions on banking platforms using mobile phones or computers. To ensure customers can smoothly conduct transactions on these platforms, developers are responsible for their architecture and maintenance, guaranteeing the efficient and normal operation of all functions within the application software.

[0003] Currently, during the development of business systems, different runtime environments need to be deployed for different requirements. For example, when a business system is under development, a development environment needs to be deployed; when the business system reaches the final stage of perfecting the development environment, a test environment needs to be deployed; and when the business system is officially launched, a production environment needs to be deployed. Existing technologies achieve platform architecture and maintenance by deploying different runtime environments for different application scenarios. However, existing runtime environment deployments typically use local packaging or online packaging during production environment deployment when building environment data packages. This results in differences between the test environment data packages and the development environment data packages in the production environment, requiring manual inspection of the environment data packages and leading to low environment deployment efficiency. Summary of the Invention

[0004] This invention provides a data processing method, apparatus, computer device, and computer-readable storage medium. By using the same packaging dependency component to package test environment data and production environment data under the same development environment, and storing the packaged test data package and production data package in the repository server software, the data package can be quickly constructed. This ensures that the test environment data package and the production environment data package in the deployment environment are consistent with the development environment, eliminating the need for manual inspection of the environment data package and improving the efficiency of environment deployment.

[0005] This invention provides a data processing method, including:

[0006] Obtain the current target type environment parameters, runtime environment parameters, and packaged dependent components, wherein the target type environment parameters include test environment parameters and / or production environment parameters;

[0007] The packaging dependency component is used to package the target type environment parameters and the runtime environment parameters to obtain a data package to be stored;

[0008] The data packet to be stored is sent to a preset resource repository so that the preset resource repository stores the data packet to be stored.

[0009] When an environment deployment command is detected, the runtime environment variables set in the current runtime environment are determined, and the target environment type to be deployed is determined based on the runtime environment variables.

[0010] A data packet retrieval request is generated based on the target environment type, and the data packet retrieval request is sent to the preset resource warehouse, so that the preset resource warehouse determines the target data packet from multiple data packets to be stored based on the target environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the target environment type;

[0011] Receive and download the target data packet returned by the preset resource repository, and push the target data packet to the server corresponding to the target environment type for environment deployment.

[0012] Accordingly, embodiments of the present invention also provide a data processing apparatus, including:

[0013] The acquisition unit is used to acquire the current target type environment parameters, runtime environment parameters, and packaging dependency components, wherein the target type environment parameters include test environment parameters and / or production environment parameters;

[0014] The packaging unit is used to package the target type environment parameters and the runtime environment parameters using the packaging dependency component to obtain a data package to be stored.

[0015] A sending unit is configured to send the data packet to be stored to a preset resource warehouse, so that the preset resource warehouse stores the data packet to be stored;

[0016] The determining unit is used to determine the runtime environment variables set in the current runtime environment when an environment deployment instruction is detected, and to determine the target environment type to be deployed based on the runtime environment variables;

[0017] The generation unit is configured to generate a data packet retrieval request according to the target environment type and send the data packet retrieval request to the preset resource warehouse, so that the preset resource warehouse determines the target data packet from multiple data packets to be stored according to the target environment type carried in the data packet retrieval request and returns the target data packet corresponding to the target environment type;

[0018] The receiving unit is used to receive and download the target data packet returned by the preset resource repository, and push the target data packet to the server corresponding to the target environment type for environment deployment.

[0019] In some embodiments of the present invention, a computer device may also be provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method described above.

[0020] In some embodiments of the present invention, a computer-readable storage medium may also be provided, on which a computer program is stored, which, when run on a computer, causes the computer to perform the steps of the method described above.

[0021] Using the embodiments of this application, the current target type environment parameters, runtime environment parameters, and packaging dependency components can be obtained. The target type environment parameters include test environment parameters and / or production environment parameters. Then, the packaging dependency components are used to package the target type environment parameters and runtime environment parameters to obtain a data packet to be stored. Next, the data packet to be stored is sent to a preset resource repository so that the preset resource repository stores the data packet. When an environment deployment instruction is detected, the runtime environment variables set in the current runtime environment are determined, and the target environment type to be deployed is determined based on the runtime environment variables. Then, a data packet retrieval request is generated based on the target environment type, and the data packet retrieval request is sent to the preset resource repository so that the preset resource repository determines the target data packet from multiple data packets to be stored based on the target environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the target environment type. Finally, the target data packet returned by the preset resource repository is received and downloaded, and the target data packet is pushed to the server corresponding to the target environment type for environment deployment. This application embodiment uses the same packaging dependency component to package test environment data and production environment data under the same development environment, and stores the packaged test data package and production data package in the repository server software, thereby quickly completing the construction of data packages. This ensures that the test environment data package and the production environment data package in the deployment environment are consistent with the development environment, eliminating the need for manual inspection of the environment data packages and improving the efficiency of environment deployment. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a flowchart illustrating the data processing method provided in an embodiment of the present invention;

[0024] Figure 2 This is a schematic diagram illustrating an application scenario of the data processing method provided in this embodiment of the invention;

[0025] Figure 3 This is a schematic diagram illustrating another application scenario of the data processing method provided in this embodiment of the invention;

[0026] Figure 4 This is a schematic diagram of the structure of the data processing device provided in an embodiment of the present invention;

[0027] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation

[0028] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0029] In existing technologies, the construction methods for environment data packages during runtime environment deployment typically include the following scenarios: First, manual local packaging by the user. This method relies on the local development environment, where packaging and building are performed on the developer's local computer. However, since each developer's environment may differ (e.g., inconsistent code, Node.js versions, or Node.js packages), the built test packages cannot be effectively managed, requiring manual inspection of the environment data packages, resulting in low deployment efficiency. Second, online packaging during production environment deployment. This method involves simultaneously building the data packages online when releasing the production environment, relying on an online server. Furthermore, since the production environment build and test environment build are performed in different environments (servers), manual inspection of the environment data packages is also required, leading to low deployment efficiency. Additionally, the simultaneous construction of a large number of test packages on the server can cause network congestion, potentially resulting in system anomalies.

[0030] To address the aforementioned issues, embodiments of this application provide a data processing method, apparatus, computer device, and computer-readable storage medium. This method involves acquiring current target type environment parameters, runtime environment parameters, and packaging dependency components, wherein the target type environment parameters include test environment parameters and / or production environment parameters. Then, the packaging dependency components are used to package the target type environment parameters and runtime environment parameters to obtain a data packet to be stored. Next, the data packet to be stored is sent to a preset resource repository, causing the preset resource repository to store the data packet. When an environment deployment instruction is detected, runtime environment variables set in the current runtime environment are determined, and the target environment type to be deployed is determined based on the runtime environment variables. Subsequently, a data packet retrieval request is generated based on the target environment type and sent to the preset resource repository, causing the preset resource repository to determine the target data packet from multiple data packets to be stored based on the target environment type carried in the data packet retrieval request, and return the target data packet corresponding to the target environment type. Finally, the target data packet returned by the preset resource repository is received and downloaded, and the target data packet is pushed to the server corresponding to the target environment type for environment deployment. This application embodiment uses the same packaging dependency component to package test environment data and production environment data under the same development environment, and stores the packaged test data package and production data package in the repository server software, thereby quickly completing the construction of data packages. This ensures that the test environment data package and the production environment data package in the deployment environment are consistent with the development environment, eliminating the need for manual inspection of the environment data packages and improving the efficiency of environment deployment.

[0031] This application provides a data processing method, apparatus, computer device, and computer-readable storage medium. Specifically, the data processing method of this application can be executed by a computer device, which can be a terminal or a server. The terminal can be a smartphone, tablet computer, laptop computer, touch screen, personal computer (PC), personal digital assistant (PDA), or other terminal device. The terminal can also include a client, which can be an application client, a browser client carrying control programs, or an instant messaging client. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0032] This invention provides a data processing method, apparatus, computer device, and computer-readable storage medium. The data processing method can be used with a terminal, such as a smartphone, tablet computer, laptop computer, or personal computer. The following provides a detailed description of the data processing method, apparatus, computer device, and computer-readable storage medium. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0033] Please see Figure 1 , Figure 1 This is a flowchart illustrating a data processing method provided in an embodiment of this application. The specific process can be summarized in steps 101 to 106 as follows:

[0034] 101. Obtain the current target type environment parameters, runtime environment parameters, and packaged dependent components, wherein the target type environment parameters include test environment parameters and / or production environment parameters.

[0035] To ensure consistency between the test environment data package and the development environment data package in the deployment environment, the step "obtaining the current target type environment parameters, runtime environment parameters, and packaging dependency components" can include the following methods:

[0036] Obtain the runtime environment parameters in the target development environment, as well as the current test environment parameters and the current production environment parameters in the target development environment.

[0037] The test environment parameters refer to the parameters required for subsequent test environment deployment. The test environment is a configuration copied from the production environment, essentially a clone of the development environment. The test environment serves as an intermediate stage in the transition from development to production. After software development is complete, the development environment is close to but not fully perfect; the test environment is the final stage for perfecting the development environment. Its main purpose is to test for various problems existing in the development environment. The production environment parameters, on the other hand, refer to the environment that will be officially provided to users.

[0038] 102. Using the packaging dependency component, the target type environment parameters and the runtime environment parameters are packaged to obtain a data package to be stored.

[0039] In one specific embodiment, to ensure consistency between the test environment data package and the development environment data package of the deployment environment, thereby improving the efficiency of environment deployment, the step "using the packaging dependency component to package the target type environment parameters and the runtime environment parameters to obtain the data package to be stored" may include:

[0040] The packaging dependency component is used to package the current test environment parameters and the runtime environment parameters to obtain a test data package, wherein the test data package includes the current test environment parameters, the runtime environment parameters, and the component parameters corresponding to the packaging dependency component;

[0041] The packaging dependency component is used to package the current production environment parameters and the runtime environment parameters to obtain a production data package. The test data package and the production data package are used as data packages to be stored. The production data package includes the current production environment parameters, the runtime environment parameters, and the component parameters corresponding to the packaging dependency component.

[0042] It is understandable that software developers use the same development and runtime environment and the same packaging dependencies when packaging test environment parameters and production environment parameters respectively, so as to ensure that the test data package and the production data package are used in the same environment.

[0043] Packaging refers to combining the executable files developed by software developers and necessary documentation (such as user manuals) into a software package or data package using packaging tools (such as InstallShield). In other words, it organizes the software application and its dependent components together for easy distribution to the target system. Packaging is typically used to create reusable software that requires no source code, dependency handling, or compilation on the target system; the packaged software is simply installed. Packaged dependencies may include the packaging software itself, or a combination of packaging software and resource management tools. Packaging software such as InstallShield, make, grunt, or rake is commonly used. After packaging the target data using packaging software, resource management tools can be used for environment deployment. The packaged software needs a suitable location for version control, deployment, and potential rollback.

[0044] 103. Send the data packet to be stored to the preset resource warehouse so that the preset resource warehouse stores the data packet to be stored.

[0045] The default resource repository can be Artifactory, a repository server software used to build a resource data repository on the intranet. It serves as a public data storage repository for uploading and publishing data, improving the convenience of using public data / code. Artifactory can store software projects developed by various software developers on different application computers. Developers upload their code to the Artifactory server, which then stores it. Artifactory supports all programming languages, metadata retrieval across any dimension, cross-language forward and reverse dependency analysis, and features a deep recursive, multi-active, multi-site disaster recovery enterprise-grade, highly available binary artifact management repository. Test and production data packages built using Artifactory have corresponding version numbers, allowing users to trace their origin later.

[0046] 104. When an environment deployment command is detected, determine the runtime environment variables set in the current runtime environment, and determine the target environment type to be deployed based on the runtime environment variables.

[0047] In this embodiment of the application, when an environment deployment instruction is detected, the runtime environment variables set on the current computer device can be obtained. By judging the runtime environment variables, it can be determined whether a test environment or a production environment needs to be deployed, and then the data package corresponding to the environment can be downloaded from the preset resource repository.

[0048] 105. Generate a data packet retrieval request according to the target environment type, and send the data packet retrieval request to the preset resource warehouse, so that the preset resource warehouse determines the target data packet from multiple data packets to be stored according to the target environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the target environment type.

[0049] In this embodiment, the method of "generating a data packet retrieval request according to the target environment type and sending the data packet retrieval request to the preset resource repository" may include:

[0050] If the target environment type is a test environment type, a data packet retrieval request is generated according to the test environment type, and the data packet retrieval request is sent to the preset resource warehouse, so that the preset resource warehouse determines the test data packet as the target data packet from multiple data packets to be stored according to the test environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the test environment type;

[0051] If the target environment type is a production environment type, a data packet retrieval request is generated according to the production environment type, and the data packet retrieval request is sent to the preset resource warehouse, so that the preset resource warehouse determines the production data packet as the target data packet from multiple data packets to be stored according to the production environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the production environment type.

[0052] 106. Receive and download the target data packet returned by the preset resource repository, and push the target data packet to the server corresponding to the target environment type for environment deployment.

[0053] In one embodiment, after the step of "generating a data packet retrieval request according to the test environment type and sending the data packet retrieval request to the preset resource repository", the method may include:

[0054] Receive and download the test data packet returned by the preset resource repository.

[0055] Furthermore, after the step of "receiving and downloading the test data packet returned by the preset resource repository", the method may include:

[0056] Determine the test server corresponding to the test environment type;

[0057] The test data package is pushed to the test server for test environment deployment.

[0058] In another embodiment, after the step of "generating a data packet retrieval request according to the production environment type and sending the data packet retrieval request to the preset resource repository", the method further includes:

[0059] Receive and download the production data package returned by the preset resource repository.

[0060] Furthermore, after the step of "receiving and downloading the production data package returned by the preset resource repository", the method may include:

[0061] Determine the production server corresponding to the production environment type;

[0062] The production data package is pushed to the production server for production environment deployment.

[0063] Based on the above description, the following examples will further illustrate the data processing method of this application. The application of the data processing method in a specific implementation scenario will be used as an example. The data processing method provided in this application is applied in a data processing system, which includes a first computer device, a preset resource warehouse, a second computer device, and a third computer device. Please refer to [link / reference needed]. Figure 2The specific application scenarios are as follows:

[0064] (1) Software developers can build the environment in a first computer device. The first computer device obtains the runtime environment parameters, packaging dependencies, test environment parameters, and production environment parameters in the current development environment. Then, on the one hand, the packaging dependencies are used to package the current test environment parameters and the current runtime environment parameters to obtain a test data package, wherein the test data package includes the current test environment parameters, the current runtime environment parameters, and the component parameters corresponding to the packaging dependencies; on the other hand, the packaging dependencies are used to package the current production environment parameters and the current runtime environment parameters to obtain a production data package, and the test data package and the production data package are used as data packages to be stored, wherein the production data package includes the current production environment parameters, the current runtime environment parameters, and the component parameters corresponding to the packaging dependencies.

[0065] (2) The first computer device can send test data packets and production data packets to a preset resource warehouse so that the preset resource warehouse can store the test data packets and production data packets. The preset resource warehouse can be an Artifactory.

[0066] (3) When the second computer device detects the environment deployment instruction, it determines the operating environment variables set in the current operating environment on the second computer device. The second computer device determines the target environment type to be deployed based on the operating environment variables. If the target environment type is a test environment type, the second computer device generates a data packet acquisition request based on the test environment type.

[0067] (4) The second computer device sends the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines the test data packet as the target data packet from multiple data packets to be stored according to the test environment type carried in the data packet acquisition request, and returns the target data packet corresponding to the test environment type.

[0068] (5) The preset resource warehouse receives the data packet acquisition request sent by the second computer device. Based on the test environment type carried in the data packet acquisition request, the preset resource warehouse determines the test data packet as the target data packet from multiple data packets to be stored, and returns the target data packet corresponding to the test environment type.

[0069] (6) The second computer device receives and downloads the test data packet returned by the preset resource warehouse, and determines the test environment static resource server corresponding to the test environment type as the third computer device, and pushes the test data packet to the third computer device for test environment deployment.

[0070] (7) The third computer device uses test data packets to complete the deployment of the test environment.

[0071] It should be noted that the first computer device and the second computer device can be the same computer device or two different computer devices.

[0072] Based on the above description, the following examples will further illustrate the data processing method of this application. The application of the data processing method in a specific implementation scenario will be used as an example. The data processing method provided in this application is applied in a data processing system, which includes a first computer device, a preset resource warehouse, a second computer device, and a fourth computer device. Please refer to [link / reference needed]. Figure 3 The specific application scenarios are as follows:

[0073] (1) Software developers can build the environment in a first computer device. The first computer device obtains the runtime environment parameters, packaging dependencies, test environment parameters, and production environment parameters in the current development environment. Then, on the one hand, the packaging dependencies are used to package the current test environment parameters and the current runtime environment parameters to obtain a test data package, wherein the test data package includes the current test environment parameters, the current runtime environment parameters, and the component parameters corresponding to the packaging dependencies; on the other hand, the packaging dependencies are used to package the current production environment parameters and the current runtime environment parameters to obtain a production data package, and the test data package and the production data package are used as data packages to be stored, wherein the production data package includes the current production environment parameters, the current runtime environment parameters, and the component parameters corresponding to the packaging dependencies.

[0074] (2) The first computer device can send test data packets and production data packets to a preset resource warehouse so that the preset resource warehouse can store the test data packets and production data packets. The preset resource warehouse can be an Artifactory.

[0075] (3) When the second computer device detects the environment deployment instruction, it determines the operating environment variables set in the current operating environment on the second computer device. The second computer device determines the target environment type to be deployed based on the operating environment variables. If the target environment type is a production environment type, the second computer device generates a data packet acquisition request based on the production environment type.

[0076] (4) The second computer device sends the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines the production data packet as the target data packet from multiple data packets to be stored according to the production environment type carried in the data packet acquisition request, and returns the target data packet corresponding to the production environment type.

[0077] (5) The preset resource warehouse receives the data packet acquisition request sent by the second computer device. Based on the production environment type carried in the data packet acquisition request, the preset resource warehouse determines the production data packet as the target data packet from multiple data packets to be stored, and returns the target data packet corresponding to the production environment type.

[0078] (6) The second computer device receives and downloads the production data packet returned by the preset resource warehouse, and determines the production static server corresponding to the production environment type as the fourth computer device, and pushes the production data packet to the fourth computer device for production environment deployment.

[0079] (7) The fourth computer device uses production data packets to complete the production environment deployment.

[0080] In summary, this application provides a data processing method that obtains current target type environment parameters, runtime environment parameters, and packaging dependency components, wherein the target type environment parameters include test environment parameters and / or production environment parameters; then, using the packaging dependency components, the target type environment parameters and runtime environment parameters are packaged to obtain a data packet to be stored; next, the data packet to be stored is sent to a preset resource repository so that the preset resource repository stores the data packet; when an environment deployment instruction is detected, the runtime environment variables set in the current runtime environment are determined, and the target environment type to be deployed is determined based on the runtime environment variables; then, a data packet retrieval request is generated based on the target environment type, and the data packet retrieval request is sent to the preset resource repository so that the preset resource repository determines the target data packet from multiple data packets to be stored based on the target environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the target environment type; finally, the target data packet returned by the preset resource repository is received and downloaded, and the target data packet is pushed to the server corresponding to the target environment type for environment deployment. This application embodiment uses the same packaging dependency component to package test environment data and production environment data under the same development environment, and stores the packaged test data package and production data package in the repository server software, thereby quickly completing the construction of data packages. This ensures that the test environment data package and the production environment data package in the deployment environment are consistent with the development environment, eliminating the need for manual inspection of the environment data packages and improving the efficiency of environment deployment.

[0081] To better implement the above methods, the present invention also provides a data processing device, which is specifically integrated into a terminal or server.

[0082] Please refer to 4. Figure 4 This is a schematic diagram of the structure of a data processing apparatus provided in an embodiment of this application. The data processing apparatus includes:

[0083] The acquisition unit 201 is used to acquire the current target type environment parameters, runtime environment parameters, and packaging dependency components, wherein the target type environment parameters include test environment parameters and / or production environment parameters;

[0084] Packaging unit 202 is used to package the target type environment parameters and the runtime environment parameters using the packaging dependency component to obtain a data packet to be stored;

[0085] Sending unit 203 is used to send the data packet to be stored to a preset resource warehouse, so that the preset resource warehouse stores the data packet to be stored;

[0086] The determining unit 204 is used to determine the runtime environment variables set in the current runtime environment when an environment deployment instruction is detected, and to determine the target environment type to be deployed based on the runtime environment variables;

[0087] The generation unit 205 is configured to generate a data packet acquisition request according to the target environment type and send the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines the target data packet from multiple data packets to be stored according to the target environment type carried in the data packet acquisition request, and returns the target data packet corresponding to the target environment type;

[0088] The receiving unit 206 is used to receive and download the target data packet returned by the preset resource repository, and push the target data packet to the server corresponding to the target environment type for environment deployment.

[0089] In some embodiments, the data processing apparatus includes:

[0090] The acquisition subunit is used to acquire the runtime environment parameters in the target development environment, as well as the current test environment parameters and the current production environment parameters in the target development environment.

[0091] In some embodiments, the data processing apparatus includes:

[0092] The processing subunit is used to package the current test environment parameters and the runtime environment parameters using the packaging dependency component to obtain a test data package, wherein the test data package includes the current test environment parameters, the runtime environment parameters, and the component parameters corresponding to the packaging dependency component;

[0093] The processing subunit is further configured to use the packaging dependency component to package the current production environment parameters and the runtime environment parameters to obtain a production data packet, and to use the test data packet and the production data packet as a data packet to be stored, wherein the production data packet includes the current production environment parameters, the runtime environment parameters, and the component parameters corresponding to the packaging dependency component.

[0094] In some embodiments, the data processing apparatus includes:

[0095] A generation subunit is configured to, if the target environment type is a test environment type, generate a data packet retrieval request according to the test environment type, and send the data packet retrieval request to the preset resource warehouse, so that the preset resource warehouse determines the test data packet as the target data packet from multiple data packets to be stored according to the test environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the test environment type;

[0096] The generation subunit is further configured to, if the target environment type is a production environment type, generate a data packet acquisition request based on the production environment type and send the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines the production data packet as the target data packet from multiple data packets to be stored based on the production environment type carried in the data packet acquisition request, and returns the target data packet corresponding to the production environment type.

[0097] In some embodiments, the data processing apparatus includes:

[0098] The first receiving subunit is used to receive and download the test data packet returned by the preset resource repository.

[0099] In some embodiments, the data processing apparatus includes:

[0100] The first determining subunit is used to determine the test server corresponding to the test environment type;

[0101] The first push subunit is used to push the test data packet to the test server for test environment deployment.

[0102] In some embodiments, the data processing apparatus includes:

[0103] The second receiving subunit is used to receive and download the production data packet returned by the preset resource warehouse.

[0104] In some embodiments, the data processing apparatus includes:

[0105] The second determining subunit is used to determine the production server corresponding to the production environment type;

[0106] The second push subunit is used to push the production data packet to the production server for production environment deployment.

[0107] This application provides a data processing apparatus. An acquisition unit 201 acquires current target type environment parameters, runtime environment parameters, and packaging dependencies. The target type environment parameters include test environment parameters and / or production environment parameters. A packaging unit 202 uses the packaging dependencies to package the target type environment parameters and runtime environment parameters to obtain a data packet to be stored. A sending unit 203 sends the data packet to be stored to a preset resource repository, so that the preset resource repository stores the data packet. A determining unit 204, upon detecting an environment deployment instruction, determines the runtime environment variables set in the current runtime environment and determines the target environment type to be deployed based on the runtime environment variables. A generating unit 205 generates a data packet acquisition request based on the target environment type and sends the data packet acquisition request to the preset resource repository, so that the preset resource repository determines the target data packet from multiple data packets to be stored based on the target environment type carried in the data packet acquisition request and returns the target data packet corresponding to the target environment type. A receiving unit 206 receives and downloads the target data packet returned by the preset resource repository and pushes the target data packet to the server corresponding to the target environment type for environment deployment. This application embodiment uses the same packaging dependency component to package test environment data and production environment data under the same development environment, and stores the packaged test data package and production data package in the repository server software, thereby quickly completing the construction of data packages. This ensures that the test environment data package and the production environment data package in the deployment environment are consistent with the development environment, eliminating the need for manual inspection of the environment data packages and improving the efficiency of environment deployment.

[0108] Furthermore, embodiments of the present invention also provide a computer device, which may be a terminal or a server, such as... Figure 5 As shown, it illustrates a structural schematic diagram of a computer device involved in an embodiment of the present invention, specifically:

[0109] The computer device may include components such as a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, a power supply 303, and an input unit 304. Those skilled in the art will understand that... Figure 5 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0110] The processor 301 is the control center of the computer device. It connects various parts of the computer device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 302, and by calling data stored in the memory 302, thereby providing overall monitoring of the computer device. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 301.

[0111] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.

[0112] The computer device also includes a power supply 303 that supplies power to the various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 303 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0113] The computer device may also include an input unit 304, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0114] Although not shown, the computer device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the computer device loads the executable files corresponding to the processes of one or more applications into the memory 302 according to the following instructions, and the processor 301 runs the applications stored in the memory 302 to realize various functions, as follows:

[0115] Obtain the current target type environment parameters, runtime environment parameters, and packaged dependent components, wherein the target type environment parameters include test environment parameters and / or production environment parameters;

[0116] The packaging dependency component is used to package the target type environment parameters and the runtime environment parameters to obtain a data package to be stored;

[0117] The data packet to be stored is sent to a preset resource repository so that the preset resource repository stores the data packet to be stored.

[0118] When an environment deployment command is detected, the runtime environment variables set in the current runtime environment are determined, and the target environment type to be deployed is determined based on the runtime environment variables.

[0119] A data packet retrieval request is generated based on the target environment type, and the data packet retrieval request is sent to the preset resource warehouse, so that the preset resource warehouse determines the target data packet from multiple data packets to be stored based on the target environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the target environment type;

[0120] Receive and download the target data packet returned by the preset resource repository, and push the target data packet to the server corresponding to the target environment type for environment deployment.

[0121] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0122] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0123] To this end, embodiments of the present invention also provide a computer-readable storage medium storing a plurality of instructions which can be loaded by a processor to execute the methods provided in various optional implementations of the embodiments of the present invention.

[0124] According to one aspect of this application, a computer program product or computer program is also provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations of the above embodiments.

[0125] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0126] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0127] Since the computer program stored in the storage medium can execute the steps of any of the data processing methods provided in the embodiments of this application, the beneficial effects that any of the data processing methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0128] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0129] The data processing method, apparatus, computer device, and storage medium provided by the embodiments of the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A data processing method, characterized in that, include: Obtain the current target type environment parameters, runtime environment parameters, and packaged dependent components, wherein the target type environment parameters include test environment parameters and / or production environment parameters; The packaging dependency component is used to package the target type environment parameters and the runtime environment parameters to obtain a data package to be stored; The data packet to be stored is sent to a preset resource repository so that the preset resource repository stores the data packet to be stored. When an environment deployment command is detected, the runtime environment variables set in the current runtime environment are determined, and the target environment type to be deployed is determined based on the runtime environment variables. A data packet retrieval request is generated based on the target environment type, and the data packet retrieval request is sent to the preset resource warehouse, so that the preset resource warehouse determines the target data packet from multiple data packets to be stored based on the target environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the target environment type; Receive and download the target data packet returned by the preset resource repository, and push the target data packet to the server corresponding to the target environment type for environment deployment; The step of generating a data packet retrieval request based on the target environment type and sending the data packet retrieval request to the preset resource repository includes: If the target environment type is a test environment type, a data packet retrieval request is generated according to the test environment type, and the data packet retrieval request is sent to the preset resource warehouse, so that the preset resource warehouse determines the test data packet as the target data packet from multiple data packets to be stored according to the test environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the test environment type; If the target environment type is a production environment type, a data packet retrieval request is generated according to the production environment type, and the data packet retrieval request is sent to the preset resource warehouse, so that the preset resource warehouse determines the production data packet as the target data packet from multiple data packets to be stored according to the production environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the production environment type.

2. The data processing method according to claim 1, characterized in that, The process of obtaining the current target type environment parameters, runtime environment parameters, and packaged dependency components includes: Obtain the runtime environment parameters in the target development environment, as well as the current test environment parameters and current production environment parameters in the target development environment; The step of using the packaging dependency component to package the target type environment parameters and the runtime environment parameters to obtain a data package to be stored includes: The packaging dependency component is used to package the current test environment parameters and the runtime environment parameters to obtain a test data package, wherein the test data package includes the current test environment parameters, the runtime environment parameters, and the component parameters corresponding to the packaging dependency component; The packaging dependency component is used to package the current production environment parameters and the runtime environment parameters to obtain a production data package. The test data package and the production data package are used as data packages to be stored. The production data package includes the current production environment parameters, the runtime environment parameters, and the component parameters corresponding to the packaging dependency component.

3. The data processing method according to claim 1, characterized in that, After generating a data packet retrieval request based on the test environment type and sending the data packet retrieval request to the preset resource repository, the process further includes: Receive and download the test data packet returned by the preset resource repository.

4. The data processing method according to claim 3, characterized in that, After receiving and downloading the test data packet returned by the preset resource repository, the process further includes: Determine the test server corresponding to the test environment type; The test data package is pushed to the test server for test environment deployment.

5. The data processing method according to claim 1, characterized in that, After generating a data packet retrieval request based on the production environment type and sending the data packet retrieval request to the preset resource repository, the process further includes: Receive and download the production data package returned by the preset resource repository.

6. The data processing method according to claim 5, characterized in that, After receiving and downloading the production data packet returned by the preset resource repository, the process further includes: Determine the production server corresponding to the production environment type; The production data package is pushed to the production server for production environment deployment.

7. A data processing apparatus, characterized in that, include: The acquisition unit is used to acquire the current target type environment parameters, runtime environment parameters, and packaging dependency components, wherein the target type environment parameters include test environment parameters and / or production environment parameters; The packaging unit is used to package the target type environment parameters and the runtime environment parameters using the packaging dependency component to obtain a data package to be stored. A sending unit is configured to send the data packet to be stored to a preset resource warehouse, so that the preset resource warehouse stores the data packet to be stored; The determining unit is used to determine the runtime environment variables set in the current runtime environment when an environment deployment instruction is detected, and to determine the target environment type to be deployed based on the runtime environment variables; The generation unit is configured to generate a data packet retrieval request according to the target environment type and send the data packet retrieval request to the preset resource warehouse, so that the preset resource warehouse determines the target data packet from multiple data packets to be stored according to the target environment type carried in the data packet retrieval request and returns the target data packet corresponding to the target environment type; The receiving unit is used to receive and download the target data packet returned by the preset resource repository, and push the target data packet to the server corresponding to the target environment type for environment deployment; A generation subunit is configured to, if the target environment type is a test environment type, generate a data packet retrieval request according to the test environment type, and send the data packet retrieval request to the preset resource warehouse, so that the preset resource warehouse determines the test data packet as the target data packet from multiple data packets to be stored according to the test environment type carried in the data packet retrieval request, and returns the target data packet corresponding to the test environment type; The generation subunit is further configured to, if the target environment type is a production environment type, generate a data packet acquisition request based on the production environment type and send the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines the production data packet as the target data packet from multiple data packets to be stored based on the production environment type carried in the data packet acquisition request, and returns the target data packet corresponding to the production environment type.

8. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the data processing method as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When a computer program is run on a computer, it causes the computer to perform the steps of the data processing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Test resource access method and device, electronic equipment and storage medium

    CN114070883A

  • Environment deployment method and device, electronic equipment and storage medium

    CN114356497A