[go: up one dir, main page]

CN119166107B - A business development method, device and medium based on water conservancy cloud native all-in-one machine - Google Patents

A business development method, device and medium based on water conservancy cloud native all-in-one machine Download PDF

Info

Publication number
CN119166107B
CN119166107B CN202411221545.5A CN202411221545A CN119166107B CN 119166107 B CN119166107 B CN 119166107B CN 202411221545 A CN202411221545 A CN 202411221545A CN 119166107 B CN119166107 B CN 119166107B
Authority
CN
China
Prior art keywords
water conservancy
project
image
environment
development
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
CN202411221545.5A
Other languages
Chinese (zh)
Other versions
CN119166107A (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.)
Shandong Inspur Zhishui Digital Technology Co ltd
Original Assignee
Shandong Inspur Zhishui Digital Technology Co ltd
Inspur Intelligent Technology 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 Shandong Inspur Zhishui Digital Technology Co ltd, Inspur Intelligent Technology Co Ltd filed Critical Shandong Inspur Zhishui Digital Technology Co ltd
Priority to CN202411221545.5A priority Critical patent/CN119166107B/en
Publication of CN119166107A publication Critical patent/CN119166107A/en
Application granted granted Critical
Publication of CN119166107B publication Critical patent/CN119166107B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请公开了一种基于水利云原生一体机的业务开发方法、设备及介质,方法包括:确定实现水利业务开发需求所需的核心组件;其中,核心组件包括微服务框架、云操作系统、容器管理平台和自动化运维工具;确定用于构建水利云原生一体机的硬件平台,将核心组件部署到硬件平台中,得到部署完成的水利云原生一体机;在通过水利云原生一体机进行水利项目的交付时,确定水利项目对应的水利业务需求,并确定水利云原生一体机中集成的核心组件是否支持水利业务需求;若否,基于水利云原生一体机,根据水利业务需求,对核心组件进行部署升级,以实现对水利项目的扩展开发。

The present application discloses a business development method, device and medium based on a water conservancy cloud-native all-in-one machine, the method comprising: determining the core components required to realize the water conservancy business development needs; wherein the core components include a microservice framework, a cloud operating system, a container management platform and an automated operation and maintenance tool; determining a hardware platform for building a water conservancy cloud-native all-in-one machine, deploying the core components to the hardware platform, and obtaining a deployed water conservancy cloud-native all-in-one machine; when delivering a water conservancy project through the water conservancy cloud-native all-in-one machine, determining the water conservancy business needs corresponding to the water conservancy project, and determining whether the core components integrated in the water conservancy cloud-native all-in-one machine support the water conservancy business needs; if not, based on the water conservancy cloud-native all-in-one machine, deploy and upgrade the core components according to the water conservancy business needs to realize the expanded development of the water conservancy project.

Description

Business development method, equipment and medium based on water conservancy cloud primary integrated machine
Technical Field
The application relates to the technical field of computers, in particular to a business development method, equipment and medium based on a water conservancy cloud primary integrated machine.
Background
With the rapid development of new generation information technologies such as cloud computing, big data, internet of things and the like, the water conservancy industry is undergoing unprecedented digital transformation. Traditional computer architecture is difficult to adapt to rapidly changing water conservancy service demands, and has obvious shortcomings in data processing, resource scheduling and fault recovery. With the rise of cloud computing and container technology, cloud native architecture is becoming an important approach to solve the above-mentioned problems.
The cloud native is a method for constructing and running an application to fully utilize the advantages of a cloud computing model, and is characterized in that the key technologies such as containers, micro-services, devOps, continuous integration/continuous deployment and the like are utilized to realize rapid iteration, flexible deployment and efficient operation and maintenance of the application. The cloud primordial technology can remarkably improve the elasticity, scalability and maintainability of application, and bring unprecedented business innovation and development opportunities for the water conservancy industry. However, there is a lack of cloud primary integrated solutions designed specifically for the water conservancy industry in the market, and it is difficult to meet the requirements of the water conservancy industry on high availability, high expansibility and easy operation and maintenance.
Disclosure of Invention
In order to solve the problems, the application provides a business development method based on a water conservancy cloud primary integrated machine, which comprises the following steps:
determining a core component required for realizing the development requirement of water conservancy service, wherein the core component comprises a micro-service framework, a cloud operating system, a container management platform and an automatic operation and maintenance tool;
determining a hardware platform for constructing the water conservancy cloud primary integrated machine, and deploying the core component into the hardware platform to obtain the deployed water conservancy cloud primary integrated machine;
When delivering a water conservancy project through the water conservancy cloud primary integrated machine, determining a water conservancy service requirement corresponding to the water conservancy project, and determining whether a core component integrated in the water conservancy cloud primary integrated machine supports the water conservancy service requirement;
if not, based on the water conservancy cloud primary integrated machine, the core component is deployed and upgraded according to the water conservancy business requirement, so that the expansion development of the water conservancy project is realized.
In one implementation manner of the present application, deployment and upgrading are performed on the core component according to the water conservancy service requirement, so as to realize expansion development of the water conservancy project, and the implementation manner specifically includes:
dividing the deployment upgrading flow of the water conservancy cloud primary integrated machine into a plurality of stages, wherein the stages comprise a development stage, a deployment stage and a production stage;
Based on the development stage, a warehouse address corresponding to the water conservancy project is created in a remote code warehouse, and project codes corresponding to the water conservancy project are obtained from the remote code warehouse, so that development of the water conservancy business requirements is carried out through the project codes, and a local engineering code is obtained;
Dividing a local engineering code into a plurality of code branches based on the deployment stage, mirror-image packaging the code branches based on a cloud deployment environment where the code branches are located, deploying and upgrading the project instance of the water conservancy project according to the obtained mirror-image product, and uploading the mirror-image product to a mirror-image warehouse under the condition that the deployed and upgraded project instance passes the mirror-image function test in the cloud deployment environment;
And acquiring a specified mirror image product from the mirror image warehouse based on the production stage, and performing deployment upgrading on the core component based on the specified mirror image product so as to realize the expansion development of the water conservancy project.
In one implementation manner of the present application, based on a cloud deployment environment where the code branches are located, the code branches are mirror-packaged, so as to deploy and upgrade project instances of the water conservancy project according to the obtained mirror-image product, which specifically includes:
The code branches comprise development branches, test branches and formal branches, and the cloud deployment environment comprises a development environment, a test environment and an integrated demonstration environment;
Triggering mirror image packaging operation aiming at the development branch according to code submitting operation carried out by the development branch in the development stage based on the development environment where the development branch is positioned, and obtaining a first mirror image product corresponding to the development environment;
According to the first mirror image product, carrying out deployment upgrading on the project instance of the water conservancy project, and carrying out mirror image function test on the deployed and upgraded first project instance;
Under the condition that the first project instance passes the mirror image function test, performing a first merging operation on the development branch and the test branch, and triggering a mirror image packing operation for the test branch based on the first merging operation to obtain a second mirror image product corresponding to the test environment;
according to the second mirror image product, carrying out deployment upgrading on the project instance of the water conservancy project, and carrying out mirror image function test on the deployed and upgraded second project instance;
under the condition that the second project instance passes the mirror image function test, performing a second merging operation on the test branch and the formal branch, and triggering a mirror image packing operation for the formal branch based on the second merging operation to obtain a third mirror image product corresponding to the integrated demonstration environment;
And carrying out deployment upgrading on the project examples of the water conservancy project according to the third mirror image product, and carrying out mirror image function test on the third project examples after deployment upgrading.
In one implementation manner of the present application, the mirror image warehouse includes a private product warehouse and a public network mirror image warehouse, and in the case that the project instance after deployment and upgrading passes the mirror image function test in the cloud deployment environment, the mirror image product is uploaded to the mirror image warehouse, which specifically includes:
uploading the first mirrored artifact and the second mirrored artifact to a private artifact warehouse if the first project instance and the second project instance pass mirrored functional tests in the development environment and the test environment, respectively;
And uploading the third mirror image product to a public network mirror image warehouse under the condition that the third project example passes the mirror image function test in the integrated demonstration environment, acquiring helm application packages generated by the formal branches, and uploading the helm application packages to an application warehouse under the public network mirror image warehouse.
In one implementation of the present application, before the specified mirror product is obtained from the mirror warehouse, the method further includes:
determining a project environment corresponding to the water conservancy project, wherein the project environment comprises a networking state and a network disconnection state;
And acquiring the appointed mirror image product from the mirror image warehouse based on the project environment, wherein the appointed mirror image product is a third mirror image product.
In one implementation of the present application, based on the project environment, the obtaining the specified mirror product from the mirror warehouse specifically includes:
pulling the third mirror image product from a public network mirror image warehouse under the condition that the project environment is in the networking state;
and under the condition that the project environment is in the network disconnection state, instantiating a third mirror image product in the public network mirror image warehouse, and copying the instantiated third mirror image product to the project environment through a preset transmission medium.
In one implementation manner of the present application, the development of the water conservancy service requirement is performed through the project code to obtain a local engineering code, which specifically includes:
Determining whether dependence exists in realizing the water conservancy service requirements when the development of the water conservancy service requirements is carried out;
If yes, pulling the dependency from a preset Maven product dependency library, and completing development of the project code through the dependency to obtain a local project code.
In one implementation manner of the present application, after deployment and upgrading of the project instance of the water conservancy project according to the obtained mirror image product, the method further includes:
Under the condition that the project example after deployment and upgrading does not pass the mirror image function test in the cloud deployment environment, performing function optimization on the corresponding code branch, and based on the optimized code branch, re-performing mirror image packaging on the code branch and performing deployment and upgrading on the project example until the project example passes the mirror image function test in the cloud deployment environment.
The embodiment of the application provides service development equipment based on a water conservancy cloud primary integrated machine, which comprises the following components:
at least one processor;
And a memory communicatively coupled to the at least one processor;
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform a business development method based on a water conservancy cloud primary machine as set forth in any one of the above.
Embodiments of the present application provide a non-volatile computer storage medium storing computer-executable instructions configured to:
the business development method based on the water conservancy cloud primary integrated machine.
The business development method based on the water conservancy cloud primary integrated machine provided by the application has the following beneficial effects:
through integrating a plurality of core components, the water conservancy cloud primary integrated machine realizes the whole optimization from development to deployment, and the integrated design greatly simplifies the deployment flow and shortens the system on-line time, thereby improving the overall efficiency of water conservancy service development.
The micro-service architecture and the containerization technology enable the water conservancy cloud primary integrated machine to be expanded as required, flexibly cope with the change of water conservancy business, and ensure the continuity and stability of the water conservancy business.
The water conservancy cloud primary all-in-one machine supports direct deployment in a professional machine room or a common indoor environment, so that the convenience of plug-and-play is realized, the deployment threshold is reduced, and the operation and maintenance work is more efficient and flexible.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
Fig. 1 is a schematic flow chart of a business development method based on a water conservancy cloud primary integrated machine according to an embodiment of the present application;
FIG. 2 is a deployment upgrade workflow diagram provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a service development device based on a water conservancy cloud primary integrated machine according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
As shown in fig. 1, the service development method based on the water conservancy cloud primary integrated machine provided by the embodiment of the application includes:
And S101, determining a core component required for realizing the development requirement of the water conservancy service, wherein the core component comprises a micro-service framework, a cloud operating system, a container management platform and an automatic operation and maintenance tool.
The embodiment of the application aims to solve the problems of system dispersion, complex operation and maintenance, poor expansibility and the like in water conservancy informatization construction, and provides a water conservancy cloud primary integrated machine system which is high in integration level and easy to deploy and operate and maintain.
The cooperation among the core components can realize the development requirement of water conservancy service, and mainly comprises a micro-service framework, a cloud operating system, a container management platform and an automatic operation and maintenance tool. The micro service framework is used for splitting the water conservancy service system into a plurality of independent service modules according to a micro service architecture principle, interacting through a lightweight communication protocol, improving flexibility and expandability of the system, splitting the water conservancy service system into the micro service modules, and deploying the micro service modules into a container through a CI/CD pipeline after development is completed. The cloud operating system is constructed based on a virtualization technology, and provides functions of resource pooling, dynamic scheduling, isolation protection and the like, so that stable operation of the cloud native application is ensured. And the container management platform adopts a main stream container arrangement tool such as Kubernetes and the like to realize automatic deployment, management and expansion of containers and support rapid iteration and continuous delivery of micro services. And the automatic operation and maintenance tool integrates functions of CI/CD assembly line, log collection and analysis, monitoring alarm and the like, realizes automation and intellectualization of operation and maintenance work, reduces operation and maintenance cost and improves operation and maintenance efficiency.
S102, determining a hardware platform for constructing the water conservancy cloud primary integrated machine, and deploying the core component into the hardware platform to obtain the deployed water conservancy cloud primary integrated machine.
The cloud primary integrated machine is realized by not only requiring the core components to support the processing and running of water conservancy services, but also requiring hardware resources to provide corresponding hardware support for cloud primary application. Therefore, when the water conservancy cloud primary integrated machine is constructed, a hardware platform is required to be determined at first, and generally, the hardware platform can adopt a high-performance server cluster, and then a core component is deployed into the hardware platform, so that the water conservancy cloud primary integrated machine implemented by soft and hard integration is obtained. The hydraulic cloud primary integrated machine can realize quick response of hydraulic service and has higher expandability.
And S103, when the water conservancy project is delivered through the water conservancy cloud primary integrated machine, determining the water conservancy business requirement corresponding to the water conservancy project, and determining whether the core component integrated in the water conservancy cloud primary integrated machine supports the water conservancy business requirement.
The embodiment of the application is different from the traditional water conservancy project delivery process in that the traditional project delivery needs to sequentially deploy core components on a project site, code configuration is needed to be carried out again in the deployment process, the efficiency is low, the water conservancy cloud primary integrated machine integrates various core components, packaging delivery of the components is realized, quick response of water conservancy business can be realized only by plug-in components of the water conservancy cloud primary integrated machine, site deployment is not needed, and technical bottlenecks caused by site environment differences are avoided. It should be noted that, the hydraulic cloud primary integrated machine supports the function expansion of the hydraulic service, so when the hydraulic project delivery is performed, it is first required to determine whether the hydraulic cloud primary integrated machine can support the hydraulic service requirement required by the current project.
And S104, if not, based on the water conservancy cloud primary integrated machine, carrying out deployment and upgrading on the core component according to water conservancy business requirements so as to realize expansion development of water conservancy projects.
If in the delivery process of water conservancy projects, the core component integrated by the current water conservancy cloud primary integrated machine can not completely support all water conservancy business requirements set forth by the water conservancy projects, at the moment, the integrated core component can be deployed and upgraded based on the water conservancy cloud primary integrated machine, business changes can be flexibly dealt with through on-demand expansion of business requirements, and the expandability of the water conservancy business is improved.
In one embodiment, the deployment upgrade process of the water conservancy cloud primary integrated machine is divided into a plurality of stages, including a development stage, a deployment stage and a production stage. The method mainly comprises the steps of developing a local functional code in a development stage, performing corresponding deployment upgrading and test verification based on the local engineering code in a deployment stage, performing deployment upgrading on a core component according to a mirror image product passing verification in a production stage, and finally obtaining an upgraded project intranet container management platform. The project intranet container management platform is a platform obtained by the water conservancy cloud primary integrated machine after function expansion.
As shown in fig. 2, in the early stage of the creation of the water conservancy project, at this time, in a development stage, a warehouse address corresponding to the water conservancy project needs to be created in a remote code warehouse (such as a git), and a project code corresponding to the water conservancy project is obtained from the remote code warehouse, so that development of water conservancy business requirements is performed through the project code, and a local engineering code is obtained. When development of water conservancy service requirements is carried out, whether the requirements for realizing the water conservancy service are dependent or not needs to be determined, if the requirements for realizing the water conservancy service are dependent on package codes of other projects, the dependence which needs to be used needs to be pulled from a preset Maven product dependence library, and further development of project codes is completed through the dependence, so that local project codes are obtained. With the development staff continuously perfecting project functions, local engineering codes can be pushed to a remote code warehouse, and the local other development staff can acquire the latest version of the code warehouse in real time when carrying out pulling operation. When the local hydraulic engineering is developed to a certain stage and the version can be released, the local engineering can be pushed to a remote Maven product warehouse for management and use.
In the deployment stage, the local engineering code is divided into a plurality of code branches, each code branch comprises a development branch (develop), a test branch (release) and a formal branch (master), each code branch is in different cloud deployment environments, each cloud deployment environment comprises a development environment, a test environment and an integrated demonstration environment, and the development branches, the test branches and the formal branches are respectively corresponding to each other. Based on the cloud deployment environment where the code branches are located, after the code branches submit codes, the server can carry out mirror image packaging on the code branches, and deployment upgrading is carried out on project instances of water conservancy projects according to the obtained mirror image products. If the project example after the deployment upgrade passes the image function test in the cloud deployment environment, the image product can be uploaded to an image warehouse. If the program fails the mirror image function test, the corresponding code branches are required to be subjected to function optimization, the code branches are subjected to mirror image packaging again based on the optimized code branches, and project instances are subjected to deployment and upgrading until the project instances pass the mirror image function test in the cloud deployment environment.
Specifically, based on a development environment where a development branch is located, according to code submitting operation performed through the development branch in a development stage, mirror image packaging operation aiming at the development branch is triggered, and a first mirror image product corresponding to the development environment is obtained. According to the first mirror image product, deployment upgrading is carried out on project examples of the water conservancy project, and mirror image function testing is carried out on the first project examples after deployment upgrading.
After the mirror image function test of the development environment passes, that is, the first project example passes the mirror image function test, a first merging operation needs to be performed on the development branch and the test branch, and a mirror image packing operation for the test branch is triggered based on the first merging operation to obtain a second mirror image product corresponding to the test environment. And according to the second mirror image product, carrying out deployment upgrading on the project instance of the water conservancy project, and carrying out mirror image function test on the deployed and upgraded second project instance.
And after the mirror image function test of the test environment is completed, namely, under the condition that the second project instance passes the mirror image function test, performing a second merging operation on the test branch and the formal branch, and triggering a mirror image packing operation on the formal branch based on the second merging operation to obtain a third mirror image product corresponding to the integrated demonstration environment. And according to the third mirror image product, carrying out deployment upgrading on the project instance of the water conservancy project, and carrying out mirror image function test on the third project instance after deployment upgrading.
It should be noted that the mirror image warehouse is divided into a private product warehouse and a public network mirror image warehouse, mirror image products of the develop branch and the release branch are stored in the private product warehouse, and mirror image products of the master branch are stored in the public network mirror image warehouse. Thus, in the event that the first project instance and the second project instance pass the mirror function test in the development environment and the test environment, respectively, the first mirror artifact and the second mirror artifact are uploaded to the private artifact repository. And uploading the third mirror image product to a public network mirror image warehouse under the condition that the third project example passes the mirror image function test in the integrated demonstration environment, acquiring helm application packages generated by formal branches, and uploading helm application packages to an application warehouse under the public network mirror image warehouse.
In the production stage of the water conservancy project, deployment upgrading is carried out on the core component based on the mirror image product developed by expansion, so that the expansion development of the water conservancy project is completed. The acquisition modes of the mirror image products are distinguished according to project environments, wherein one is in a networking state, and the other is in a broken network state. The manner in which the server obtains the designated mirror image artifact, referred to herein as the third mirror image artifact, from the mirror image repository varies based on the different project environments.
Specifically, under the condition that the project environment is in the networking state, the third mirror image product is pulled from the public network mirror image warehouse through a public network container management platform or a cloud pass platform of the project site. Under the condition that the project environment is in a broken network state, the project environment cannot be connected to the public network mirror image warehouse, therefore, instantiation of a third mirror image product in the public network mirror image warehouse is needed, and then the instantiated third mirror image product is copied to the project environment through a preset transmission medium to carry out deployment upgrading operation. The transmission medium herein refers to a carrier, such as a U-disc, optical disc, etc., that can store the third mirrored product.
After the deployment upgrading flow is finished, the water conservancy cloud primary integrated machine finishes function upgrading according to the service requirements of actual water conservancy projects, and the process does not need to redeploy core components on site, but can be extended on the basis of the existing integrated machine, so that development efficiency is greatly improved.
After the local engineering code is obtained based on the development stage, after the developer submits the code on the develop branch of the local engineering, the developer triggers the pipeline mirror image packaging operation of the corresponding branch of the engineering to obtain the first mirror image product of the development environment, and the mirror image product can be uploaded to the mirror image warehouse to be convenient for management and use, and the project deployment personnel pulls the mirror image in the development environment to carry out project deployment building or upgrading operation. When the testing personnel test the functions of the version in the development environment and do not meet the expectations, the project developer is informed to perform function optimization, and the operation of the stage is repeated until the function test passes.
After the function test of the cloud development environment is passed, the code of develop branches is combined to a release branch to carry out packaging, pushing, deploying, upgrading and testing work of develop branches, if the function verification of the test environment is not passed, a developer is informed to carry out function optimization on develop branches, and the process is repeated until the mirror image function test of the version of the cloud development environment is passed.
When the function test of the cloud test environment is passed, the code of the release branch is merged into the master branch, and the master branch mirror image packaging flow is triggered to obtain the project mirror image for deployment upgrading. Note that at this point the image deployed to the presentation environment that the functional test passed is not being presented is also uploaded to the image private library. And when the functional test of the integrated demonstration environment fails, notifying a developer to perform functional optimization on the develop branch to repeat the flow until the mirror image functional test of the version of the integrated demonstration environment passes.
When the version function of the integrated demonstration environment passes verification (the availability of a master branch is verified), public network mirror image packaging operation of the water conservancy project is triggered, at the moment, the private mirror image of the project which passes the latest verification on the integrated demonstration environment is replaced by a newly packaged public network mirror image, and meanwhile, a mirror image pipeline can upload the latest public network mirror image and the latest helm package of the project to an application warehouse under the public network mirror image warehouse for storage and management.
The above is a method embodiment of the present application. Based on the same thought, some embodiments of the present application also provide a device and a non-volatile computer storage medium corresponding to the above method.
Fig. 3 is a schematic structural diagram of a service development device based on a water conservancy cloud primary integrated machine according to an embodiment of the present application. As shown in fig. 3, includes:
at least one processor, and
At least one processor, wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform a business development method based on a water conservancy cloud native all-in-one machine as set forth in any one of the above.
The embodiment of the application provides a nonvolatile computer storage medium, which stores computer executable instructions, wherein the computer executable instructions are configured to:
the business development method based on the water conservancy cloud primary integrated machine.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the apparatus and medium embodiments, the description is relatively simple, as it is substantially similar to the method embodiments, with reference to the section of the method embodiments being relevant.
The devices and media provided in the embodiments of the present application are in one-to-one correspondence with the methods, so that the devices and media also have similar beneficial technical effects as the corresponding methods, and since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media are not repeated here.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (8)

1.一种基于水利云原生一体机的业务开发方法,其特征在于,所述方法包括:1. A business development method based on a water conservancy cloud native all-in-one machine, characterized in that the method comprises: 确定实现水利业务开发需求所需的核心组件;其中,所述核心组件包括微服务框架、云操作系统、容器管理平台和自动化运维工具;Determine the core components required to achieve water conservancy business development needs; wherein the core components include microservice framework, cloud operating system, container management platform and automated operation and maintenance tools; 确定用于构建水利云原生一体机的硬件平台,将所述核心组件部署到所述硬件平台中,得到部署完成的水利云原生一体机;Determine a hardware platform for building a water conservancy cloud native all-in-one machine, deploy the core components to the hardware platform, and obtain a deployed water conservancy cloud native all-in-one machine; 在通过所述水利云原生一体机进行水利项目的交付时,确定所述水利项目对应的水利业务需求,并确定所述水利云原生一体机中集成的核心组件是否支持所述水利业务需求;When delivering a water conservancy project through the water conservancy cloud native all-in-one machine, determining the water conservancy business requirements corresponding to the water conservancy project, and determining whether the core components integrated in the water conservancy cloud native all-in-one machine support the water conservancy business requirements; 若否,基于所述水利云原生一体机,根据所述水利业务需求,对所述核心组件进行部署升级,以实现对所述水利项目的扩展开发;If not, based on the water conservancy cloud native all-in-one machine and according to the water conservancy business needs, deploy and upgrade the core components to achieve the expansion and development of the water conservancy project; 根据所述水利业务需求,对所述核心组件进行部署升级,以实现对所述水利项目的扩展开发,具体包括:According to the water conservancy business needs, the core components are deployed and upgraded to achieve the expansion and development of the water conservancy project, including: 将所述水利云原生一体机的部署升级流程划分为多个阶段;其中,所述多个阶段包括开发阶段、部署阶段和生产阶段;The deployment and upgrade process of the water conservancy cloud native integrated machine is divided into multiple stages; wherein the multiple stages include a development stage, a deployment stage, and a production stage; 基于所述开发阶段,在远程代码仓库中创建所述水利项目对应的仓库地址,并从所述远程代码仓库中获取到所述水利项目对应的项目代码,以通过所述项目代码进行所述水利业务需求的开发,得到本地工程代码;Based on the development stage, a warehouse address corresponding to the water conservancy project is created in a remote code warehouse, and a project code corresponding to the water conservancy project is obtained from the remote code warehouse, so as to develop the water conservancy business needs through the project code and obtain a local engineering code; 基于所述部署阶段,将本地工程代码划分为若干代码分支,基于所述代码分支所在的云部署环境,对所述代码分支进行镜像打包,以根据得到的镜像制品,对所述水利项目的项目实例进行部署升级,并在部署升级后的项目实例通过所在云部署环境中的镜像功能测试的情况下,将所述镜像制品上传至镜像仓库;Based on the deployment stage, the local engineering code is divided into several code branches, and the code branches are packaged as images based on the cloud deployment environment where the code branches are located, so as to deploy and upgrade the project instance of the water conservancy project according to the obtained image products, and upload the image products to the image warehouse when the deployed and upgraded project instance passes the image function test in the cloud deployment environment; 基于所述生产阶段,从所述镜像仓库中获取指定镜像制品,基于所述指定镜像制品对所述核心组件进行部署升级,以实现对所述水利项目的扩展开发;Based on the production stage, a specified image product is obtained from the image warehouse, and the core components are deployed and upgraded based on the specified image product to achieve extended development of the water conservancy project; 基于所述代码分支所在的云部署环境,对所述代码分支进行镜像打包,以根据得到的镜像制品,对所述水利项目的项目实例进行部署升级,具体包括:Based on the cloud deployment environment where the code branch is located, the code branch is packaged as an image, so as to deploy and upgrade the project instance of the water conservancy project according to the obtained image product, specifically including: 所述代码分支包括开发分支、测试分支和正式分支,所述云部署环境包括开发环境、测试环境和集成演示环境;The code branches include development branches, test branches and formal branches, and the cloud deployment environment includes development environment, test environment and integrated demonstration environment; 基于所述开发分支所在的开发环境,根据所述开发阶段中通过所述开发分支进行的提交代码操作,触发针对所述开发分支的镜像打包操作,得到所述开发环境对应的第一镜像制品;Based on the development environment where the development branch is located, according to the code submission operation performed through the development branch in the development stage, triggering an image packaging operation for the development branch to obtain a first image product corresponding to the development environment; 根据所述第一镜像制品,对所述水利项目的项目实例进行部署升级,针对部署升级后的第一项目实例,对其进行镜像功能测试;Deploy and upgrade the project instance of the water conservancy project according to the first image product, and perform an image function test on the first project instance after deployment and upgrade; 在所述第一项目实例通过所述镜像功能测试的情况下,对所述开发分支和所述测试分支进行第一合并操作,基于所述第一合并操作,触发针对所述测试分支的镜像打包操作,得到所述测试环境对应的第二镜像制品;When the first project instance passes the image function test, a first merging operation is performed on the development branch and the test branch, and based on the first merging operation, an image packaging operation for the test branch is triggered to obtain a second image product corresponding to the test environment; 根据所述第二镜像制品,对所述水利项目的项目实例进行部署升级,针对部署升级后的第二项目实例,对其进行镜像功能测试;Deploy and upgrade the project instance of the water conservancy project according to the second image product, and perform an image function test on the second project instance after deployment and upgrade; 在所述第二项目实例通过所述镜像功能测试的情况下,对所述测试分支和所述正式分支进行第二合并操作,基于所述第二合并操作,触发针对所述正式分支的镜像打包操作,得到所述集成演示环境对应的第三镜像制品;When the second project instance passes the image function test, a second merge operation is performed on the test branch and the official branch, and based on the second merge operation, an image packaging operation for the official branch is triggered to obtain a third image product corresponding to the integrated demonstration environment; 根据所述第三镜像制品,对所述所述水利项目的项目实例进行部署升级,针对部署升级后的第三项目实例,对其进行镜像功能测试。According to the third mirror product, the project instance of the water conservancy project is deployed and upgraded, and the mirror function test is performed on the third project instance after the deployment and upgrade. 2.根据权利要求1所述的一种基于水利云原生一体机的业务开发方法,其特征在于,所述镜像仓库包括私有制品仓库和公网镜像仓库,在部署升级后的项目实例通过所在云部署环境中的镜像功能测试的情况下,将所述镜像制品上传至镜像仓库,具体包括:2. According to claim 1, a business development method based on a water conservancy cloud native all-in-one machine is characterized in that the image warehouse includes a private product warehouse and a public network image warehouse, and when the deployed and upgraded project instance passes the image function test in the cloud deployment environment, the image product is uploaded to the image warehouse, specifically including: 在所述第一项目实例和所述第二项目实例分别通过所述开发环境和所述测试环境中的镜像功能测试的情况下,将所述第一镜像制品和所述第二镜像制品上传至私有制品仓库;When the first project instance and the second project instance pass the image function test in the development environment and the test environment respectively, uploading the first image product and the second image product to a private product warehouse; 在所述第三项目实例通过所述集成演示环境中的镜像功能测试的情况下,将所述第三镜像制品上传至公网镜像仓库,并获取所述正式分支生成的helm应用包,将所述helm应用包上传至所述公网镜像仓库下的应用仓库。When the third project instance passes the image function test in the integrated demonstration environment, the third image product is uploaded to the public network image repository, and the helm application package generated by the formal branch is obtained, and the helm application package is uploaded to the application repository under the public network image repository. 3.根据权利要求1所述的一种基于水利云原生一体机的业务开发方法,其特征在于,从所述镜像仓库中获取所述指定镜像制品之前,所述方法还包括:3. According to the business development method based on the water conservancy cloud native all-in-one machine of claim 1, it is characterized in that before obtaining the specified image product from the image warehouse, the method also includes: 确定所述水利项目对应的项目环境;其中,所述项目环境包括联网状态和断网状态;Determine the project environment corresponding to the water conservancy project; wherein the project environment includes an online state and an offline state; 基于所述项目环境,从所述镜像仓库中获取所述指定镜像制品;其中,所述指定镜像制品为所述第三镜像制品。Based on the project environment, the designated image product is obtained from the image repository; wherein the designated image product is the third image product. 4.根据权利要求3所述的一种基于水利云原生一体机的业务开发方法,其特征在于,基于所述项目环境,从所述镜像仓库中获取所述指定镜像制品,具体包括:4. A business development method based on a water conservancy cloud native all-in-one machine according to claim 3, characterized in that, based on the project environment, obtaining the specified image product from the image warehouse specifically includes: 在所述项目环境为所述联网状态的情况下,从公网镜像仓库中拉取所述第三镜像制品;When the project environment is in the networked state, pulling the third image product from the public network image repository; 在所述项目环境为所述断网状态的情况下,对所述公网镜像仓库中的第三镜像制品进行实例化,将实例化后的所述第三镜像制品通过预设的传输介质拷贝至所述项目环境。When the project environment is in the disconnected state, the third image product in the public network image repository is instantiated, and the instantiated third image product is copied to the project environment via a preset transmission medium. 5.根据权利要求1所述的一种基于水利云原生一体机的业务开发方法,其特征在于,通过所述项目代码进行所述水利业务需求的开发,得到本地工程代码,具体包括:5. According to claim 1, a business development method based on a water conservancy cloud native all-in-one machine is characterized in that the water conservancy business needs are developed through the project code to obtain a local engineering code, which specifically includes: 在进行所述水利业务需求的开发时,确定实现所述水利业务需求是否存在依赖;When developing the water conservancy business needs, determining whether there is a dependency in realizing the water conservancy business needs; 若是,则从预设的Maven制品依赖库中拉取所述依赖,通过所述依赖完成对所述项目代码的开发,得到本地工程代码。If so, the dependency is pulled from the preset Maven artifact dependency library, and the project code is developed through the dependency to obtain the local engineering code. 6.根据权利要求1所述的一种基于水利云原生一体机的业务开发方法,其特征在于,根据得到的镜像制品,对所述水利项目的项目实例进行部署升级之后,所述方法还包括:6. A business development method based on a water conservancy cloud native all-in-one machine according to claim 1, characterized in that after deploying and upgrading the project instance of the water conservancy project according to the obtained image product, the method further comprises: 在部署升级后的项目实例未通过所在云部署环境中的镜像功能测试的情况下,对相应的代码分支进行功能优化,并基于优化后的所述代码分支,重新对所述代码分支进行镜像打包以及对项目实例进行部署升级,直至所述项目实例通过所在云部署环境中的镜像功能测试。If the deployed and upgraded project instance fails to pass the image function test in the cloud deployment environment, the corresponding code branch is functionally optimized, and based on the optimized code branch, the code branch is re-image packaged and the project instance is deployed and upgraded until the project instance passes the image function test in the cloud deployment environment. 7.一种基于水利云原生一体机的业务开发设备,其特征在于,所述设备包括:7. A business development device based on a water conservancy cloud native all-in-one machine, characterized in that the device includes: 至少一个处理器;at least one processor; 以及,与所述至少一个处理器通信连接的存储器;and, a memory communicatively coupled to the at least one processor; 其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1-6任一项所述的一种基于水利云原生一体机的业务开发方法。In which, the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a business development method based on a water conservancy cloud-native all-in-one machine as described in any one of claims 1-6. 8.一种非易失性计算机存储介质,存储有计算机可执行指令,其特征在于,所述计算机可执行指令设置为:8. A non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows: 如权利要求1-6任一项所述的一种基于水利云原生一体机的业务开发方法。A business development method based on a water conservancy cloud native all-in-one machine as described in any one of claims 1 to 6.
CN202411221545.5A 2024-09-02 2024-09-02 A business development method, device and medium based on water conservancy cloud native all-in-one machine Active CN119166107B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411221545.5A CN119166107B (en) 2024-09-02 2024-09-02 A business development method, device and medium based on water conservancy cloud native all-in-one machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411221545.5A CN119166107B (en) 2024-09-02 2024-09-02 A business development method, device and medium based on water conservancy cloud native all-in-one machine

Publications (2)

Publication Number Publication Date
CN119166107A CN119166107A (en) 2024-12-20
CN119166107B true CN119166107B (en) 2025-03-14

Family

ID=93888754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411221545.5A Active CN119166107B (en) 2024-09-02 2024-09-02 A business development method, device and medium based on water conservancy cloud native all-in-one machine

Country Status (1)

Country Link
CN (1) CN119166107B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741958A (en) * 2021-09-03 2021-12-03 科讯嘉联信息技术有限公司 Software development and delivery method and system based on cloud-native
CN116775103A (en) * 2023-03-14 2023-09-19 北京算立科技有限公司 Technical center platform system based on cloud native micro-service ecological architecture

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114115857B (en) * 2021-10-29 2024-04-05 北京邮电大学 Machine learning model automatic production line construction method and system
CN117785225A (en) * 2023-12-14 2024-03-29 之江实验室 An application release system and method based on Git warehouse
CN118245028A (en) * 2024-03-21 2024-06-25 山东浪潮智水数字科技有限公司 Water conservancy industry component library design method, device and equipment based on low-code platform and storage medium
CN117931159B (en) * 2024-03-22 2024-06-18 鱼快创领智能科技(南京)有限公司 Cloud native security-based low-code platform building system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741958A (en) * 2021-09-03 2021-12-03 科讯嘉联信息技术有限公司 Software development and delivery method and system based on cloud-native
CN116775103A (en) * 2023-03-14 2023-09-19 北京算立科技有限公司 Technical center platform system based on cloud native micro-service ecological architecture

Also Published As

Publication number Publication date
CN119166107A (en) 2024-12-20

Similar Documents

Publication Publication Date Title
US12081637B2 (en) Embedded database as a microservice for distributed container cloud platform
Singh et al. Comparison of different CI/CD tools integrated with cloud platform
US10237118B2 (en) Efficient application build/deployment for distributed container cloud platform
US11307839B2 (en) Updating of container-based applications
US20250141970A1 (en) Platform-as-a-service deployment including service domains
CN113778486B (en) Method, device, medium and equipment for containerization processing of code pipeline
CN112527349A (en) Dynamic deployment strategy optimization and continuous deployment service guarantee system
CN117714527A (en) Leveraging microservices for edge devices and associated networks
CN107783816A (en) The method and device that creation method and device, the big data cluster of virtual machine create
CN114461182A (en) Method and device for pipeline construction, electronic equipment and computer readable storage medium
US9542159B1 (en) Integration of revision control systems and process tools
US12086579B2 (en) Deriving a container from a package set
US20070204262A1 (en) Facilitating the automated testing of daily builds of software
CN114995835A (en) Application automation deployment method, system, equipment and readable storage medium
CN108897571A (en) Program is packaged dispositions method, device, system, electronic equipment and storage medium
CN117667109A (en) Environment deployment method and device, electronic equipment and storage medium
CN117648121A (en) Application delivery method, device, computer equipment and storage medium
CN119166107B (en) A business development method, device and medium based on water conservancy cloud native all-in-one machine
CN114035890A (en) Container technology-based CI/CD service deployment method, device, equipment and medium
CN113485726A (en) Application environment delivery method and device
US12353866B2 (en) Automated deployment of continuous integration
CN110377397B (en) Stock application rapid deployment and expansion method based on virtual machine replication
CN113485759A (en) Micro-service configuration information management system, method, electronic device and storage medium
WO2022184264A1 (en) Platform and method for building and deploying software applications
CN119718388B (en) Artificial intelligence platform and expansion and updating method, device, and electronic equipment

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20260112

Address after: 250101 Shandong Province, Jinan City, China (Shandong) Free Trade Zone, Jinan Area, No. 1036 Hailang Road, Building S01, 25th Floor, Room 2501

Patentee after: Shandong Inspur Zhishui Digital Technology Co.,Ltd.

Country or region after: China

Address before: 250101 Shandong Province, Jinan City, China (Shandong) Free Trade Zone, Jinan Area, No. 1036 Hailang Road, Building S01, 25th Floor, Room 2501

Patentee before: Shandong Inspur Zhishui Digital Technology Co.,Ltd.

Country or region before: China

Patentee before: Inspur Smart Technology Co.,Ltd.