CN112764881A - Method, system, computer device and storage medium for pipeline deployment mirroring - Google Patents

Method, system, computer device and storage medium for pipeline deployment mirroring Download PDF

Info

Publication number
CN112764881A
CN112764881A CN202110070905.6A CN202110070905A CN112764881A CN 112764881 A CN112764881 A CN 112764881A CN 202110070905 A CN202110070905 A CN 202110070905A CN 112764881 A CN112764881 A CN 112764881A
Authority
CN
China
Prior art keywords
mirror image
mirror
layer information
interceptor
container
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.)
Granted
Application number
CN202110070905.6A
Other languages
Chinese (zh)
Other versions
CN112764881B (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.)
Shenzhen Softcom Power Information Technology Co ltd
Original Assignee
Hangzhou Langche 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 Hangzhou Langche Technology Co ltd filed Critical Hangzhou Langche Technology Co ltd
Priority to CN202110070905.6A priority Critical patent/CN112764881B/en
Publication of CN112764881A publication Critical patent/CN112764881A/en
Application granted granted Critical
Publication of CN112764881B publication Critical patent/CN112764881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45587Isolation or security of virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application relates to a method, a system, computer equipment and a storage medium for pipeline deployment mirror image, wherein the step of acquiring first mirror image layer information sent by a pipeline by an interceptor comprises the following steps: the production line generates first mirror image layer information according to the mirror images uploaded to the container mirror image warehouse, the interceptor intercepts a request instruction of the cloud computing platform for requesting the container mirror image warehouse to acquire the mirror images, acquires second mirror image layer information corresponding to the request instruction from the container mirror image warehouse, compares the first mirror image layer information with the second mirror image layer information, the cloud computing platform starts to pull the mirror images for installation and deployment under the condition that the first mirror image layer information is the same as the second mirror image layer information, and feeds back mirror image acquisition failure information to the cloud computing platform under different conditions.

Description

Method, system, computer device and storage medium for pipeline deployment mirroring
Technical Field
The present application relates to the field of computer software technology application technologies, and in particular, to a method, a system, a computer device, and a storage medium for pipeline deployment mirroring.
Background
With the continuous development of network technology, the problem of network security becomes a key point of social attention, in a cloud computing scene, a user uses a production line to compile codes and package a mirror image and uploads the mirror image to a container mirror image warehouse, and then a cloud computing platform pulls a corresponding mirror image from the container mirror image warehouse to issue. Because the container mirror image warehouse is open, a user can not only use the assembly line to push mirror images to the container mirror image warehouse, but also can push the mirror images in a manual mode, and therefore the mirror image production party deployed by the cloud computing platform cannot be ensured to be the assembly line. The solution is provided for ensuring that a mirror image producer deployed by a cloud computing platform is a corresponding production line.
At present, no effective solution is provided for the problem of how to ensure that the production side of the mirror image deployed by the cloud computing platform is a production line in the related technology.
Disclosure of Invention
The embodiment of the application provides a method, a system, computer equipment and a storage medium for pipeline deployment of images, so as to at least solve the problem in the related art that how to ensure that the producer of the images deployed by a cloud computing platform is a pipeline.
In a first aspect, an embodiment of the present application provides a method for pipeline deployment mirroring, where the method includes:
the method comprises the steps that an interceptor obtains first mirror image layer information sent by a production line, wherein the production line generates the first mirror image layer information according to a mirror image uploaded to a container mirror image warehouse;
the interceptor intercepts a request instruction of a cloud computing platform for requesting the container mirror image warehouse to acquire a mirror image;
the interceptor acquires second mirror image layer information corresponding to the request instruction from the container mirror image warehouse;
the interceptor compares the first mirror layer information with the second mirror layer information:
and under the condition that the first mirror image layer information is the same as the second mirror image layer information, the cloud computing platform starts to pull the mirror image for installation and deployment, and under the condition that the first mirror image layer information is different from the second mirror image layer information, the interceptor feeds back mirror image acquisition failure information to the cloud computing platform.
In some embodiments, the pipeline generating the first mirror layer information from the mirror uploaded to the container mirror store comprises: the assembly line comprises a Jenkins assembly line, codes are compiled by the Jenkins assembly line, Docker mirror images are constructed, the Docker mirror images are packaged and pushed to the container mirror image warehouse, and the first mirror image layer information is generated.
In some embodiments, the first mirror layer information and the second mirror layer information each include a mirror layer list recording base information of each layer of the mirror and a digest encrypted by sha 256.
In a second aspect, an embodiment of the present application provides a system for pipeline deployment mirroring, where the system includes a pipeline, an interceptor, and a container mirroring warehouse;
the method comprises the steps that an interceptor obtains first mirror image layer information sent by a production line, wherein the production line generates the first mirror image layer information according to a mirror image uploaded to a container mirror image warehouse;
the interceptor intercepts a request instruction of a cloud computing platform for requesting the container mirror image warehouse to acquire a mirror image;
the interceptor acquires second mirror image layer information corresponding to the request instruction from the container mirror image warehouse;
the interceptor compares the first mirror layer information with the second mirror layer information:
and under the condition that the first mirror image layer information is the same as the second mirror image layer information, the cloud computing platform starts to pull the mirror image for installation and deployment, and under the condition that the first mirror image layer information is different from the second mirror image layer information, the interceptor feeds back mirror image acquisition failure information to the cloud computing platform.
In some embodiments, the pipeline generating the first mirror layer information from the mirror uploaded to the container mirror store comprises: the assembly line comprises a Jenkins assembly line, codes are compiled by the Jenkins assembly line, Docker mirror images are constructed, the Docker mirror images are packaged and pushed to the container mirror image warehouse, and the first mirror image layer information is generated.
In some embodiments, the first mirror layer information and the second mirror layer information obtained by the interceptor each include a mirror layer list, and the mirror layer list records base information of each layer of the mirror and a digest encrypted by sha 256.
In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the method for pipeline deployment mirroring as described in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method for pipeline deployment mirroring as described in the first aspect above.
Compared with the related art, the method, the system, the computer equipment and the storage medium for deploying the mirror images in the production line provided by the embodiment of the application acquire the first mirror image layer information sent by the production line through the interceptor, wherein the production line generates the first mirror image layer information according to the mirror images uploaded to the container mirror image warehouse; the interceptor intercepts a request instruction of the cloud computing platform for requesting the container mirror image warehouse to acquire a mirror image, acquires second mirror image layer information corresponding to the request instruction from the container mirror image warehouse, compares the first mirror image layer information with the second mirror image layer information, and starts to pull the mirror image for installation and deployment under the condition that the first mirror image layer information is the same as the second mirror image layer information.
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 application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram of an application environment of a pipeline deployment mirroring method according to an embodiment of the present application;
FIG. 2 is a timing diagram illustrating operation of a deployment mirroring method according to the related art;
FIG. 3 is a block diagram of a pipeline deployment mirroring system according to an embodiment of the application;
FIG. 4 is a timing diagram illustrating the operation of pipeline 31 in a mirror deployment approach according to an embodiment of the present application;
FIG. 5 is a flowchart of the steps of a pipeline 31 deployment mirroring method according to an embodiment of the present application;
fig. 6 is an internal structural diagram of an electronic device according to an embodiment of the present application.
Description of the drawings: 11. a terminal; 12. a server; 31. a production line; 32. an interceptor; 33. a container mirror image warehouse; 34. and (3) a cloud computing platform.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The pipeline deployment mirror method provided in the embodiment of the present application may be applied to an application environment of a privatized mirror warehouse as shown in fig. 1, where fig. 1 is a schematic view of an application environment of the pipeline deployment mirror method according to the embodiment of the present application, and as shown in fig. 1, a terminal 11 and a server 12 communicate with each other through a network. A pipeline and an interceptor are deployed in the terminal 11, a cloud computing platform and a container mirror image warehouse are deployed in the server 12, and the interceptor acquires first mirror image layer information sent by the pipeline; the interceptor intercepts a request instruction of requesting the container mirror image warehouse to acquire a mirror image from the cloud computing platform; the interceptor acquires second mirror image layer information corresponding to the request instruction from the container mirror image warehouse; the interceptor compares the first mirror layer information with the second mirror layer information; under the condition that the first mirror image layer information is the same as the second mirror image layer information, the cloud computing platform starts to pull the mirror image for installation and deployment, and under the condition that the first mirror image layer information is different from the second mirror image layer information, the interceptor feeds back mirror image acquisition failure information to the cloud computing platform; the terminal 11 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 12 may be implemented by an independent server or a server cluster composed of a plurality of servers.
In the related art, fig. 2 is a schematic diagram of an operation timing sequence according to a mirror image deployment method in the related art, as shown in fig. 2, a user compiles a code to generate a mirror image and uploads the mirror image to a container mirror image warehouse, and a cloud computing platform sends an instruction to the container mirror image warehouse to request to acquire the mirror image in the container mirror image warehouse. The cloud computing platform pulls the mirror image in the container mirror image warehouse for deployment and release;
because the user, the container mirror image warehouse and the cloud computing platform are directly communicated, as shown in the operation steps shown in fig. 2, the user uploads the compiled mirror image to the container mirror image warehouse, the cloud computing platform can directly pull the mirror image through the container mirror image warehouse for deployment and release, and the production and deployment of the mirror image are not screened at all, so that the mirror image producer for deployment and release of the cloud computing platform cannot be ensured to be a corresponding production line.
An embodiment of the present application provides a pipeline deployment mirroring system, where the system is configured to implement the foregoing embodiment, fig. 3 is a block diagram of a structure of the pipeline deployment mirroring system according to the embodiment of the present application, and as shown in fig. 3, the system includes a pipeline 31, a container mirror warehouse 32, an interceptor 33, and a cloud computing platform 34;
the interceptor 33 obtains first mirror layer information sent by the pipeline 31, wherein the pipeline 31 generates the first mirror layer information according to the mirror image uploaded to the container mirror repository 32;
the interceptor 33 intercepts a request instruction of the cloud computing platform 34 requesting the container mirror repository 32 to acquire a mirror;
the interceptor 33 acquires the second mirror layer information corresponding to the request instruction from the container mirror repository 32;
the interceptor 33 compares the first mirror layer information with the second mirror layer information:
under the condition that the first mirror layer information and the second mirror layer information are the same, the cloud computing platform 34 starts to pull the mirror for installation and deployment, and under the condition that the first mirror layer information and the second mirror layer information are different, the interceptor 33 feeds back mirror acquisition failure information to the cloud computing platform 34.
In some of these embodiments, the pipeline 31 generating the first mirror layer information from the mirror uploaded to the container mirror store 32 includes: the assembly line comprises a Jenkins assembly line, codes are compiled by the Jenkins assembly line, Docker images are built, the Docker images are packaged and pushed to the container image warehouse 32, and first image layer information is generated.
In some embodiments, the first mirror layer information and the second mirror layer information obtained by the interceptor 33 each include a mirror layer list, and the mirror layer list records the basic information of each layer of the mirror and the digest encrypted by the sha 256.
In the system in this embodiment of the application, the interceptor 33 acquires the first mirror layer information sent by the pipeline 31, the interceptor 33 intercepts a request instruction that the cloud computing platform 34 requests the container mirror repository 32 to acquire a mirror, acquires the second mirror layer information corresponding to the request instruction from the container mirror repository 32, and compares the first mirror layer information and the second mirror layer information, thereby ensuring that a mirror producer deployed by the cloud computing platform 34 is the corresponding pipeline 31.
An embodiment of the present application provides a pipeline deployment mirroring method, fig. 4 is an operation timing diagram of a pipeline 31 deployment mirroring method according to an embodiment of the present application, and as shown in fig. 4, the method may be divided into two stages, namely a production stage and a deployment issue stage;
the production stage comprises: the pipeline 31 compiles codes to generate a packaged mirror image, uploads the packaged mirror image to the container mirror image warehouse 32, generates first mirror image layer information according to the mirror image uploaded to the container mirror image warehouse 32, and sends the first mirror image layer information to the interceptor 33;
a deployment and release stage: the interceptor 33 intercepts a request instruction of the cloud computing platform 34 requesting the container mirror repository 32 to acquire a mirror image, acquires second mirror image layer information corresponding to the request instruction from the container mirror repository 32, compares the first mirror image layer information with the second mirror image layer information, the cloud computing platform 34 starts to pull the mirror image for installation and deployment under the condition that the first mirror image layer information is the same as the second mirror image layer information, and the interceptor 33 feeds back mirror image acquisition failure information to the cloud computing platform 34 under the condition that the first mirror image layer information is different from the second mirror image layer information.
The first mirror layer information sent by the pipeline 31 is acquired through the interceptor 33, the interceptor 33 intercepts a request instruction of the cloud computing platform 34 for requesting the container mirror warehouse 32 to acquire a mirror, the second mirror layer information corresponding to the request instruction is acquired from the container mirror warehouse 32, and the first mirror layer information and the second mirror layer information are compared, so that the mirror producer deployed by the cloud computing platform 34 is ensured to be the corresponding pipeline 31.
Preferably, the generating of the first mirror layer information by the pipeline 31 according to the mirror uploaded to the container mirror store 32 includes: the assembly line comprises a Jenkins assembly line, codes are compiled by the Jenkins assembly line, Docker images are built, the Docker images are packaged and pushed to the container image warehouse 32, and first image layer information is generated.
Preferably, the first mirror layer information and the second mirror layer information each include a mirror layer list recording base information of each layer of the mirror and a digest encrypted by sha 256.
By describing and explaining the embodiments of the present application in conjunction with specific applications, fig. 5 is a flowchart illustrating steps of a method for deploying mirroring in a pipeline 31 according to an embodiment of the present application, and as shown in fig. 5, the embodiment includes the following steps:
s502, compiling the pipeline 31(Jenkins pipeline) to construct a mirror image;
s504, the pipeline 31(Jenkins pipeline) pushes the mirror image to the container mirror image warehouse 32;
s506, the pipeline 31(Jenkins pipeline) sends the mirrored layer list (recording the basic information of each layer of the mirror and the digest encrypted by the sha 256) of the mirror to the interceptor 33;
s508, the interceptor 33 intercepts a request instruction of the cloud computing platform 34 for requesting the container mirror image warehouse 32 to acquire a mirror image;
s510, the interceptor 33 acquires a mirror layer list (recording the basic information of each layer of the mirror and the digest encrypted by sha 256) corresponding to the request instruction from the container mirror repository 32;
s512, the interceptor 33 compares the mirror layer list of the pipeline 31 with the mirror layer list of the container mirror warehouse 32;
s514, if the comparison is successful, the cloud computing platform 34 starts to pull the mirror image for installation and deployment;
s516, if the comparison fails, the interceptor 33 feeds back the mirror image acquisition failure information to the cloud computing platform 34.
In the preferred embodiment, through steps S502 to S516, the problem that the mirror image deployed by the cloud computing platform 34 cannot ensure that the producer is the pipeline 31 is solved, and the mirror image deployed by the cloud computing platform 34 is ensured that the producer is the corresponding pipeline 31.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
In an embodiment, fig. 6 is a schematic internal structure diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 6, there is provided an electronic device, which may be a server, and its internal structure diagram may be as shown in fig. 6. The electronic device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the electronic device is used for storing data. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program when executed by a processor implements a method of pipeline deployment mirroring.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be understood by those skilled in the art that various features of the above-described embodiments can be combined in any combination, and for the sake of brevity, all possible combinations of features in the above-described embodiments are not described in detail, but rather, all combinations of features which are not inconsistent with each other should be construed as being within the scope of the present disclosure.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A method for pipeline deployment mirroring, the method comprising:
the method comprises the steps that an interceptor obtains first mirror image layer information sent by a production line, wherein the production line generates the first mirror image layer information according to a mirror image uploaded to a container mirror image warehouse;
the interceptor intercepts a request instruction of a cloud computing platform for requesting the container mirror image warehouse to acquire a mirror image;
the interceptor acquires second mirror image layer information corresponding to the request instruction from the container mirror image warehouse;
the interceptor compares the first mirror layer information with the second mirror layer information:
and under the condition that the first mirror image layer information is the same as the second mirror image layer information, the cloud computing platform starts to pull the mirror image for installation and deployment, and under the condition that the first mirror image layer information is different from the second mirror image layer information, the interceptor feeds back mirror image acquisition failure information to the cloud computing platform.
2. The method of claim 1, wherein the pipeline generating the first mirror layer information from the mirror uploaded to the container mirror store comprises: the assembly line comprises a Jenkins assembly line, codes are compiled by the Jenkins assembly line, Docker mirror images are constructed, the Docker mirror images are packaged and pushed to the container mirror image warehouse, and the first mirror image layer information is generated.
3. The method according to claim 1, wherein the first mirror layer information and the second mirror layer information each include a mirror layer list that records base information of mirroring each layer and a digest encrypted by sha 256.
4. A system for pipeline deployment mirroring is characterized by comprising a pipeline, an interceptor and a container mirroring warehouse;
the method comprises the steps that an interceptor obtains first mirror image layer information sent by a production line, wherein the production line generates the first mirror image layer information according to a mirror image uploaded to a container mirror image warehouse;
the interceptor intercepts a request instruction of a cloud computing platform for requesting the container mirror image warehouse to acquire a mirror image;
the interceptor acquires second mirror image layer information corresponding to the request instruction from the container mirror image warehouse;
the interceptor compares the first mirror layer information with the second mirror layer information:
and under the condition that the first mirror image layer information is the same as the second mirror image layer information, the cloud computing platform starts to pull the mirror image for installation and deployment, and under the condition that the first mirror image layer information is different from the second mirror image layer information, the interceptor feeds back mirror image acquisition failure information to the cloud computing platform.
5. The system of claim 4, wherein the pipeline generating the first mirror layer information from the mirror uploaded to the container mirror store comprises: the assembly line comprises a Jenkins assembly line, codes are compiled by the Jenkins assembly line, Docker mirror images are constructed, the Docker mirror images are packaged and pushed to the container mirror image warehouse, and the first mirror image layer information is generated.
6. The system according to claim 4, wherein the first mirror layer information and the second mirror layer information obtained by the interceptor each include a mirror layer list recording base information of each layer of the mirror and a digest encrypted by sha 256.
7. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the method of pipeline deployment mirroring of any of claims 1 to 3.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of pipeline deployment mirroring of any one of claims 1 to 3.
CN202110070905.6A 2021-01-19 2021-01-19 Method, system, computer device and storage medium for pipeline deployment mirroring Active CN112764881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110070905.6A CN112764881B (en) 2021-01-19 2021-01-19 Method, system, computer device and storage medium for pipeline deployment mirroring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110070905.6A CN112764881B (en) 2021-01-19 2021-01-19 Method, system, computer device and storage medium for pipeline deployment mirroring

Publications (2)

Publication Number Publication Date
CN112764881A true CN112764881A (en) 2021-05-07
CN112764881B CN112764881B (en) 2024-04-05

Family

ID=75703334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110070905.6A Active CN112764881B (en) 2021-01-19 2021-01-19 Method, system, computer device and storage medium for pipeline deployment mirroring

Country Status (1)

Country Link
CN (1) CN112764881B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535324A (en) * 2021-06-25 2021-10-22 杭州朗澈科技有限公司 Method and system for pulling mirror image at edge side

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170269921A1 (en) * 2016-03-18 2017-09-21 TUPL, Inc. Continuous and automatic application development and deployment
CN110275717A (en) * 2019-05-17 2019-09-24 平安科技(深圳)有限公司 Privately owned echo cloning method, apparatus, computer equipment and storage medium
CN111459539A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Continuous integration pipeline operation method and device based on mirror layering
CN111610967A (en) * 2020-04-08 2020-09-01 曙光信息产业(北京)有限公司 Continuous integration and deployment method and device based on cloud management platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170269921A1 (en) * 2016-03-18 2017-09-21 TUPL, Inc. Continuous and automatic application development and deployment
CN110275717A (en) * 2019-05-17 2019-09-24 平安科技(深圳)有限公司 Privately owned echo cloning method, apparatus, computer equipment and storage medium
CN111459539A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Continuous integration pipeline operation method and device based on mirror layering
CN111610967A (en) * 2020-04-08 2020-09-01 曙光信息产业(北京)有限公司 Continuous integration and deployment method and device based on cloud management platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535324A (en) * 2021-06-25 2021-10-22 杭州朗澈科技有限公司 Method and system for pulling mirror image at edge side
CN113535324B (en) * 2021-06-25 2024-04-05 深圳软通动力信息技术有限公司 Method and system for edge side pull mirroring

Also Published As

Publication number Publication date
CN112764881B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN110609732B (en) Application program deployment method and device, computer equipment and storage medium
CN110008118B (en) Page data testing method and device, computer equipment and storage medium
CN110866198B (en) Static resource caching method, system, device, computer equipment and storage medium
CN102135892B (en) Application program running method, device and system
US20110289499A1 (en) Techniques to automatically update software applications
CN109144487B (en) Method, device, computer equipment and storage medium for developing business of parts
US9930063B2 (en) Random identifier generation for offline database
CN111242317A (en) Method and device for managing application, computer equipment and storage medium
WO2020199594A1 (en) Service component loading method and apparatus, and computer device and storage medium
CN113507516A (en) File service method, access server, computer device and storage medium
CN109389299B (en) Workflow process deployment method, workflow process deployment device, computer equipment and storage medium
CN110908778A (en) Task deployment method, system and storage medium
CN111190609B (en) Service processing method, device, equipment and storage medium
CN111460394A (en) Copyright file verification method and device and computer readable storage medium
CN112764881A (en) Method, system, computer device and storage medium for pipeline deployment mirroring
CN112527357A (en) Service hot loading updating method and device, computer equipment and storage medium
CN110531984A (en) Code compiling method, device, system, computer equipment and storage medium
CN111209061A (en) Method and device for filling in user information, computer equipment and storage medium
CN103747029A (en) File transmission method, device and system
CN108848165B (en) Service request processing method and device, computer equipment and storage medium
CN104573496A (en) Method and device for inhibiting starting items from starting
CN111221853A (en) Medicine list abnormity detection method and device, computer equipment and storage medium
CN113093995A (en) Cloud disk data migration method and system
US11182508B1 (en) Enhanced version retention systems and methods
CN104580429A (en) Method for loading communication information, server and cloud disk client

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

Effective date of registration: 20220803

Address after: 100094 Room 502, floor 5, building 16, East District, yard 10, northwest Wangdong Road, Haidian District, Beijing

Applicant after: Softcom power information technology (Group) Co.,Ltd.

Address before: 311100 Room 802, building 12, 1818-2, Wenyi West Road, Yuhang street, Yuhang District, Hangzhou City, Zhejiang Province

Applicant before: HANGZHOU LANGCHE TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220907

Address after: 518000 floor 2-24, building a, Zhongshe Plaza, No.1028, Buji Road, Dongxiao street, Luohu District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Softcom Power Information Technology Co.,Ltd.

Address before: 100094 Room 502, floor 5, building 16, East District, yard 10, northwest Wangdong Road, Haidian District, Beijing

Applicant before: Softcom power information technology (Group) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant