CN117519728A - Container mirror image deployment method, system, device, equipment and storage medium - Google Patents

Container mirror image deployment method, system, device, equipment and storage medium Download PDF

Info

Publication number
CN117519728A
CN117519728A CN202210895947.8A CN202210895947A CN117519728A CN 117519728 A CN117519728 A CN 117519728A CN 202210895947 A CN202210895947 A CN 202210895947A CN 117519728 A CN117519728 A CN 117519728A
Authority
CN
China
Prior art keywords
mirror image
container mirror
container
chip
image
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.)
Pending
Application number
CN202210895947.8A
Other languages
Chinese (zh)
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202210895947.8A priority Critical patent/CN117519728A/en
Publication of CN117519728A publication Critical patent/CN117519728A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • 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/45595Network integration; Enabling network access in virtual machine instances

Abstract

The disclosure provides a container mirror image deployment method, a system, a device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: the method comprises the steps of receiving parameter information of a first container mirror image sent by a client, wherein the parameter information of the first container mirror image comprises chip information of a chip applicable to the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip, generating mirror image configuration information of chip adaptation according to the parameter information of the first container mirror image, constructing the first container mirror image in a virtual machine running on a server according to the mirror image configuration information, and running a compiling environment of the first container mirror image in the virtual machine. The problem of poor computing power of the current container mirror image is solved.

Description

Container mirror image deployment method, system, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a container mirror deployment method, system, device, apparatus, and storage medium.
Background
With the development of internet technology, the application of container technology and container mirroring technology is becoming popular. Current container images have been able to support applications for a variety of architectures and a variety of operating systems.
However, in the application process of various architectures and various operating systems, the used chip is a conventional chip, and the computing capability of the conventional chip is limited, so that the current computing capability of the container mirror image is difficult to meet the requirements of the current user.
Disclosure of Invention
The present disclosure provides a container mirror deployment method, system, device, apparatus, and storage medium, which overcome, at least to some extent, the problem of poor computing power of the current container mirror.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to one aspect of the present disclosure, there is provided a deployment method of container mirroring, applied to a server, the method comprising:
receiving parameter information of a first container mirror image sent by a client, wherein the parameter information of the first container mirror image comprises chip information of a chip applicable to the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip;
generating mirror configuration information of chip adaptation according to the parameter information of the first container mirror;
and constructing a first container mirror image in a virtual machine running on the server according to the mirror image configuration information, wherein the virtual machine runs a compiling environment of the first container mirror image.
In one embodiment of the present disclosure, after the first container image is built according to the image configuration information in the virtual machine running on the server and the compiling environment of the first container image is running in the virtual machine, the method further includes:
receiving a first container mirror image identifier sent by a client;
acquiring a first container mirror image corresponding to the first container mirror image identifier according to the first container mirror image identifier;
the first container image is sent to the client.
In one embodiment of the present disclosure, the method further comprises:
receiving a second container mirror image sent by a client and a second container mirror image identifier corresponding to the second container mirror image, wherein the second container mirror image is a container mirror image existing on the client;
and storing the second container mirror image and the corresponding relation between the second container mirror image identification and the second container mirror image on a server.
In one embodiment of the present disclosure, generating chip-adapted image configuration information from parameter information of a first container image includes:
and generating chip-adapted mirror configuration information according to the chip information, the CPU architecture information corresponding to the chip and the operating system information corresponding to the chip.
According to another aspect of the present disclosure, there is provided a container mirror deployment method, applied to a client, the method including:
The method comprises the steps that parameter information of a first container mirror image is sent to a server, the parameter information of the first container mirror image comprises chip information of a chip, CPU (central processing unit) architecture information corresponding to the chip and operating system information corresponding to the chip, the chip information is suitable for the first container mirror image, so that the server generates mirror image configuration information suitable for the chip according to the parameter information of the first container mirror image, the first container mirror image is built in a virtual machine running on the server according to mirror image files, and a compiling environment of the first container mirror image is running in the virtual machine;
the first container image returned by the server is received.
According to yet another aspect of the present disclosure, there is provided a container mirror deployment system comprising: the server and the client;
the client is used for sending parameter information of the first container mirror image to the server, wherein the parameter information of the first container mirror image comprises chip information of a chip applicable to the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip;
the server is used for generating the mirror configuration information of the chip adaptation according to the parameter information of the first container mirror, constructing the first container mirror according to the mirror file in a virtual machine running on the server, and running a compiling environment of the first container mirror in the virtual machine.
According to yet another aspect of the present disclosure, there is provided a container mirror deployment apparatus, for application to a server, the apparatus comprising:
the first receiving module is used for receiving the parameter information of the first container mirror image sent by the client, wherein the parameter information of the first container mirror image comprises chip information of a chip applicable to the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip;
the generating module is used for generating mirror configuration information of chip adaptation according to the parameter information of the first container mirror;
the building module is used for building a first container mirror image according to mirror image configuration information in a virtual machine running on the server, and a compiling environment of the first container mirror image is running in the virtual machine.
In one embodiment of the present disclosure, the container mirror deployment apparatus further comprises:
the third receiving module is used for constructing a first container mirror image in a virtual machine running on the server according to the mirror image configuration information, and receiving a first container mirror image identifier sent by the client after a compiling environment of the first container mirror image runs in the virtual machine;
the acquisition module is used for acquiring a first container mirror image corresponding to the first container mirror image identifier according to the first container mirror image identifier;
And the second sending module is used for sending the first container image to the client.
In one embodiment of the present disclosure, the container mirror deployment apparatus further comprises:
the fourth receiving module is used for receiving a second container mirror image sent by the client and a second container mirror image identifier corresponding to the second container mirror image, wherein the second container mirror image is a container mirror image existing on the client;
and the storage module is used for storing the second container mirror image and the corresponding relation between the second container mirror image identification and the second container mirror image to the server.
In one embodiment of the present disclosure, a generation module includes:
the generating unit is used for generating the image configuration information of the chip adaptation according to the chip information, the CPU architecture information corresponding to the chip and the operating system information corresponding to the chip.
According to yet another aspect of the present disclosure, there is provided a container mirror deployment apparatus, for application to a client, the apparatus comprising:
the first sending module is used for sending parameter information of the first container mirror image to the server, wherein the parameter information of the first container mirror image comprises chip information of a chip applicable to the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip, so that the server generates mirror image configuration information of the chip according to the parameter information of the first container mirror image and constructs the first container mirror image in a virtual machine running on the server according to the mirror image configuration information, and a compiling environment of the first container mirror image is running in the virtual machine;
And the second receiving module is used for receiving the first container mirror image returned by the server.
According to still another aspect of the present disclosure, there is provided an electronic apparatus including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the container mirror deployment method described above via execution of the executable instructions.
According to yet another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the container mirror deployment method described above.
According to the container mirror image deployment method, parameter information of a first container mirror image sent by a client is received, mirror image configuration information of chip adaptation is generated according to the parameter information of the first container mirror image, and then the first container mirror image is generated according to the generated mirror image configuration information. The first container mirror image generated according to the mirror image configuration information can be adapted to various different types of chips because of the generated mirror image configuration information of the chip adaptation, so that the limit that the current container mirror image can only be adapted to a conventional chip can be broken through, and the computing capacity of the container mirror image is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 illustrates a schematic diagram of a container mirror deployment system architecture in an embodiment of the present disclosure;
FIG. 2 illustrates a flow chart of a container mirror deployment method in an embodiment of the present disclosure;
FIG. 3 illustrates another container mirror deployment method flow diagram in an embodiment of the present disclosure;
FIG. 4 illustrates a flow chart of yet another container mirror deployment method in an embodiment of the present disclosure
FIG. 5 illustrates a container mirror deployment apparatus in accordance with an embodiment of the present disclosure;
FIG. 6 illustrates another container mirror deployment apparatus in accordance with an embodiment of the present disclosure;
fig. 7 shows a block diagram of an electronic device in an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices. It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
With the development of the era, AI chip technology is beginning to develop vigorously, and the AI chip technology currently in common use is to use AI chips to perform AI computing tasks in a containerized situation.
However, in the current application process, because the manufacturers of the AI chips are different, the upper layer soft and hard interface specifications and calling modes of the produced AI chips are different. This makes the container mirrored deployment of AI chips difficult.
In order to solve the above problems, embodiments of the present disclosure provide a container image deployment method, system, device, apparatus, and storage medium.
Next, a container mirror deployment system provided by an embodiment of the present disclosure will be described first.
FIG. 1 illustrates a schematic diagram of a container mirror deployment system architecture provided by an embodiment of the present disclosure, as illustrated in FIG. 1, a container mirror deployment system 10 in an embodiment of the present disclosure may include:
a server 101 and a client 102;
the client 102 is configured to send parameter information of a first container image to the server 101, where the parameter information of the first container image includes chip information of a chip to which the first container image is applicable, CPU architecture information corresponding to the chip, and operating system information corresponding to the chip;
the server 101 is configured to generate chip-adapted image configuration information according to parameter information of the first container image, and construct the first container image in a virtual machine running on the server 101 according to the image file, where a compiling environment of the first container image is running.
It should be noted that the server 101 may include a server 101 running a plurality of virtual machines.
Alternatively, the server 101 may be a separate physical server 101, or may be a server 101 cluster or a distributed system formed by a plurality of physical servers 101, or may be a cloud server 101 that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content distribution networks), and basic cloud computing services such as big data and artificial intelligence platforms.
The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal and the server 101 may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
It should be noted that, the client 102 may be a plurality of types of clients 102 including web pages and applications, and the clients 102 may be disposed on various terminal devices, which is not particularly limited in this disclosure.
It should be noted that the terminal device may be various electronic devices, including but not limited to a smart phone, a tablet computer, a laptop portable computer, a desktop computer, a wearable device, an augmented reality device, a virtual reality device, and the like.
The terminal device and the server 101 may communicate with each other via a wired network or a wireless network.
Alternatively, the wireless network or wired network described above uses standard communication techniques and/or protocols. The network is typically the Internet, but may be any network including, but not limited to, a local area network (Local Area Network, LAN), metropolitan area network (Metropolitan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, wired or wireless network, private network, or any combination of virtual private networks.
In some embodiments, data exchanged over a network is represented using techniques and/or formats including HyperText Mark-up Language (HTML), extensible markup Language (Extensible MarkupLanguage, XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as secure sockets layer (Secure Socket Layer, SSL), transport layer security (Transport Layer Security, TLS), virtual private network (Virtual Private Network, VPN), internet protocol security (Internet ProtocolSecurity, IPsec), etc.
In other embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
Those skilled in the art will appreciate that any number of terminal devices, networks, and servers 101 may be present in embodiments of the disclosure. The embodiments of the present disclosure are not limited in this regard.
In the container mirror deployment system provided by the embodiment of the disclosure, a client sends parameter information of a first container mirror to a server, the server generates mirror configuration information adapted to a chip according to the parameter information of the first container mirror, and then the server generates the first container mirror according to the generated mirror configuration information. The first container mirror image generated according to the mirror image configuration information can be adapted to various different types of chips because of the generated mirror image configuration information of the chip adaptation, so that the limit that the current container mirror image can only be adapted to a conventional chip can be broken through, and the computing capacity of the container mirror image is improved.
Based on the same inventive concept, the embodiment of the present disclosure discloses a container mirror deployment method, which is applied to a server, fig. 2 shows a flow chart of a container mirror deployment method in the embodiment of the present disclosure, and as shown in fig. 2, the container mirror deployment method in the embodiment of the present disclosure may include:
s202, receiving parameter information of a first container mirror image sent by a client, wherein the parameter information of the first container mirror image comprises chip information of a chip applicable to the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip.
It should be noted that the chip information may include parameter information of the current chip that is different from other chips.
It should be noted that the chip of the embodiment of the present disclosure may be an AI chip.
By way of example, the chip information may include: the upper layer soft and hard interface specification and calling mode of the chip are not particularly limited herein.
The CPU architecture information corresponding to the chip may include architecture information of a current chip adaptation determined according to the chip information.
It should be noted that, since there are differences between different chips, different chip-adapted CPU architectures may also be different.
Similarly, the operating system information corresponding to the chip may also include the operating system information of the current chip adaptation determined according to the chip information.
S204, generating mirror configuration information of chip adaptation according to the parameter information of the first container mirror.
It should be noted that the image adaptation information may include various files containing chip adaptation information, such as Platform objects.
Wherein, platform can be a file.
It should be noted that, the container image generally includes four parts, the first part is an image index, and the image index generally includes a Manifest List image List.
Wherein each Manifest can be regarded as an image and List can be regarded as a version number of the image.
Illustratively, each Manifest lists the configuration of the container image and the layer files.
The Configuration includes parameters required for mirroring the container. Illustratively, the Platform object of the core will typically contain the CPU architecture, operating system information supported by the container image.
Layer files typically contain content of the container image, typically represented by binary type data.
It should be noted that, in the image adapting information in the present disclosure, manifest Platform generally further includes attribute information of the chip to record the chip supported by the container image.
Wherein Manifest Platform can be an image file.
Correspondingly, the codes of the corresponding chips in the original container also need to be modified to support the chip attribute parameters.
Correspondingly, the mirror image adaptation information may further include: the position of the container code which is determined according to the chip information and needs to be modified and the content of the container code which needs to be modified.
For example, the content of the container code to be modified may be to modify the partial code support chip information of the dock-cli container core component or the dock-engine container engine component, so that functions of creating, annotating, mirror pulling and the like can be performed through the dock command corresponding to the manifest to which the container mirror belongs.
S206, constructing a first container mirror image according to mirror image configuration information in a virtual machine running on the server, wherein a compiling environment of the first container mirror image is run in the virtual machine.
It should be noted that different chips may require different containers, so multiple virtual machines may be running on the server, and multiple virtual machines may provide different compiling environments to complete the compiling of different container images.
It should be noted that, constructing the container image according to the image configuration information is a relatively conventional technical means in the art, and will not be described herein.
According to the container mirror image deployment method, parameter information of a first container mirror image sent by a client is received, mirror image configuration information of chip adaptation is generated according to the parameter information of the first container mirror image, and then the first container mirror image is generated according to the generated mirror image configuration information. The first container mirror image generated according to the mirror image configuration information can be adapted to various different types of chips because of the generated mirror image configuration information of the chip adaptation, so that the limit that the current container mirror image can only be adapted to a conventional chip can be broken through, and the computing capacity of the container mirror image is improved.
In some embodiments, after the server side generates the container image, the client may make a call to the generated container image.
The method for calling the generated container mirror image can comprise the following steps:
receiving a first container mirror image identifier sent by a client;
acquiring a first container mirror image corresponding to the first container mirror image identifier according to the first container mirror image identifier;
the first container image is sent to the client.
It should be noted that the first container image identifier may include information that can distinguish the current container image from other container images.
For example, the first container image identifier may include identification information generated based on chip information of a chip to which the first container image is applied, CPU architecture information corresponding to the chip, and operating system information corresponding to the chip.
In the embodiment of the disclosure, a client sends a first container mirror image identifier to a server, and then the server acquires the first container mirror image according to the first container mirror image identifier. The first container image is then sent by the server to the client. Thus, invocation of container mirroring is achieved.
Based on the same inventive concept, the embodiment of the present disclosure provides another container mirror deployment method, which is applied to a server.
FIG. 3 illustrates another container mirror deployment method flow diagram in an embodiment of the present disclosure, as illustrated in FIG. 3, the method may include:
s302, receiving a second container mirror image sent by the client and a second container mirror image identifier corresponding to the second container mirror image, wherein the second container mirror image is a container mirror image existing on the client.
It should be noted that, the second container image may be generated by the client in response to the user operation, or may be sent to the client by another device, and then sent to the server by the client.
It should be noted that the form of the second container image identifier may be the same as the form of the first container image identifier.
It should be noted that the second container image may be an image other than the first container image.
The server may configure corresponding virtual machines for container images corresponding to different chips in advance, and allocate a storage space for the virtual machines, where the storage space is used to store system data required by operation of the virtual machines, and the storage space is further used to store container images with the same chip as the virtual machines.
Illustratively, the server allocates a certain amount of storage space for the virtual machine that stores not only the system data required for the virtual machine to run, but also the target container image.
S304, storing the second container mirror image and the corresponding relation between the second container mirror image identification and the second container mirror image on a server.
It should be noted that the container image identifier may also include a storage location of the container image.
In the embodiment of the disclosure, the second container mirror image is uploaded to the server through the client, and the second container mirror image uploaded by the client is stored by the server, so that a channel for constructing the container mirror image is increased, a user can construct the container mirror image in various modes, and user experience is improved.
Based on the same inventive concept, the embodiment of the present disclosure provides another container mirror deployment method, which is applied to a client.
In this embodiment, the server receives the client-side transmissions
FIG. 4 illustrates a flow chart of yet another container mirror deployment method in an embodiment of the present disclosure, as illustrated in FIG. 4, the method may include:
s402, parameter information of a first container mirror image is sent to a server, the parameter information of the first container mirror image comprises chip information of a chip, CPU architecture information corresponding to the chip and operating system information corresponding to the chip, the chip information is applicable to the first container mirror image, so that the server generates mirror image configuration information of the chip according to the parameter information of the first container mirror image, the first container mirror image is built in a virtual machine running on the server according to a mirror image file, and a compiling environment of the first container mirror image is running in the virtual machine.
S404, receiving the first container mirror image returned by the server.
It should be noted that, the embodiments of the present disclosure are opposite-end method embodiments of the above embodiments, and since the foregoing embodiments have already been explained in detail, they are not repeated here.
According to the container mirror image deployment method provided by the embodiment of the disclosure, the client side sends the parameter information of the first container mirror image to the server, then the client side generates mirror image configuration information of chip adaptation according to the parameter information of the first container mirror image, and then the first container mirror image is generated according to the generated mirror image configuration information. The first container mirror image generated according to the mirror image configuration information can be adapted to various different types of chips because of the generated mirror image configuration information of the chip adaptation, so that the limit that the current container mirror image can only be adapted to a conventional chip can be broken through, and the computing capacity of the container mirror image is improved.
In some embodiments, the container mirror deployment method may further comprise:
the client sends the first container mirror image identification to the server so that the server obtains the first container mirror image of the first container mirror image identification according to the first container mirror image identification.
It should be noted that, the server obtaining the first container image of the first container image identifier according to the first container image identifier may include:
and the server determines the first container mirror image according to the first container mirror image identification and the corresponding relation between the first container mirror image identification and the first container mirror image.
The client receives the first container image sent by the server.
In some embodiments, the container mirror deployment method may further comprise:
and sending the second container mirror image and a second container mirror image identifier corresponding to the second container mirror image to the server so that the server stores the second container mirror image and the corresponding relation between the second container mirror image and the second container mirror image identifier.
Based on the same inventive concept, a container mirror deployment device is also provided in the embodiments of the present disclosure, as follows. Since the principle of solving the problem of the embodiment of the device is similar to that of the embodiment of the method, the implementation of the embodiment of the device can be referred to the implementation of the embodiment of the method, and the repetition is omitted.
Fig. 5 shows a schematic diagram of a container mirror deployment apparatus in an embodiment of the disclosure, the apparatus being applied to a server.
As shown in fig. 5, the apparatus 500 includes:
the first receiving module 502 is configured to receive parameter information of a first container image sent by a client, where the parameter information of the first container image includes chip information of a chip to which the first container image is applicable, CPU architecture information corresponding to the chip, and operating system information corresponding to the chip;
a generating module 504, configured to generate chip-adapted image configuration information according to parameter information of the first container image;
the building module 506 is configured to build a first container image according to the image configuration information in a virtual machine running on the server, where a compiling environment of the first container image runs in the virtual machine.
In the container mirror image deployment device provided by the embodiment of the disclosure, the first receiving module receives the parameter information of the first container mirror image sent by the client, the generating module generates mirror image configuration information adapted to the chip according to the parameter information of the first container mirror image, and the constructing module generates the first container mirror image according to the generated mirror image configuration information. The first container mirror image generated according to the mirror image configuration information can be adapted to various different types of chips because of the generated mirror image configuration information of the chip adaptation, so that the limit that the current container mirror image can only be adapted to a conventional chip can be broken through, and the computing capacity of the container mirror image is improved.
In some embodiments, the container mirror deployment apparatus further comprises:
the third receiving module 508 is configured to construct a first container image in a virtual machine running on the server according to the image configuration information, and after a compiling environment of the first container image is running in the virtual machine, the third receiving module is configured to receive a first container image identifier sent by the client;
the obtaining module 510 is configured to obtain, according to the first container image identifier, a first container image corresponding to the first container image identifier;
a second sending module 512, configured to send the first container image to the client.
In the embodiment of the disclosure, a client sends a first container mirror image identifier to a server, and then the server acquires the first container mirror image according to the first container mirror image identifier. The first container image is then sent by the server to the client. Thus, invocation of container mirroring is achieved.
In some embodiments, the container mirror deployment apparatus further comprises:
a fourth receiving module 514, configured to receive a second container image sent by the client and a second container image identifier corresponding to the second container image, where the second container image is a container image existing on the client;
and the storage module 516 is configured to store the second container image and a correspondence between the second container image identifier and the second container image on the server.
In some embodiments, the generating module 504 includes:
the generating unit is used for generating the image configuration information of the chip adaptation according to the chip information, the CPU architecture information corresponding to the chip and the operating system information corresponding to the chip.
In the embodiment of the disclosure, the second container mirror image is uploaded to the server through the client, and the second container mirror image uploaded by the client is stored by the server, so that a channel for constructing the container mirror image is increased, a user can construct the container mirror image in various modes, and user experience is improved.
Based on the same inventive concept, another container mirror deployment apparatus is also provided in embodiments of the present disclosure, such as the following embodiments. Since the principle of solving the problem of the embodiment of the device is similar to that of the embodiment of the method, the implementation of the embodiment of the device can be referred to the implementation of the embodiment of the method, and the repetition is omitted.
It should be noted that, another container mirror deployment apparatus in the embodiments of the present disclosure is applied to a client.
Fig. 6 illustrates another container mirror deployment apparatus schematic in an embodiment of the present disclosure.
As shown in fig. 6, a container mirror deployment apparatus in an embodiment of the present disclosure may include:
The first sending module 602 is configured to send parameter information of a first container mirror image to a server, where the parameter information of the first container mirror image includes chip information of a chip to which the first container mirror image is applicable, CPU architecture information corresponding to the chip, and operating system information corresponding to the chip, so that the server generates mirror image configuration information of the chip to which the first container mirror image is applicable according to the parameter information of the first container mirror image, and constructs the first container mirror image in a virtual machine running on the server according to the mirror image configuration information, where a compiling environment of the first container mirror image is running;
and the second receiving module 604 is configured to receive the first container image returned by the server.
In the container mirror image deployment device provided by the embodiment of the disclosure, the first sending module sends the parameter information of the first container mirror image to the server, the server generates mirror image configuration information adapted to the chip according to the parameter information of the first container mirror image, and then the first container mirror image is generated according to the generated mirror image configuration information. The first container mirror image generated according to the mirror image configuration information can be adapted to various different types of chips because of the generated mirror image configuration information of the chip adaptation, so that the limit that the current container mirror image can only be adapted to a conventional chip can be broken through, and the computing capacity of the container mirror image is improved.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to such an embodiment of the present disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 7, the electronic device 700 is embodied in the form of a general purpose computing device. Components of electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, and a bus 730 connecting the different system components, including the memory unit 720 and the processing unit 710.
Wherein the storage unit stores program code that is executable by the processing unit 710 such that the processing unit 710 performs steps according to various exemplary embodiments of the present disclosure described in the above-described "exemplary methods" section of the present specification. For example, the processing unit 710 may perform the following steps of the method embodiment described above:
Receiving parameter information of a first container mirror image sent by a client, wherein the parameter information of the first container mirror image comprises chip information of a chip applicable to the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip;
generating mirror configuration information of chip adaptation according to the parameter information of the first container mirror;
and constructing a first container mirror image in a virtual machine running on the server according to the mirror image configuration information, wherein the virtual machine runs a compiling environment of the first container mirror image.
The memory unit 720 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 7201 and/or cache memory 7202, and may further include Read Only Memory (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 730 may be a bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 740 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 700, and/or any device (e.g., router, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 750. Also, electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 760. As shown, network adapter 760 communicates with other modules of electronic device 700 over bus 730. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium, which may be a readable signal medium or a readable storage medium, is also provided. On which a program product is stored which enables the implementation of the method described above of the present disclosure. In some possible implementations, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device.
More specific examples of the computer readable storage medium in the present disclosure may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In this disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Alternatively, the program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In particular implementations, the program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the description of the above embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A container mirror deployment method, for application to a server, the method comprising:
receiving parameter information of a first container mirror image sent by a client, wherein the parameter information of the first container mirror image comprises chip information of a chip applicable to the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip;
generating mirror configuration information of the chip adaptation according to the parameter information of the first container mirror;
and constructing a first container mirror image in a virtual machine running on the server according to the mirror image configuration information, wherein a compiling environment of the first container mirror image runs in the virtual machine.
2. The container image deployment method according to claim 1, wherein a first container image is built in a virtual machine running on the server according to the image configuration information, and after a compiling environment of the first container image is run in the virtual machine, the method further comprises:
receiving a first container mirror image identifier sent by the client;
acquiring a first container mirror image corresponding to the first container mirror image identifier according to the first container mirror image identifier;
and sending the first container image to the client.
3. The container mirror deployment method of claim 1, wherein the method further comprises:
receiving a second container mirror image sent by the client and a second container mirror image identifier corresponding to the second container mirror image, wherein the second container mirror image is a container mirror image existing on the client;
and storing the second container mirror image and the corresponding relation between the second container mirror image identification and the second container mirror image to the server.
4. The container image deployment method according to claim 1, wherein generating the chip-adapted image configuration information from the parameter information of the first container image comprises:
And generating the image configuration information of the chip adaptation according to the chip information, the CPU architecture information corresponding to the chip and the operating system information corresponding to the chip.
5. A container mirror deployment method, applied to a client, the method comprising:
the method comprises the steps that parameter information of a first container mirror image is sent to a server, the parameter information of the first container mirror image comprises chip information of a chip applicable to the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip, so that the server generates mirror image configuration information adapted to the chip according to the parameter information of the first container mirror image, a first container mirror image is built in a virtual machine running on the server according to the mirror image file, and a compiling environment of the first container mirror image is run in the virtual machine;
and receiving a first container image returned by the server.
6. A container mirror deployment system, wherein the system comprises a server and a client;
the client is used for sending parameter information of a first container mirror image to the server, wherein the parameter information of the first container mirror image comprises chip information of a chip applicable to the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip;
The server is used for generating the image configuration information of the chip adaptation according to the parameter information of the first container image, constructing the first container image according to the image file in a virtual machine running on the server, and running a compiling environment of the first container image in the virtual machine.
7. A container mirror deployment apparatus for application to a server, the apparatus comprising:
the first receiving module is used for receiving parameter information of a first container mirror image sent by the client, wherein the parameter information of the first container mirror image comprises chip information of a chip applicable to the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip;
the generation module is used for generating the mirror image configuration information of the chip adaptation according to the parameter information of the first container mirror image;
the building module is used for building a first container mirror image according to the mirror image configuration information in a virtual machine running on the server, and a compiling environment of the first container mirror image runs in the virtual machine.
8. A container mirror deployment apparatus for application to a client, the apparatus comprising:
The first sending module is used for sending parameter information of a first container mirror image to the server, wherein the parameter information of the first container mirror image comprises chip information of a chip suitable for the first container mirror image, CPU architecture information corresponding to the chip and operating system information corresponding to the chip, so that the server generates mirror image configuration information suitable for the chip according to the parameter information of the first container mirror image and constructs the first container mirror image according to the mirror image configuration information in a virtual machine running on the server, and a compiling environment of the first container mirror image is running in the virtual machine;
and the second receiving module is used for receiving the first container mirror image returned by the server.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the container mirror deployment method of any of claims 1-5 via execution of the executable instructions.
10. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the container mirror deployment method of any of claims 1 to 5.
CN202210895947.8A 2022-07-27 2022-07-27 Container mirror image deployment method, system, device, equipment and storage medium Pending CN117519728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210895947.8A CN117519728A (en) 2022-07-27 2022-07-27 Container mirror image deployment method, system, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210895947.8A CN117519728A (en) 2022-07-27 2022-07-27 Container mirror image deployment method, system, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117519728A true CN117519728A (en) 2024-02-06

Family

ID=89753658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210895947.8A Pending CN117519728A (en) 2022-07-27 2022-07-27 Container mirror image deployment method, system, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117519728A (en)

Similar Documents

Publication Publication Date Title
CA2511916A1 (en) System and method of building wireless component applications
CN111026439B (en) Application program compatibility method, device, equipment and computer storage medium
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN113821352A (en) Remote service calling method and device
CN112395098B (en) Application program interface calling method and device, storage medium and electronic equipment
CN114513552B (en) Data processing method, device, equipment and storage medium
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
WO2023246486A1 (en) Method and apparatus for creating connector
WO2024001240A1 (en) Task integration method and apparatus for multiple technology stacks
CN112394907A (en) Container-based delivery system construction method, application delivery method and delivery system
CN117519728A (en) Container mirror image deployment method, system, device, equipment and storage medium
CN117472555A (en) Computing power resource allocation method, system, device, equipment and storage medium
US20220365762A1 (en) Neural network model conversion method server, and storage medium
CN112199094A (en) Information display method and device, electronic equipment and computer readable medium
CN112099841A (en) Method and system for generating configuration file
CN116701790B (en) Front-end authority control method based on route and related equipment
CN112688863B (en) Gateway data processing method and device and electronic equipment
WO2022188509A1 (en) Method and apparatus for task processing in distributed environment, and electronic device and medium
CN114827918B (en) Short message sending method, device, electronic equipment and computer readable storage medium
CN114615521B (en) Video processing method and device, computer readable storage medium and electronic equipment
CN117112500B (en) Resource management method, device, equipment and storage medium
CN113542412B (en) Data transmission method, device, electronic equipment and storage medium
CN115514611B (en) Message processing method, device, equipment and storage medium
CN112311833B (en) Data updating method and device
CN117591982A (en) Verification method, system, device, equipment and storage medium

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