CN117519912B - Mirror image warehouse deployment method, device, storage medium and equipment - Google Patents

Mirror image warehouse deployment method, device, storage medium and equipment Download PDF

Info

Publication number
CN117519912B
CN117519912B CN202410013712.0A CN202410013712A CN117519912B CN 117519912 B CN117519912 B CN 117519912B CN 202410013712 A CN202410013712 A CN 202410013712A CN 117519912 B CN117519912 B CN 117519912B
Authority
CN
China
Prior art keywords
deployment
configuration parameters
mirror image
warehouse
environment
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
CN202410013712.0A
Other languages
Chinese (zh)
Other versions
CN117519912A (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.)
Zhejiang Lab
Original Assignee
Zhejiang Lab
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 Zhejiang Lab filed Critical Zhejiang Lab
Priority to CN202410013712.0A priority Critical patent/CN117519912B/en
Publication of CN117519912A publication Critical patent/CN117519912A/en
Application granted granted Critical
Publication of CN117519912B publication Critical patent/CN117519912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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)
  • Stored Programmes (AREA)

Abstract

The present specification discloses a method, a device, a storage medium, and a device for deploying a mirror image warehouse, and an application mirror image warehouse deployment system, where a preconfigured deployment template is stored in the mirror image warehouse deployment system, a deployment configuration interface is displayed to a user, environmental information of an environment where a mirror image warehouse to be deployed is located and configuration parameters of the mirror image warehouse to be deployed are determined in response to input operation of the user in the deployment configuration interface, a deployment script is generated according to the configuration parameters and a pre-stored deployment template, and the mirror image warehouse corresponding to the configuration parameters is deployed in a deployment environment corresponding to the environmental information by using the deployment script, so that a threshold of mirror image warehouse deployment is reduced, and efficiency of mirror image warehouse deployment is improved.

Description

Mirror image warehouse deployment method, device, storage medium and equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a storage medium, and a device for mirror image warehouse deployment.
Background
The application deployment by using the container mirror image can solve the problem of incompatibility of the application caused by the difference between the development environment and the application environment, and the development and running of the container application are not separated from the management of the mirror image, so that the mirror image warehouse is the mirror image warehouse for supporting the mirror image management.
By uploading the developed images to the image repository and then pulling the corresponding images on the test or production environment, the user can complete the distribution of the images by just a few commands or even automatically. Because of interface bandwidth and security issues, most enterprise users often do not select a common image repository when designing images of critical content. However, the deployment of private image warehouse often depends on yaml language, and related configuration of the image warehouse needs to be reset every time, so that the manual threshold is high in the process, and the deployment efficiency of the image warehouse is affected.
Thus, the invention provides a method, a device, a storage medium and equipment for mirror warehouse deployment.
Disclosure of Invention
The present disclosure provides a method and apparatus for mirror warehouse deployment, so as to partially solve the foregoing problems in the prior art.
The technical scheme adopted in the specification is as follows:
the specification provides a mirror warehouse deployment method, which is applied to a mirror warehouse deployment system, wherein a preconfigured deployment template is stored in the mirror warehouse deployment system, and the method comprises the following steps:
displaying a deployment configuration interface to a user;
responding to input operation of a user in a deployment configuration interface, and determining environment information of an environment where a mirror image warehouse to be deployed is located and configuration parameters of the mirror image warehouse to be deployed;
generating a deployment script according to the configuration parameters and a pre-stored deployment template;
and deploying the mirror image warehouse corresponding to the configuration parameter in the deployment environment corresponding to the environment information by using the deployment script.
Optionally, the environmental information includes: at least one of an IP address, a domain name, and a name of the environment to be deployed.
Optionally, generating a deployment script according to the configuration parameters and a pre-stored deployment template, which specifically includes:
matching the configuration parameters of the mirror image warehouse to be deployed with the configuration parameters stored in the database;
when the matching is successful, the deployment script corresponding to the configuration parameters in the matched database is used as the generated deployment script.
Optionally, the mirror warehouse deployment system further includes a database;
after generating a deployment script according to the configuration parameters and the pre-stored deployment templates, the method further comprises:
and storing the deployment script and the configuration parameters corresponding to the deployment script into a database.
Optionally, the method further comprises:
responding to configuration updating operation of a user, and determining the environment where the mirror image warehouse to be updated is located and updating configuration parameters;
generating an update script according to the update configuration parameters and a pre-stored deployment template;
and updating the mirror image warehouse in the environment where the mirror image warehouse to be updated is located according to the update script.
Optionally, the method further comprises:
responding to the removal operation of the user, and determining the environment where the mirror image warehouse to be removed is located;
and removing the mirror image warehouse in the environment where the mirror image warehouse to be removed is located.
Optionally, the deployment configuration interface specifically includes: each configuration parameter to be filled in, each optional parameter corresponding to each configuration parameter to be filled in, each environment information to be filled in, and each optional environment information corresponding to each environment information to be filled in;
responding to the input operation of a user in a deployment configuration interface, determining the environment information of the environment where the mirror image warehouse to be deployed is located and the configuration parameters of the mirror image warehouse to be deployed, wherein the method specifically comprises the following steps:
according to optional parameters selected by a user for the configuration parameters to be filled in the deployment configuration interface and optional parameter information selected by the user for the environment information to be filled in the deployment configuration interface, determining the environment information of the environment where the mirror warehouse to be deployed is located and the configuration parameters of the mirror warehouse to be deployed.
The present specification provides an apparatus for mirror warehouse deployment, the apparatus having a pre-configured deployment template stored therein, the apparatus comprising:
the display module displays a deployment configuration interface to a user;
the determining module is used for responding to the input operation of a user in the deployment configuration interface and determining the environment information of the environment where the mirror image warehouse to be deployed is located and the configuration parameters of the mirror image warehouse to be deployed;
the generation module is used for generating a deployment script according to the configuration parameters and a pre-stored deployment template;
and the deployment module deploys the mirror warehouse corresponding to the configuration parameter in the deployment environment corresponding to the environment information by utilizing the deployment script.
The present specification provides a computer readable storage medium storing a computer program which when executed by a processor implements the method of mirrored repository deployment described above.
The present specification provides an apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of mirrored repository deployment described above when executing the program.
The above-mentioned at least one technical scheme that this specification adopted can reach following beneficial effect:
the mirror image warehouse deployment method provided by the specification is applied to a mirror image warehouse deployment system, wherein a preconfigured deployment template is stored in the mirror image warehouse deployment system, and the method comprises the following steps: displaying a deployment configuration interface to a user, responding to input operation of the user in the deployment configuration interface, determining environment information of an environment where a mirror image warehouse to be deployed is located and configuration parameters of the mirror image warehouse to be deployed, generating a deployment script according to the configuration parameters and a pre-stored deployment template, and deploying the mirror image warehouse corresponding to the configuration parameters in a deployment environment corresponding to the environment information by using the deployment script.
According to the method, a user does not need to know the configuration file and the computer language required by configuration, and only needs to fill in the environment information and the configuration parameters arranged in the deployment configuration interface according to the actual application requirements, the mirror warehouse deployment system can automatically generate the deployment script and complete the deployment of the mirror warehouse, the threshold of the deployment of the mirror warehouse is reduced, and the efficiency of the deployment of the mirror warehouse is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification, illustrate and explain the exemplary embodiments of the present specification and their description, are not intended to limit the specification unduly. In the drawings:
FIG. 1 is a schematic flow chart of a mirror warehouse deployment method in the present specification;
FIG. 2 is a schematic diagram of an apparatus for mirrored warehouse deployment provided herein;
fig. 3 is a schematic view of the electronic device corresponding to fig. 1 provided in the present specification.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present specification more apparent, the technical solutions of the present specification will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present application based on the embodiments herein.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
The existence of the mirror image warehouse provides convenience for the management and distribution of the container mirror images, and as an indispensable ring in the container mirror image management flow, the Docker official provides a public mirror image warehouse Docker Hub in which a user can register accounts, so that a private mirror image warehouse of the user can be established to privately manage the container mirror images of the user. But is limited by factors such as service architecture, access speed, access rights, and cost, and when faced with users with large-scale, high-access-volume, high-privacy requirements, etc., the official mirror warehouse often fails to meet the corresponding requirements. The solutions of private warehouses such as Quay, nexus, artifactory, harbor and the like are also sequentially introduced to meet various requirements and scenes, but the current deployment method of the mirror image warehouse is higher in upper threshold, and the deployment cannot be completed in batches and automatically. Therefore, the specification provides a mirror image warehouse deployment method, which is based on the Kubernetes container arrangement technology, applies a mirror image warehouse deployment system which is arranged in advance, and deploys a private mirror image warehouse for a user. The mirror image warehouse deployment system consists of a front-end user interaction interface and a rear-end control system, wherein a pre-configured deployment template is stored in a control console of the rear end, and based on a deployment file of a mirror image warehouse to be deployed, configuration parameters which are required to be configured by a user in the deployment file are extracted to be arranged in the deployment configuration interface in a subsequent step for the user to input and fill in. The mirror warehouse deployment system may be disposed in the cloud or deployed in the local computing node in the form of an application, which is not limited herein, and only the case where the mirror warehouse deployment system is deployed in the cloud will be described below.
Fig. 1 is a flow chart of a method for deploying a mirror image warehouse in the present specification, where the method for deploying a mirror image warehouse specifically includes the following steps:
s100: the deployment configuration interface is presented to the user.
When a user with the requirement of deploying the mirror image warehouse logs in the mirror image warehouse deployment system arranged at the cloud, responding to a deployment request of the user, displaying a deployment configuration interface for the user through a user interaction interface, wherein the deployment configuration interface comprises configuration parameters of the mirror image warehouse to be deployed to be filled in, environment information of the environment where the mirror image warehouse to be deployed to be filled in and the like. Specifically, the configuration parameters and the environment information in the deployment configuration interface may be arranged in a form of "parameter name-parameter value to be filled in" or in a form of "parameter name-optional parameter item", which is not limited herein. The back-end control personnel can adjust the elements needing to be configured by the user in the deployment configuration interface in advance so as to select to display all the elements to the user for configuration or display part of the elements to the user for configuration, and the rest elements are filled in the corresponding deployment templates in a default form. Therefore, a user does not need to know the configuration file and the computer language required by configuration, but only needs to fill in the environment information and the configuration parameters arranged in the deployment configuration interface according to the actual application requirements, so that the upper threshold of mirror warehouse deployment is reduced.
In one or more embodiments of the present specification, the environmental information includes: at least one of an IP address, a domain name, and a name of the environment to be deployed. Therefore, the back-end control system can determine the environment in which the mirror warehouse to be deployed is located according to the environment information. In particular, the environment information may further include a Kubernetes key and a certificate of the target environment, so that the user may normally access the environment where the image repository to be deployed is located and call the corresponding Kubernetes service to complete the deployment of the image repository.
In one or more embodiments of the present specification, the configuration information includes: the method comprises the steps of exposing types of the image warehouse to be deployed, exposing links of the image warehouse to be deployed, certificates of the image warehouse to be deployed, persistent user storage requests (PVC, persistentVolumeClaim), back-end storage information, a switch of a non-core component of the image warehouse to be deployed, image versions of the image warehouse components and the number of copies of the image warehouse components.
S102: and responding to the input operation of the user in the deployment configuration interface, and determining the environment information of the environment where the mirror image warehouse to be deployed is located and the configuration parameters of the mirror image warehouse to be deployed.
After receiving the deployment configuration interface, a user can fill in corresponding parameter values at corresponding positions of the deployment configuration interface according to the environmental information and the parameter names of the configuration parameters, which are given in the deployment configuration interface, so as to complete parameter configuration of the mirror warehouse which needs to be deployed by the user, and after filling in all the environmental information and the configuration parameters, the parameter values are submitted to the back end of the mirror warehouse deployment system. After the back-end control system receives the environment information and the configuration information input by the user in the deployment configuration interface, the back-end control system of the mirror image warehouse deployment system can determine the environment information of the environment where the mirror image warehouse to be deployed is located and the configuration parameters of the mirror image warehouse to be deployed according to the content input by the user.
The user can only complete filling of the environmental information and partial parameter values of the configuration parameters given in the configuration interface, and the parameter values are submitted to the back end of the mirror warehouse configuration system after completion, so that the back end control system automatically fills the parameter values of the parameter items which are not filled in by the user as default values.
S104: generating a deployment script according to the configuration parameters and a pre-stored deployment template.
After the configuration parameters of the mirror image warehouse to be deployed are determined according to the input content of the user, the configuration parameters in the corresponding deployment files are filled in by utilizing the parameter values of the configuration parameters of the mirror image warehouse to be deployed, which are input by the user, according to the matching relation between the parameter values and the parameter names in the deployment template, and the deployment script corresponding to the configuration parameters is generated.
S106: and deploying the mirror image warehouse corresponding to the configuration parameter in the deployment environment corresponding to the environment information by using the deployment script.
In step S102, the backend control system has determined, according to the content input by the user, environment information of the environment in which the image warehouse to be deployed is located, thereby determining, according to the environment information, the target environment in which the image warehouse to be deployed is located. The mirror warehouse deployment system may complete the mirror warehouse deployment in the target environment using the deployment script corresponding to the user' S deployment request generated in step S104. In one or more embodiments of the present disclosure, after the deployment of the mirror warehouse is completed, the health status of the mirror warehouse may also be checked to see if each service module of the mirror warehouse is normally started, and the current status of the mirror warehouse is fed back to the user through the front-end interactive interface of the mirror warehouse deployment system.
Based on the mirror image warehouse deployment method shown in fig. 1, a user does not need to know a configuration file and a computer language required by configuration, but only needs to fill in environment information and configuration parameters arranged in a deployment configuration interface according to actual application requirements, and a mirror image warehouse deployment system can automatically generate a deployment script and complete the deployment of a mirror image warehouse, so that the threshold of the mirror image warehouse deployment is reduced, and the efficiency of the mirror image warehouse deployment is improved.
In addition, in one or more embodiments of the present description, the mirrored repository deployment system further includes a database in which a plurality of directly callable deployment scripts having different configuration parameters are stored, each deployment script indexed by the configuration parameters in the deployment script.
Thus, in step S102 shown in fig. 1, after determining the configuration parameters of the image warehouse to be deployed according to the content input by the user, the configuration parameters of the image warehouse to be deployed may be used to match with the configuration parameters stored in the database, and when the matching is successful, the deployment script corresponding to the configuration parameters in the matched database is used as the generated deployment script; when the matching is unsuccessful (i.e. the determined configuration parameters are not stored in the database), step S104 can be executed, a deployment script is generated according to the determined configuration parameters and a pre-stored deployment template, and the deployment script and the configuration parameters corresponding to the deployment script are stored in the database. Through the step of storing the deployment script and the configuration parameters into the database, when the configuration parameters input by a user are common configuration parameters, the back-end control system can complete the deployment of the mirror image warehouse corresponding to the configuration parameters without generating the deployment script additionally, and because the deployment script is generated according to the configuration parameters, a certain time is consumed, the efficiency of deploying the mirror image warehouse is further improved by using the deployment script in the database without creating a new deployment script.
Because the configuration parameters of the mirror image warehouse to be deployed, which are required to be filled by the user, have more parameter items, and it is inconvenient to directly use all the configuration parameters as indexes when storing and searching.
The method for deploying the mirror image warehouse provided by the specification further comprises the following steps after the deployment of the mirror image warehouse is completed: updating or removing the deployed mirror warehouse. When updating the mirror image warehouse, determining the environment where the mirror image warehouse to be updated is located and updating configuration parameters in response to configuration updating operation of a user, generating an updating script according to the updating configuration parameters and a pre-stored deployment template, and updating the mirror image warehouse in the environment where the mirror image warehouse to be updated is located according to the updating script; when the image warehouse is removed, responding to a removing operation of a user, determining the environment where the image warehouse to be removed is located, and removing the image warehouse in the environment where the image warehouse to be removed is located.
In one or more embodiments of the present description, this mirrored repository configuration change (update or removal) may be implemented through automatic awareness. When the back-end control system completes the deployment of the mirror warehouse, the environment ID can be used as a Key Value, the Code Value of MD5 calculated by all configuration parameters is used as a Value to be written into the Etcd database, meanwhile, the mirror warehouse deployment system starts the Watch monitoring of the current Key Value, registers callback events updated/deleted by the Key Value, after the configuration parameters are modified by a user, the server modifies the information stored in the database, judges whether mirror warehouse services are deployed in the environment, then updates the Value of the Key corresponding to the environment ID in the Etcd database, triggers the monitoring of the Watch, triggers a method corresponding to the update/deletion PUT/DELETE according to the event type configured by the user, triggers the pipeline task of regenerating the mirror warehouse deployment script if the mirror warehouse deployment script is updated, and if the mirror warehouse deployment script is deleted, the pipeline task of a mirror warehouse service offline is newly built, and mainly comprises a service unloading instruction (lm DELETE) and a service survivability check to the corresponding K8s environment.
In addition, the deployment configuration interface specifically includes: in step S100 shown in fig. 1, according to the optional parameters selected by the user for the configuration parameters to be filled in the deployment configuration interface and the optional parameter information selected by the user for the configuration parameters to be filled in the deployment configuration interface, determining the environment information of the environment where the mirror warehouse to be deployed is located and the configuration parameters of the mirror warehouse to be deployed.
When the configuration interface is displayed to the user through the user interaction interface, selectable items corresponding to the configuration parameters or the environment information can be given out in the configuration interface aiming at any configuration parameter or the environment information to be filled, so that the user only needs to select proper items when filling the configuration parameters or the environment information, and the situation that the configuration parameters or the environment information filled by the user do not meet the format requirements is avoided. Furthermore, in the deployment configuration interface, the method provided by the specification can also provide a plurality of complete configuration parameter combinations, so that a user can directly select any configuration parameter combination without filling configuration parameters by himself, and simultaneously, a deployment script corresponding to the configuration parameter combination can be preconfigured and stored in the mirror warehouse deployment system, so that after the user determines the configuration parameter combination selected by himself, the back-end control system can directly deploy the mirror warehouse by using the stored deployment script corresponding to the configuration parameter combination, and the deployment efficiency of the mirror warehouse can be further improved.
In one or more embodiments of the present description, taking a Harbor warehouse as an example, the methods provided herein may build the mirrored warehouse deployment system described above based on the automated and continuous build capabilities provided by Jenkins, with the container orchestration functionality provided by the Kubernetes environment. A deployment file of the Harbor is pre-recorded in the mirror image warehouse, the deployment file is based on a Harbor official helm charts deployment file, configuration parameters in the deployment file are replaced and reformed by using specified special characters (for example, $ { port }), and a corresponding deployment template is generated through the deployment file.
The above method for deploying the mirror image warehouse provided for one or more embodiments of the present specification further provides a corresponding device for deploying the mirror image warehouse based on the same thought, as shown in fig. 2.
Fig. 2 is a schematic diagram of a device for mirror warehouse deployment provided in the present specification, specifically including:
the display module 200 displays a deployment configuration interface to a user;
the determining module 202 is used for determining environment information of the environment where the mirror image warehouse to be deployed is located and configuration parameters of the mirror image warehouse to be deployed in response to input operation of a user in the deployment configuration interface;
the generation module 204 generates a deployment script according to the configuration parameters and a pre-stored deployment template;
and the deployment module 206 deploys the mirror warehouse corresponding to the configuration parameter in the deployment environment corresponding to the environment information by using the deployment script.
Optionally, the environmental information includes: at least one of an IP address, a domain name, and a name of the environment to be deployed.
Optionally, the generating module 204 is specifically configured to: and matching the configuration parameters of the mirror image warehouse to be deployed with the configuration parameters stored in the database, and taking the deployment script corresponding to the matched configuration parameters in the database as the generated deployment script when the matching is successful.
Optionally, the mirror warehouse deployment system further includes a database;
the generating module 204 is further configured to: and storing the deployment script and the configuration parameters corresponding to the deployment script into a database.
Optionally, the deployment module 206 is further configured to: responding to configuration updating operation of a user, determining an environment where a mirror image warehouse to be updated is located and updating configuration parameters, generating an updating script according to the updating configuration parameters and a pre-stored deployment template, and updating the mirror image warehouse in the environment where the mirror image warehouse to be updated is located according to the updating script.
Optionally, the deployment module 206 is further configured to: and responding to the removing operation of the user, determining the environment where the image warehouse to be removed is located, and removing the image warehouse in the environment where the image warehouse to be removed is located.
Optionally, the deployment configuration interface specifically includes: each configuration parameter to be filled in, each optional parameter corresponding to each configuration parameter to be filled in, each environment information to be filled in, and each optional environment information corresponding to each environment information to be filled in;
the determining module 202 is specifically configured to: according to optional parameters selected by a user for the configuration parameters to be filled in the deployment configuration interface and optional parameter information selected by the user for the environment information to be filled in the deployment configuration interface, determining the environment information of the environment where the mirror warehouse to be deployed is located and the configuration parameters of the mirror warehouse to be deployed.
The present specification also provides a computer readable storage medium storing a computer program operable to perform the method of mirrored warehouse deployment provided in figure 1 above.
The present specification also provides a schematic structural diagram of the electronic device shown in fig. 3. At the hardware level, the mirrored repository deployment device includes a processor, internal bus, network interface, memory, and non-volatile storage, as described in fig. 3, although other services may include hardware as required. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs to implement the mirrored repository deployment method described above with respect to fig. 1. Of course, other implementations, such as logic devices or combinations of hardware and software, are not excluded from the present description, that is, the execution subject of the following processing flows is not limited to each logic unit, but may be hardware or logic devices.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. 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 the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present application.

Claims (8)

1. A method of mirror warehouse deployment, the method being applied to a mirror warehouse deployment system in which a preconfigured deployment template is stored, the method comprising:
displaying a deployment configuration interface to a user;
responding to input operation of a user in a deployment configuration interface, and determining environment information of an environment where a mirror image warehouse to be deployed is located and configuration parameters of the mirror image warehouse to be deployed;
generating a deployment script according to the configuration parameters and a pre-stored deployment template;
deploying a mirror warehouse corresponding to the configuration parameters in a deployment environment corresponding to the environment information by using the deployment script;
the mirror image warehouse deployment system also comprises a database, wherein a plurality of deployment scripts which are different in configuration parameter and can be directly called are stored in the database, and each deployment script takes the configuration parameter in the deployment script as an index;
after generating a deployment script according to the configuration parameters and the pre-stored deployment templates, the method further comprises:
when the determined configuration parameters are not stored in the database, storing the determined configuration parameters and the generated deployment script into the database;
generating a deployment script according to the configuration parameters and a pre-stored deployment template, wherein the deployment script specifically comprises the following steps:
matching the configuration parameters of the mirror image warehouse to be deployed with the configuration parameters stored in the database;
when the matching is successful, the deployment script corresponding to the configuration parameters in the matched database is used as the generated deployment script.
2. The method of claim 1, wherein the environmental information comprises: at least one of an IP address, a domain name, and a name of the environment to be deployed.
3. The method of claim 1, wherein after deploying the image repository corresponding to the configuration parameter in the deployment environment corresponding to the environment information using the deployment script, the method further comprises:
responding to configuration updating operation of a user, and determining the environment where the mirror image warehouse to be updated is located and updating configuration parameters;
generating an update script according to the update configuration parameters and a pre-stored deployment template;
and updating the mirror image warehouse in the environment where the mirror image warehouse to be updated is located according to the update script.
4. The method of claim 1, wherein after deploying the image repository corresponding to the configuration parameter in the deployment environment corresponding to the environment information using the deployment script, the method further comprises:
responding to the removal operation of the user, and determining the environment where the mirror image warehouse to be removed is located;
and removing the mirror image warehouse in the environment where the mirror image warehouse to be removed is located.
5. The method of claim 1, wherein the deployment configuration interface specifically comprises: each configuration parameter to be filled in, each optional parameter corresponding to each configuration parameter to be filled in, each environment information to be filled in, and each optional environment information corresponding to each environment information to be filled in;
responding to the input operation of a user in a deployment configuration interface, determining the environment information of the environment where the mirror image warehouse to be deployed is located and the configuration parameters of the mirror image warehouse to be deployed, wherein the method specifically comprises the following steps:
according to optional parameters selected by a user for the configuration parameters to be filled in the deployment configuration interface and optional parameter information selected by the user for the environment information to be filled in the deployment configuration interface, determining the environment information of the environment where the mirror warehouse to be deployed is located and the configuration parameters of the mirror warehouse to be deployed.
6. An apparatus for mirror warehouse deployment, wherein a preconfigured deployment template is stored in the apparatus, the apparatus comprising:
the display module displays a deployment configuration interface to a user;
the determining module is used for responding to the input operation of a user in the deployment configuration interface and determining the environment information of the environment where the mirror image warehouse to be deployed is located and the configuration parameters of the mirror image warehouse to be deployed;
the generation module is used for generating a deployment script according to the configuration parameters and a pre-stored deployment template;
the deployment module deploys a mirror warehouse corresponding to the configuration parameters in a deployment environment corresponding to the environment information by utilizing the deployment script;
the device also comprises a database, a plurality of directly-callable deployment scripts with different configuration parameters are stored in the database, each deployment script takes the configuration parameters in the deployment script as an index, and the generation module is also used for:
when the determined configuration parameters are not stored in the database, storing the determined configuration parameters and the generated deployment script into the database;
the generating module is specifically configured to:
matching the configuration parameters of the mirror image warehouse to be deployed with the configuration parameters stored in the database;
when the matching is successful, the deployment script corresponding to the configuration parameters in the matched database is used as the generated deployment script.
7. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-5.
8. An apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-5 when the program is executed by the processor.
CN202410013712.0A 2024-01-04 2024-01-04 Mirror image warehouse deployment method, device, storage medium and equipment Active CN117519912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410013712.0A CN117519912B (en) 2024-01-04 2024-01-04 Mirror image warehouse deployment method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410013712.0A CN117519912B (en) 2024-01-04 2024-01-04 Mirror image warehouse deployment method, device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN117519912A CN117519912A (en) 2024-02-06
CN117519912B true CN117519912B (en) 2024-04-05

Family

ID=89756989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410013712.0A Active CN117519912B (en) 2024-01-04 2024-01-04 Mirror image warehouse deployment method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN117519912B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459509A (en) * 2020-03-27 2020-07-28 北京金山云网络技术有限公司 Container mirror image construction method and device and server
CN111782232A (en) * 2020-07-31 2020-10-16 平安银行股份有限公司 Cluster deployment method and device, terminal equipment and storage medium
CN112230946A (en) * 2020-11-18 2021-01-15 浪潮云信息技术股份公司 Container-based application system deployment method and related device
CN112329945A (en) * 2020-11-24 2021-02-05 广州市网星信息技术有限公司 Model deployment and reasoning method and device
CN114157658A (en) * 2021-12-06 2022-03-08 京东科技信息技术有限公司 Mirror image warehouse deployment method and device, electronic equipment and computer readable medium
CN114489939A (en) * 2022-01-13 2022-05-13 华云数据有限公司 Component deployment method, system and computer readable medium
CN114564213A (en) * 2021-12-23 2022-05-31 苏州浪潮智能科技有限公司 Pre-installed software deployment method, system, terminal and storage medium
CN115658237A (en) * 2022-11-08 2023-01-31 招银云创信息技术有限公司 Container application automatic deployment method, device, apparatus, equipment and medium
CN116089011A (en) * 2023-01-19 2023-05-09 阳光电源(上海)有限公司 Method and device for creating mirror warehouse, storage medium and electronic equipment
CN117075930A (en) * 2023-10-17 2023-11-17 之江实验室 Computing framework management system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9378255B2 (en) * 2012-05-11 2016-06-28 Sap Se Cloud logistics
US20220350587A1 (en) * 2021-04-29 2022-11-03 Salesforce.Com, Inc. Methods and systems for deployment of services

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459509A (en) * 2020-03-27 2020-07-28 北京金山云网络技术有限公司 Container mirror image construction method and device and server
CN111782232A (en) * 2020-07-31 2020-10-16 平安银行股份有限公司 Cluster deployment method and device, terminal equipment and storage medium
CN112230946A (en) * 2020-11-18 2021-01-15 浪潮云信息技术股份公司 Container-based application system deployment method and related device
CN112329945A (en) * 2020-11-24 2021-02-05 广州市网星信息技术有限公司 Model deployment and reasoning method and device
CN114157658A (en) * 2021-12-06 2022-03-08 京东科技信息技术有限公司 Mirror image warehouse deployment method and device, electronic equipment and computer readable medium
CN114564213A (en) * 2021-12-23 2022-05-31 苏州浪潮智能科技有限公司 Pre-installed software deployment method, system, terminal and storage medium
CN114489939A (en) * 2022-01-13 2022-05-13 华云数据有限公司 Component deployment method, system and computer readable medium
CN115658237A (en) * 2022-11-08 2023-01-31 招银云创信息技术有限公司 Container application automatic deployment method, device, apparatus, equipment and medium
CN116089011A (en) * 2023-01-19 2023-05-09 阳光电源(上海)有限公司 Method and device for creating mirror warehouse, storage medium and electronic equipment
CN117075930A (en) * 2023-10-17 2023-11-17 之江实验室 Computing framework management system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
AP ; .青云推出Docker镜像仓库,打造一站式容器服务平台.电脑知识与技术(经验技巧).2017,(第12期),全文. *
Dynamic mirror based real-time query contention solution for support big real-time data analysis;yingchi Mao等;《IEEE》;20150514;全文 *
一种Docker CE环境下镜像仓库本地部署的方法;王匆捷;;信息化研究;20200220(第01期);全文 *
王匆捷 ; .一种Docker CE环境下镜像仓库本地部署的方法.信息化研究.2020,(第01期),全文. *

Also Published As

Publication number Publication date
CN117519912A (en) 2024-02-06

Similar Documents

Publication Publication Date Title
CN108628688B (en) Message processing method, device and equipment
CN110032409B (en) Client screen adapting method and device and electronic equipment
CN108549562A (en) A kind of method and device of image load
CN111104387A (en) Method and device for acquiring data set on server
CN117093352B (en) Template-based computing cluster job scheduling system, method and device
CN111240788A (en) Method, device and equipment for generating small program page
CN110633096B (en) Node control method and device, version control method and device and distributed system
CN111212227B (en) Method, device and equipment for configuring video resolution of camera and storage medium
CN110427237B (en) Method and device for cross-application access to target page and electronic equipment
CN116452920A (en) Image processing method and device, storage medium and electronic equipment
CN111273965A (en) Container application starting method, system and device and electronic equipment
CN112000329B (en) Data display method, device, equipment and medium
CN117519912B (en) Mirror image warehouse deployment method, device, storage medium and equipment
CN112559346A (en) Service testing method and device
CN111338655A (en) Installation package distribution method and system
CN112084171B (en) Operation log writing method, device, equipment and medium based on Cassandra database
CN110888649B (en) Application deployment method, application baseline creation method and device
CN112597408A (en) System fusion method, device, equipment and storage medium
CN116644090B (en) Data query method, device, equipment and medium
CN116382877B (en) Task execution method and device, storage medium and electronic equipment
CN117348999B (en) Service execution system and service execution method
CN117032739B (en) Mirror image generation method, system, storage medium and electronic equipment
CN116737367B (en) Minio-based data preservation method, device and medium
CN115269562B (en) Database management method and device, storage medium and electronic equipment
CN117742813A (en) Cloud edge terminal AI model management method, storage medium 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