CN115756502B - Data processing methods, apparatus, computer equipment and computer-readable storage media - Google Patents

Data processing methods, apparatus, computer equipment and computer-readable storage media

Info

Publication number
CN115756502B
CN115756502B CN202211426201.9A CN202211426201A CN115756502B CN 115756502 B CN115756502 B CN 115756502B CN 202211426201 A CN202211426201 A CN 202211426201A CN 115756502 B CN115756502 B CN 115756502B
Authority
CN
China
Prior art keywords
environment
data packet
target
type
preset resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211426201.9A
Other languages
Chinese (zh)
Other versions
CN115756502A (en
Inventor
沈庆玲
万齐帅
梁成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202211426201.9A priority Critical patent/CN115756502B/en
Publication of CN115756502A publication Critical patent/CN115756502A/en
Application granted granted Critical
Publication of CN115756502B publication Critical patent/CN115756502B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例公开了一种数据处理方法、装置、计算机设备及计算机可读存储介质,包括:获取当下的目标类型环境参数、运行环境参数以及打包依赖组件;采用打包依赖组件对目标类型环境参数和运行环境参数打包得到待存储数据包;向预设资源仓库发送待存储数据包;当检测到环境部署指令时确定当前运行环境下设置的运行环境变量以确定需要部署的目标环境类型;根据目标环境类型生成数据包获取请求并向预设资源仓库发送;接收并下载预设资源仓库返回的目标数据包并推送至目标环境类型对应的服务器进行环境部署;本申请实施例使部署环境的测试环境数据包和生产环境数据包的开发环境保持一致,无需要人工对环境数据包进行检查,提高了环境部署的效率。

This application discloses a data processing method, apparatus, computer device, and computer-readable storage medium, including: acquiring current target type environment parameters, runtime environment parameters, and packaging dependency components; using the packaging dependency components to package the target type environment parameters and runtime environment parameters to obtain a data packet to be stored; sending the data packet to be stored to a preset resource repository; when an environment deployment instruction is detected, determining the runtime environment variables set in the current runtime environment to determine the target environment type to be deployed; generating a data packet acquisition request based on the target environment type and sending it to the preset resource repository; receiving and downloading the target data packet returned by the preset resource repository and pushing it to the server corresponding to the target environment type for environment deployment; this application embodiment ensures that the test environment data packet and the production environment data packet of the deployment environment are consistent with the development environment, eliminating the need for manual inspection of the environment data packet and improving the efficiency of environment deployment.

Description

Data processing method, device, computer equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method, a data processing device, a computer device, and a computer readable storage medium.
Background
With the development of banking self-service, the types of service which can be handled by clients are more and more, and with the development of technology, clients can use mobile phones or computers to process the service on a banking financial platform. In order to ensure that clients can conduct business transaction normally on a banking financial platform, developers of the banking financial platform are required to conduct platform framework and platform maintenance so as to ensure that various business functions of application software of the banking financial platform can operate normally and efficiently.
At present, different running environments are required to be deployed according to different requirements in the development process of a service system, for example, when the service system is being developed, the development environment is required to be deployed at the working position of the service system, when the service system reaches the final stage of perfecting the development environment, a test environment is required to be deployed at the working position of the service system, when the service system formally serves outside, a production environment is required to be deployed at the working position of the service system, and the different running environments are deployed for different application scenes in the prior art, so that the architecture and maintenance of a platform are realized. However, in the existing operation environment deployment, when the environment data packet is constructed, data is generally packaged in a local packaging or online packaging mode when the production environment is deployed, so that the development environments of the test environment data packet and the production environment data packet of the deployment environment are different, and the environment data packet needs to be checked manually, so that the environment deployment efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device, computer equipment and a computer readable storage medium, which are used for packaging test environment data and production environment data in the same development environment by using the same packaging dependent component, and storing the packaged test data package and production data package into warehouse server software, so that the construction of the data package is completed rapidly, the development environments of the test environment data package and the production environment data package of a deployment environment are kept consistent, the environment data package is not required to be checked manually, and the efficiency of environment deployment is improved.
The embodiment of the invention provides a data processing method, which comprises the following steps:
Acquiring current target type environment parameters, running environment parameters and packaging dependent components, wherein the target type environment parameters comprise test environment parameters and/or production environment parameters;
Packaging the target type environment parameters and the running environment parameters by adopting the packaging dependent component to obtain a data packet to be stored;
The data packet to be stored is sent to a preset resource warehouse, so that the preset resource warehouse stores the data packet to be stored;
when an environment deployment instruction is detected, determining an operating environment variable set in the current operating environment, and determining a target environment type to be deployed according to the operating environment variable;
generating a data packet acquisition request according to the target environment type, and sending the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines a target data packet from a plurality of data packets to be stored according to the target environment type carried by the data packet acquisition request, and returns a target data packet corresponding to the target environment type;
and receiving and downloading the target data packet returned by the preset resource warehouse, and pushing the target data packet to a server corresponding to the target environment type for environment deployment.
Correspondingly, the embodiment of the invention also provides a data processing device, which comprises:
The system comprises an acquisition unit, a packaging and dependency component and a packaging unit, wherein the acquisition unit is used for acquiring the current target type environment parameters, the running environment parameters and the packaging and dependency component, and the target type environment parameters comprise test environment parameters and/or production environment parameters;
The packaging unit is used for packaging the target type environment parameters and the running environment parameters by adopting the packaging dependent component to obtain a data packet to be stored;
the sending unit is used for sending 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 system comprises a determining unit, a control unit and a control unit, wherein the determining unit is used for determining an operation environment variable set in the current operation environment when an environment deployment instruction is detected, and determining a target environment type to be deployed according to the operation environment variable;
The generation unit is used for generating a data packet acquisition request according to the target environment type, sending the data packet acquisition request to the preset resource warehouse, enabling the preset resource warehouse to determine a target data packet from a plurality of data packets to be stored according to the target environment type carried by the data packet acquisition request, and returning to a target data packet corresponding to the target environment type;
The receiving unit is used for receiving and downloading the target data packet returned by the preset resource warehouse, pushing the target data packet to a server corresponding to the target environment type for environment deployment.
In some embodiments of the present invention, a computer device may also be provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method as described above when executing the computer program.
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 as described above.
The method and the device for the target data deployment of the server can be used for obtaining the current target type environment parameters, the running environment parameters and the packaging dependent components, wherein the target type environment parameters comprise test environment parameters and/or production environment parameters, the packaging dependent components are used for packaging the target type environment parameters and the running environment parameters to obtain the data packet to be stored, the data packet to be stored is sent to a preset resource warehouse to enable the preset resource warehouse to store the data packet to be stored, when an environment deployment instruction is detected, the running environment variables set in the current running environment are determined, the target environment type to be deployed is determined according to the running environment variables, then a data packet acquisition request is generated according to the target environment type, the data packet acquisition request is sent to the preset resource warehouse to enable the preset resource warehouse to determine a target data packet from a plurality of data packets to be stored according to the target environment type carried by the data packet acquisition request, the target data packet corresponding to the target environment type is returned, and finally the target data packet of the preset resource warehouse is received and downloaded, and the target data packet of the preset resource warehouse is returned to the target data packet corresponding to the target environment type to be deployed by the server. According to the embodiment of the application, the same packaging dependent component is used for packaging the test environment data and the production environment data under the same development environment, and the packaged test data packet and production data packet are stored in the warehouse server software, so that the construction of the data packet is completed rapidly, the development environments of the test environment data packet and the production environment data packet of the deployment environment are kept consistent, the environment data packet is not required to be checked manually, and the efficiency of environment deployment is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
Fig. 2 is a schematic diagram of an application scenario of a data processing method according to an embodiment of the present invention;
Fig. 3 is a schematic diagram of another application scenario of the data processing method according to the embodiment of the present invention;
FIG. 4 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
In the prior art, when the running environment is deployed, the construction mode of the environment data packet generally comprises the following cases. In the first case, the user manually performs local packaging, and the packaging mode mainly depends on the local development environment, and packaging construction is performed on the local development computer, but because each development environment for development is possibly inconsistent, for example, the code is inconsistent, the node version is inconsistent, and the node_ modues package is inconsistent, the constructed test package cannot be effectively controlled, and the environment data package needs to be checked manually, so that the environment deployment efficiency is low. In the second case, online packaging is performed when the production environment is deployed, the packaging mode mainly performs online construction of the data packet at the same time when the production environment is released, an online server is needed, and because the environment construction and the test environment construction are generated in the construction process and are not under the same environment (server), the environment data packet is also needed to be checked manually, so that the environment deployment efficiency is low, and a large number of test packet construction processes are performed on the server in the same time period, network congestion is caused, and the system abnormality occurs.
In order to solve the problems, the embodiment of the application provides a data processing method, a device, computer equipment and a computer readable storage medium, which can be used for obtaining current target type environment parameters, running environment parameters and packaging dependent components, wherein the target type environment parameters comprise test environment parameters and/or production environment parameters, then packaging the target type environment parameters and the running environment parameters by adopting the packaging dependent components to obtain a data packet to be stored, then sending the data packet to be stored to a preset resource warehouse to enable the preset resource warehouse to store the data packet to be stored, determining running environment variables set in the current running environment when an environment deployment instruction is detected, determining a target environment type to be deployed according to the running environment variables, then generating a data packet acquisition request according to the target environment type, sending the data packet acquisition request to the preset resource warehouse to enable the preset resource warehouse to determine a target data packet from a plurality of data packets to be stored according to the target environment type carried by the data packet acquisition request, returning the target resource warehouse to the corresponding target environment type, and finally returning the target data packet to the preset resource warehouse to the target environment type to be deployed, and finally pushing the target data packet to the target resource warehouse. According to the embodiment of the application, the same packaging dependent component is used for packaging the test environment data and the production environment data under the same development environment, and the packaged test data packet and production data packet are stored in the warehouse server software, so that the construction of the data packet is completed rapidly, the development environments of the test environment data packet and the production environment data packet of the deployment environment are kept consistent, the environment data packet is not required to be checked manually, and the efficiency of environment deployment is improved.
The embodiment of the application provides a data processing method, a data processing device, computer equipment and a computer readable storage medium. Specifically, the data processing method of the embodiment of the present application may be performed by a computer device, where the computer device may be a terminal or a server. The terminal may be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a Personal computer (PC, personal Computer), a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), and the like, and the terminal may further include a client, where the client may be an application client, a browser client carrying a control program, or an instant messaging client, and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms.
The embodiment of the invention provides a data processing method, a data processing device, computer equipment and a computer readable storage medium, the data processing method can be used together with a terminal, such as a smart phone, a tablet personal computer, a notebook computer or a personal computer. The data processing method, apparatus, computer device, and computer-readable storage medium are described in detail below. The following description of the embodiments is not intended to limit the preferred embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present application, and a specific flow may be as follows:
101, acquiring current target type environment parameters, running environment parameters and packaging dependent components, wherein the target type environment parameters comprise test environment parameters and/or production environment parameters.
In order to keep the test environment data package of the deployment environment and the development environment of the production environment data package consistent, the step of acquiring the current target type environment parameter, the running environment parameter and the package dependent component may include:
and acquiring the running environment parameters under the target development environment, and the current testing environment parameters and the current production environment parameters under the target development environment.
The test environment parameters refer to parameters required to be used for subsequent test environment deployment. The test environment refers to the configuration obtained by copying the production environment, namely the configuration cloned from the development environment, and is used for constructing an intermediate stage for transferring the development environment to the production environment, because after the software development is completed, the development environment is close to but not completely perfected, the test environment is the final stage for perfecting the development environment, and the function of the test environment is mainly used for testing various problems existing in the development environment. The production environment parameters refer to the environment of the subsequent formal external service, namely the environment provided for the user to use for the user.
102, Packaging the target type environment parameters and the running environment parameters by adopting the packaging dependent component to obtain a data packet to be stored.
In a specific embodiment, in order to keep the development environments of the test environment data packet and the production environment data packet of the deployment environment consistent, and improve the efficiency of environmental deployment, the step of adopting the packaging dependent component to package the target type environment parameter and the operation environment parameter to obtain the data packet to be stored may include:
Adopting the packaging dependent component to package the current test environment parameters and the running environment parameters to obtain a test data packet, wherein the test data packet comprises the current test environment parameters, the running environment parameters and component parameters corresponding to the packaging dependent component;
and adopting the packaging dependent component to carry out packaging treatment on the current production environment parameter and the running environment parameter to obtain a production data packet, and taking the test data packet and the production data packet as data packets to be stored, wherein the production data packet comprises the current production environment parameter, the running environment parameter and the component parameter corresponding to the packaging dependent component.
It can be understood that in the process of respectively packaging the test environment parameters and the production environment parameters, the software developer adopts the same development and operation environment and uses the same packaging dependent components, so that the use environments of the test data packet and the production data packet can be ensured to be consistent.
Packaging refers to the creation of a software package or data package using packaging tools (e.g., INSTALLSHIELD) from executable files and necessary documents (e.g., instructions for the software) developed by a software developer, i.e., organizing the software application and its dependent components together for distribution to a target system. Packaging is typically used to make reusable software, and on the target system to be deployed, source code is not required, dependencies are not required to be handled, compilation is not required, and the packaged software is only required to be installed on the target system. The packaging dependent components may include packaging software, as well as packaging software and resource management tools, and may be packaged using packaging software INSTALLSHIELD, MAKE, GRUNT or rake. After the target data is packaged by using the packaging software, in the subsequent deployment process, a resource management tool can be adopted to perform environment deployment. The packaged software needs to be placed in a proper place to facilitate version management, deployment and possible rollback.
And 103, sending 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 preset resource warehouse can be Artifactory, artifactory is warehouse server software, and can be used for building a resource data warehouse on an intranet, and uploading and publishing data as a data storage public warehouse so as to improve the convenience of public data/codes in use. Artifactory can be used for storing software projects developed by each software developer on different application computers, the software developers upload developed codes to a Artifactory server, and Artifactory stores the developed codes. Artifactory supports metadata retrieval of all development languages and forward and backward dependency analysis across languages in any dimension, and simultaneously has deep recursion, supports enterprise-level and high-availability binary product management warehouse of multi-activity remote disaster recovery. The test data packet and the production data packet constructed by Artifactory have corresponding version numbers, so that the source can be traced later for a user.
104, When an environment deployment instruction is detected, determining an operating environment variable set in the current operating environment, and determining a target environment type to be deployed according to the operating environment variable.
In the embodiment of the application, when the environment deployment instruction is detected, the running environment variable set on the current computer equipment can be obtained, and whether the test environment or the production environment is required to be deployed currently is judged by judging the running environment variable, so that the data packet corresponding to the environment is downloaded in the preset resource warehouse.
And 105, generating a data packet acquisition request according to the target environment type, and sending the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines a target data packet from a plurality of data packets to be stored according to the target environment type carried by the data packet acquisition request, and returns to the target data packet corresponding to the target environment type.
In this embodiment, the step of generating a packet acquisition request according to the target environment type and sending the packet acquisition request to the preset resource repository may include:
If the target environment type is a test environment type, generating a data packet acquisition request according to the test environment type, and sending the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines a test data packet from a plurality of data packets to be stored as a target data packet according to the test environment type carried by the data packet acquisition request, and returns the target data packet corresponding to the test environment type;
If the target environment type is a production environment type, generating a data packet acquisition request according to the production environment type, and sending the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines a production data packet from a plurality of data packets to be stored as a target data packet according to the production environment type carried by the data packet acquisition request, and returns the target data packet corresponding to the production environment type.
106, Receiving and downloading the target data packet returned by the preset resource warehouse, and pushing the target data packet to a server corresponding to the target environment type for environment deployment.
In one embodiment, after generating a packet acquisition request according to the test environment type and sending the packet acquisition request to the preset resource repository, the method may include:
and receiving and downloading the test data packet returned by the preset resource warehouse.
Further, after the step of receiving and downloading the test data packet returned by the preset resource repository, the method may include:
Determining a test server corresponding to the test environment type;
and pushing the test data packet to the test server for deployment of a test environment.
In another embodiment, after generating the packet acquisition request according to the production environment type and sending the packet acquisition request to the preset resource repository, the method further includes:
and receiving and downloading the production data packet returned by the preset resource warehouse.
Further, after the step of receiving and downloading the production data packet returned by the preset resource repository, the method may include:
determining a production server corresponding to the production environment type;
Pushing the production data packet to the production server for production environment deployment.
In accordance with the above description, the data processing method of the present application will be further described by way of example. In the following, an application of the data processing method in a specific implementation scenario will be described as an example, where the data processing method provided by the present application is applied to a data processing system, and the data processing system includes a first computer device, a preset resource repository, a second computer device, and a third computer device, and referring to fig. 2, a specific application scenario is as follows:
(1) The software developer may make an environment build in the first computer device. The first computer device obtains the operating environment parameters, package dependent components, and test environment parameters and production environment parameters in the current development environment. And then, on one hand, adopting the packaging dependent component to carry out packaging treatment on the current test environment parameter and the current operation environment parameter to obtain a test data packet, wherein the test data packet comprises the current test environment parameter, the current operation environment parameter and the component parameter corresponding to the packaging dependent component, and on the other hand, adopting the packaging dependent component to carry out packaging treatment on the current production environment parameter and the current operation environment parameter to obtain a production data packet, and taking the test data packet and the production data packet as data packets to be stored, wherein the production data packet comprises the current production environment parameter, the current operation environment parameter and the component parameter corresponding to the packaging dependent component.
(2) The first computer device may send the test data packet and the production data packet to a preset resource repository, so that the preset resource repository stores the test data packet and the production data packet, where the preset resource repository may be Artifactory.
(3) When the second computer equipment detects an environment deployment instruction, determining an operation environment variable set in the current operation environment on the second computer equipment, determining a target environment type to be deployed by the second computer equipment according to the operation environment variable, and generating a data packet acquisition request by the second computer equipment according to the test environment type if the target environment type is the test environment type.
(4) And the second computer equipment sends the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines a test data packet from a plurality of data packets to be stored as a target data packet according to the test environment type carried by the data packet acquisition request, and returns the target data packet corresponding to the test environment type.
(5) And the preset resource warehouse receives a data packet acquisition request sent by the second computer equipment, determines a test data packet from a plurality of data packets to be stored as a target data packet according to the test environment type carried by the data packet acquisition request, and returns the target data packet corresponding to the test environment type.
(6) And the second computer equipment receives and downloads the test data packet returned by the preset resource warehouse, determines a test environment static resource server corresponding to the test environment type as third computer equipment, and pushes the test data packet to the third computer equipment for test environment deployment.
(7) The third computer device completes the deployment of the test environment by adopting the test data packet.
It should be noted that the first computer device and the second computer device may be the same computer device or may be two different computer devices.
In accordance with the above description, the data processing method of the present application will be further described by way of example. In the following, an application of the data processing method in a specific implementation scenario will be described as an example, where the data processing method provided by the present application is applied to a data processing system, and the data processing system includes a first computer device, a preset resource repository, a second computer device, and a fourth computer device, and referring to fig. 3, a specific application scenario is as follows:
(1) The software developer may make an environment build in the first computer device. The first computer device obtains the operating environment parameters, package dependent components, and test environment parameters and production environment parameters in the current development environment. And then, on one hand, adopting the packaging dependent component to carry out packaging treatment on the current test environment parameter and the current operation environment parameter to obtain a test data packet, wherein the test data packet comprises the current test environment parameter, the current operation environment parameter and the component parameter corresponding to the packaging dependent component, and on the other hand, adopting the packaging dependent component to carry out packaging treatment on the current production environment parameter and the current operation environment parameter to obtain a production data packet, and taking the test data packet and the production data packet as data packets to be stored, wherein the production data packet comprises the current production environment parameter, the current operation environment parameter and the component parameter corresponding to the packaging dependent component.
(2) The first computer device may send the test data packet and the production data packet to a preset resource repository, so that the preset resource repository stores the test data packet and the production data packet, where the preset resource repository may be Artifactory.
(3) When the second computer equipment detects an environment deployment instruction, determining an operation environment variable set in the current operation environment on the second computer equipment, determining a target environment type to be deployed by the second computer equipment according to the operation environment variable, and generating a data packet acquisition request by the second computer equipment according to the production environment type if the target environment type is the production environment type.
(4) And the second computer equipment sends the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines a production data packet from a plurality of data packets to be stored as a target data packet according to the production environment type carried by the data packet acquisition request, and returns the target data packet corresponding to the production environment type.
(5) And the preset resource warehouse receives a data packet acquisition request sent by the second computer equipment, determines a production data packet from a plurality of data packets to be stored as a target data packet according to the production environment type carried by the data packet acquisition request, and returns the target data packet corresponding to the production environment type.
(6) And the second computer equipment receives and downloads the production data packet returned by the preset resource warehouse, determines a production static server corresponding to the production environment type as fourth computer equipment, and pushes the production data packet to the fourth computer equipment for production environment deployment.
(7) The fourth computer device employs the production data package to complete the deployment of the production environment.
In summary, the embodiment of the application provides a data processing method, which comprises the steps of obtaining current target type environment parameters, running environment parameters and packaging dependent components, wherein the target type environment parameters comprise test environment parameters and/or production environment parameters, packaging the target type environment parameters and the running environment parameters by adopting the packaging dependent components to obtain a data packet to be stored, sending the data packet to be stored to a preset resource warehouse to enable the preset resource warehouse to store the data packet to be stored, determining running environment variables set in the current running environment when an environment deployment instruction is detected, determining a target environment type to be deployed according to the running environment variables, generating a data packet acquisition request according to the target environment type, sending the data packet acquisition request to the preset resource warehouse, enabling the preset resource warehouse to determine a target data packet from a plurality of data packets to be stored according to the target environment type carried by the data packet acquisition request, returning the target data packet corresponding to the target environment type, finally receiving and downloading the target data packet to the preset resource warehouse to be pushed to the target environment type, and pushing the target data packet to the target resource warehouse to the target environment type. According to the embodiment of the application, the same packaging dependent component is used for packaging the test environment data and the production environment data under the same development environment, and the packaged test data packet and production data packet are stored in the warehouse server software, so that the construction of the data packet is completed rapidly, the development environments of the test environment data packet and the production environment data packet of the deployment environment are kept consistent, the environment data packet is not required to be checked manually, and the efficiency of environment deployment is improved.
In order to better implement the above method, correspondingly, the embodiment of the invention also provides a data processing device, which is specifically integrated in the terminal or the server.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application, where the data processing apparatus includes:
An obtaining unit 201, configured to obtain a current target type environment parameter, an operating environment parameter, and a packaging dependent component, where the target type environment parameter includes a test environment parameter and/or a production environment parameter;
A packaging unit 202, configured to package the target type environment parameter and the operation environment parameter by using the packaging dependency component to obtain a data packet to be stored;
A sending unit 203, configured to send the data packet to be stored to a preset resource repository, so that the preset resource repository stores the data packet to be stored;
A determining unit 204, configured to determine an operating environment variable set in a current operating environment when an environment deployment instruction is detected, and determine a target environment type to be deployed according to the operating environment variable;
a generating unit 205, 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 repository, so that the preset resource repository determines a target data packet from a plurality of data packets to be stored according to the target environment type carried by the data packet acquisition request, and returns a target data packet corresponding to the target environment type;
And the receiving unit 206 is configured to receive and download the target data packet returned by the preset resource repository, and push the target data packet to a server corresponding to the target environment type for environment deployment.
In some embodiments, the data processing apparatus comprises:
and the acquisition subunit is used for acquiring the running environment parameters in the target development environment, and the current test environment parameters and the current production environment parameters in the target development environment.
In some embodiments, the data processing apparatus comprises:
The processing subunit is used for adopting the packaging dependent component to carry out packaging processing on the current test environment parameter and the running environment parameter to obtain a test data packet, wherein the test data packet comprises the current test environment parameter, the running environment parameter and the component parameter corresponding to the packaging dependent component;
And the processing subunit is further configured to perform packaging processing on the current production environment parameter and the operation environment parameter by using the packaging dependent component to obtain a production data packet, and use the test data packet and the production data packet as data packets to be stored, where the production data packet includes the current production environment parameter, the operation environment parameter and a component parameter corresponding to the packaging dependent component.
In some embodiments, the data processing apparatus comprises:
A generating subunit, configured to generate a data packet acquisition request according to the test environment type if the target environment type is the test environment type, and send the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines, according to the test environment type carried by the data packet acquisition request, a test data packet from a plurality of data packets to be stored as a target data packet, and returns a target data packet corresponding to the test environment type;
The generation subunit is further configured to generate a data packet acquisition request according to the production environment type if the target environment type is the production environment type, and send the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines, according to the production environment type carried by the data packet acquisition request, a production data packet from a plurality of data packets to be stored as a target data packet, and returns the target data packet corresponding to the production environment type.
In some embodiments, the data processing apparatus comprises:
And the first receiving subunit is used for receiving and downloading the test data packet returned by the preset resource warehouse.
In some embodiments, the data processing apparatus comprises:
the first determining subunit is used for determining a test server corresponding to the test environment type;
and the first pushing subunit is used for pushing the test data packet to the test server for test environment deployment.
In some embodiments, the data processing apparatus comprises:
and the second receiving subunit is used for receiving and downloading the production data packet returned by the preset resource warehouse.
In some embodiments, the data processing apparatus comprises:
A second determining subunit, configured to determine a production server corresponding to the production environment type;
and the second pushing subunit is used for pushing the production data packet to the production server for production environment deployment.
The embodiment of the application provides a data processing device, which is characterized in that a current target type environment parameter, an operation environment parameter and a packaging dependent component are acquired through an acquisition unit 201, wherein the target type environment parameter comprises a test environment parameter and/or a production environment parameter, a packaging unit 202 packages the target type environment parameter and the operation environment parameter by adopting the packaging dependent component to obtain a data packet to be stored, a sending unit 203 sends the data packet to be stored to a preset resource warehouse to enable the preset resource warehouse to store the data packet to be stored, a determining unit 204 determines an operation environment variable set in the current operation environment when an environment deployment instruction is detected, determines a target environment type to be deployed according to the operation environment variable, a generating unit 205 generates a data packet acquisition request according to the target environment type and sends the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines a target data packet from a plurality of data packets to be stored according to the target environment type carried by the data packet acquisition request and returns the target data packet to a preset resource warehouse, and a receiving unit 206 receives the target data packet corresponding to the target environment type to be deployed by the preset resource warehouse. According to the embodiment of the application, the same packaging dependent component is used for packaging the test environment data and the production environment data under the same development environment, and the packaged test data packet and production data packet are stored in the warehouse server software, so that the construction of the data packet is completed rapidly, the development environments of the test environment data packet and the production environment data packet of the deployment environment are kept consistent, the environment data packet is not required to be checked manually, and the efficiency of environment deployment is improved.
In addition, the embodiment of the present invention further provides a computer device, which may be a terminal or a server, as shown in fig. 5, which shows a schematic structural diagram of the computer device according to the embodiment of the present invention, specifically:
The computer device may include one or more processing cores 'processors 301, one or more computer-readable storage media's memory 302, power supply 303, and input unit 304, among other components. Those skilled in the art will appreciate that the computer device structure shown in FIG. 5 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components. Wherein:
Processor 301 is the control center of the computer device and uses various interfaces and lines to connect the various parts of the overall computer device, and to perform various functions and process data of the computer device by running or executing software programs and/or modules stored in memory 302, and invoking data stored in memory 302. Optionally, the processor 301 may include one or more processing cores, and preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor primarily processes operating systems, user interfaces, application programs, etc., and the modem processor primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 301.
The memory 302 may be used to store software programs and modules, and the processor 301 executes various functional applications and data processing by executing the software programs and modules stored in the memory 302. The memory 302 may mainly include a storage program area that may store an operating system, application programs required for at least one function, and the like, and a storage data area that may store data created according to the use of the computer device, and the like. In addition, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic 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.
The computer device further includes a power supply 303 for powering the various components, preferably, the power supply 303 is logically connected to the processor 301 by a power management system, such that functions such as managing charging, discharging, and power consumption are performed by the power management system. The power supply 303 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The computer device may also include an input unit 304, which input unit 304 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 301 in the computer device loads executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 executes the application programs stored in the memory 302, so as to implement various functions as follows:
Acquiring current target type environment parameters, running environment parameters and packaging dependent components, wherein the target type environment parameters comprise test environment parameters and/or production environment parameters;
Packaging the target type environment parameters and the running environment parameters by adopting the packaging dependent component to obtain a data packet to be stored;
The data packet to be stored is sent to a preset resource warehouse, so that the preset resource warehouse stores the data packet to be stored;
when an environment deployment instruction is detected, determining an operating environment variable set in the current operating environment, and determining a target environment type to be deployed according to the operating environment variable;
generating a data packet acquisition request according to the target environment type, and sending the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines a target data packet from a plurality of data packets to be stored according to the target environment type carried by the data packet acquisition request, and returns a target data packet corresponding to the target environment type;
and receiving and downloading the target data packet returned by the preset resource warehouse, and pushing the target data packet to a server corresponding to the target environment type for environment deployment.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present invention also provide a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the methods provided in the various alternative implementations of embodiments of the present invention.
According to one aspect of the present application, there is also provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods provided in the various alternative implementations of the above embodiments.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
The storage medium may include a Read Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or the like.
The steps of any data processing method provided by the embodiment of the present application can be executed by the computer program stored in the storage medium, so that the beneficial effects of any data processing method provided by the embodiment of the present application can be achieved, and detailed descriptions of the foregoing embodiments are omitted.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The foregoing describes in detail a data processing method, apparatus, computer device and storage medium according to embodiments of the present invention, and specific examples are provided herein to illustrate the principles and embodiments of the present invention, and the above description of the embodiments is only for aiding in understanding the method and core concept of the present invention, and meanwhile, for those skilled in the art, according to the concept of the present invention, there are various changes in the specific embodiments and application scope, and in this regard, the present disclosure should not be construed as limiting the present invention.

Claims (9)

1. A method of data processing, comprising:
Acquiring current target type environment parameters, running environment parameters and packaging dependent components, wherein the target type environment parameters comprise test environment parameters and/or production environment parameters;
Packaging the target type environment parameters and the running environment parameters by adopting the packaging dependent component to obtain a data packet to be stored;
The data packet to be stored is sent to a preset resource warehouse, so that the preset resource warehouse stores the data packet to be stored;
when an environment deployment instruction is detected, determining an operating environment variable set in the current operating environment, and determining a target environment type to be deployed according to the operating environment variable;
generating a data packet acquisition request according to the target environment type, and sending the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines a target data packet from a plurality of data packets to be stored according to the target environment type carried by the data packet acquisition request, and returns a target data packet corresponding to the target environment type;
Receiving and downloading the target data packet returned by the preset resource warehouse, pushing the target data packet to a server corresponding to the target environment type for environment deployment;
The generating a data packet obtaining request according to the target environment type, and sending the data packet obtaining request to the preset resource warehouse includes:
If the target environment type is a test environment type, generating a data packet acquisition request according to the test environment type, and sending the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines a test data packet from a plurality of data packets to be stored as a target data packet according to the test environment type carried by the data packet acquisition request, and returns the target data packet corresponding to the test environment type;
If the target environment type is a production environment type, generating a data packet acquisition request according to the production environment type, and sending the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines a production data packet from a plurality of data packets to be stored as a target data packet according to the production environment type carried by the data packet acquisition request, and returns the target data packet corresponding to the production environment type.
2. The method of claim 1, wherein the obtaining the current object type environment parameter, the current operating environment parameter, and the package dependent component comprises:
Acquiring an operation environment parameter under a target development environment, and a current test environment parameter and a current production environment parameter under the target development environment;
and packaging the target type environment parameter and the running environment parameter by adopting the packaging dependent component to obtain a data packet to be stored, wherein the data packet comprises the following components:
Adopting the packaging dependent component to package the current test environment parameters and the running environment parameters to obtain a test data packet, wherein the test data packet comprises the current test environment parameters, the running environment parameters and component parameters corresponding to the packaging dependent component;
and adopting the packaging dependent component to carry out packaging treatment on the current production environment parameter and the running environment parameter to obtain a production data packet, and taking the test data packet and the production data packet as data packets to be stored, wherein the production data packet comprises the current production environment parameter, the running environment parameter and the component parameter corresponding to the packaging dependent component.
3. The data processing method according to claim 1, further comprising, after generating a packet acquisition request according to the test environment type and transmitting the packet acquisition request to the preset resource repository:
and receiving and downloading the test data packet returned by the preset resource warehouse.
4. A data processing method according to claim 3, further comprising, after receiving and downloading the test data packet returned from the preset resource repository:
Determining a test server corresponding to the test environment type;
and pushing the test data packet to the test server for deployment of a test environment.
5. The data processing method according to claim 1, further comprising, after generating a packet acquisition request according to the production environment type and transmitting the packet acquisition request to the preset resource repository:
and receiving and downloading the production data packet returned by the preset resource warehouse.
6. The data processing method according to claim 5, further comprising, after receiving and downloading the production data packet returned from the preset resource repository:
determining a production server corresponding to the production environment type;
Pushing the production data packet to the production server for production environment deployment.
7. A data processing apparatus, comprising:
The system comprises an acquisition unit, a packaging and dependency component and a packaging unit, wherein the acquisition unit is used for acquiring the current target type environment parameters, the running environment parameters and the packaging and dependency component, and the target type environment parameters comprise test environment parameters and/or production environment parameters;
The packaging unit is used for packaging the target type environment parameters and the running environment parameters by adopting the packaging dependent component to obtain a data packet to be stored;
the sending unit is used for sending 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 system comprises a determining unit, a control unit and a control unit, wherein the determining unit is used for determining an operation environment variable set in the current operation environment when an environment deployment instruction is detected, and determining a target environment type to be deployed according to the operation environment variable;
The generation unit is used for generating a data packet acquisition request according to the target environment type, sending the data packet acquisition request to the preset resource warehouse, enabling the preset resource warehouse to determine a target data packet from a plurality of data packets to be stored according to the target environment type carried by the data packet acquisition request, and returning to a target data packet corresponding to the target environment type;
The receiving unit is used for receiving and downloading the target data packet returned by the preset resource warehouse, pushing the target data packet to a server corresponding to the target environment type for environment deployment;
A generating subunit, configured to generate a data packet acquisition request according to the test environment type if the target environment type is the test environment type, and send the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines, according to the test environment type carried by the data packet acquisition request, a test data packet from a plurality of data packets to be stored as a target data packet, and returns a target data packet corresponding to the test environment type;
The generation subunit is further configured to generate a data packet acquisition request according to the production environment type if the target environment type is the production environment type, and send the data packet acquisition request to the preset resource warehouse, so that the preset resource warehouse determines, according to the production environment type carried by the data packet acquisition request, a production data packet from a plurality of data packets to be stored as a target data packet, and returns the target data packet corresponding to the production environment type.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the data processing method according to any one of claims 1 to 6 when the computer program is executed by the processor.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when run on a computer, causes the computer to perform the steps of the data processing method according to any one of claims 1 to 6.
CN202211426201.9A 2022-11-14 2022-11-14 Data processing methods, apparatus, computer equipment and computer-readable storage media Active CN115756502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211426201.9A CN115756502B (en) 2022-11-14 2022-11-14 Data processing methods, apparatus, computer equipment and computer-readable storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211426201.9A CN115756502B (en) 2022-11-14 2022-11-14 Data processing methods, apparatus, computer equipment and computer-readable storage media

Publications (2)

Publication Number Publication Date
CN115756502A CN115756502A (en) 2023-03-07
CN115756502B true CN115756502B (en) 2026-04-07

Family

ID=85371192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211426201.9A Active CN115756502B (en) 2022-11-14 2022-11-14 Data processing methods, apparatus, computer equipment and computer-readable storage media

Country Status (1)

Country Link
CN (1) CN115756502B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070883A (en) * 2021-11-12 2022-02-18 腾讯科技(深圳)有限公司 Test resource access method and device, electronic equipment and storage medium
CN114356497A (en) * 2021-12-21 2022-04-15 上海众源网络有限公司 Environment deployment method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8225281B1 (en) * 2009-02-04 2012-07-17 Sprint Communications Company L.P. Automated baseline deployment system
CN114840220B (en) * 2021-02-02 2025-09-23 腾讯科技(深圳)有限公司 Application deployment method, device, equipment, and computer-readable storage medium
CN114416172A (en) * 2022-01-21 2022-04-29 平安国际智慧城市科技股份有限公司 Project packaging method, apparatus, computer equipment and storage medium
CN114996134B (en) * 2022-05-30 2025-03-25 阿里巴巴(中国)有限公司 Containerized deployment method, electronic device, and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070883A (en) * 2021-11-12 2022-02-18 腾讯科技(深圳)有限公司 Test resource access method and device, electronic equipment and storage medium
CN114356497A (en) * 2021-12-21 2022-04-15 上海众源网络有限公司 Environment deployment method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115756502A (en) 2023-03-07

Similar Documents

Publication Publication Date Title
US12586006B2 (en) Deployment of self-contained decision logic
JP6856749B2 (en) Systems and methods for implementing native contracts on the blockchain
CN110851167B (en) Container environment updating method, device, equipment and storage medium
US20170154017A1 (en) Web Application Management
CN108196915A (en) Code process method, equipment and storage medium based on application container engine
US9274947B1 (en) Non-precise garbage collection in non-cooperative systems
CN114706658B (en) A container image data processing method, device, equipment and medium
CN111090423B (en) Webhook framework system and method for realizing active calling and event triggering
CN115964061A (en) Plug-in updating method and device, electronic equipment and computer readable storage medium
CN115543543A (en) Application service processing method, device, equipment and medium
CN113791809B (en) Application exception handling method and device and computer readable storage medium
CN113805858B (en) Method and device for continuously deploying software developed by scripting language
CN115599359A (en) Code generation method, device, equipment and medium
CN116069341A (en) An application automatic deployment method, device and storage medium
CN115756502B (en) Data processing methods, apparatus, computer equipment and computer-readable storage media
CN111651189B (en) Product delivery method and device of continuous integrated system and electronic equipment
CN115567526B (en) Data monitoring method, device, equipment and medium
CN116501449B (en) Method and system for managing container files in cloud primary environment
CN113900668B (en) Canary issuing method and device and readable storage medium
CN112667491B (en) Function test method and device for virtual machine
CN115016800A (en) Software development automation processing method and device for continuous integrated deployment
Kuhn et al. Behavioural Types for Local-First Software (Artifact)
CN118331574A (en) Plug-in implementation method and related equipment
EP4020217A1 (en) Performance monitoring for osgi application with bundles
CN111949628B (en) Data operation method, device and distributed storage system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant