CN113495870A - Mirror image construction method and device, electronic equipment and storage medium - Google Patents

Mirror image construction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113495870A
CN113495870A CN202010250610.2A CN202010250610A CN113495870A CN 113495870 A CN113495870 A CN 113495870A CN 202010250610 A CN202010250610 A CN 202010250610A CN 113495870 A CN113495870 A CN 113495870A
Authority
CN
China
Prior art keywords
mirror image
files
target
image
layer
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
CN202010250610.2A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010250610.2A priority Critical patent/CN113495870A/en
Publication of CN113495870A publication Critical patent/CN113495870A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/128Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a mirror image construction method, a mirror image construction device, electronic equipment and a storage medium, and relates to the technical field of computers. One embodiment of the method comprises: acquiring a basic mirror image identifier corresponding to the basic mirror image name from a mirror image warehouse according to the basic mirror image name; acquiring a target basic mirror image corresponding to the identification of the basic mirror image from a cache, wherein the target basic mirror image is the basic mirror image after the deletion of the intermediate file, and the intermediate file represents the file marked for deletion; and constructing the target mirror image according to the target basic mirror image. This embodiment can solve the problem of low speed and efficiency of the mirror image construction.

Description

Mirror image construction method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for constructing a mirror image, an electronic device, and a storage medium.
Background
Currently, in cloud computing, mirroring is a common delivery method. The mirror is built in a container, by Dockerfile. The construction of an image is usually performed by pulling a base image for construction from an image repository and then sequentially executing the instructions in the Dockerfile. The mirror image warehouse can store a plurality of basic mirror images, and the content of each basic mirror image can be updated, the updating mode is that a mirror image layer is added on the basis of the original basic mirror image, the added mirror image layer indicates the content of adding and/or deleting the original basic mirror image, the mirror image construction is performed after the corresponding content is added and/or deleted on the basis of the original basic mirror image when the mirror image is constructed, and the content indicated to be deleted can be called as an intermediate file.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
because the basic mirror image is updated by adding the mirror image layer, the basic mirror image acquired from the mirror image warehouse sometimes comprises the mirror image layer added during updating when the mirror image is constructed, and if the intermediate file to be deleted in the basic mirror image is indicated in the added mirror image layer, the mirror image construction needs to be carried out after the intermediate file is deleted according to each mirror image layer in the basic mirror image when the mirror image is constructed, so that the time for constructing the mirror image is prolonged, and the speed and the efficiency for constructing the mirror image are reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a system, and a storage medium for constructing a mirror image, which can solve the problems that when a mirror image is constructed, the intermediate file needs to be deleted according to each mirror image layer in a base mirror image, and then the mirror image is constructed, so that the time for constructing the mirror image is increased, and the speed and efficiency of constructing the mirror image are reduced.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of mirror image construction.
The mirror image construction method of the embodiment of the invention comprises the following steps: acquiring a basic mirror image identifier corresponding to a basic mirror image name from a mirror image warehouse according to the basic mirror image name; acquiring a target basic mirror image corresponding to the identification of the basic mirror image from a cache, wherein the target basic mirror image is the basic mirror image after an intermediate file is deleted, and the intermediate file represents the file marked for deletion; and constructing a target mirror image according to the target basic mirror image.
In one embodiment, before the obtaining the target base image corresponding to the identity of the base image, the method further includes:
acquiring a layer file of the basic mirror image and an identifier of the basic mirror image from the mirror image warehouse;
deleting the files marked for deletion in the layer files, and determining the remaining files in the layer files as target basic mirror images;
and storing the corresponding relation between the target basic mirror image and the identification of the basic mirror image to the cache.
In another embodiment, the deleting the file marked for deletion in the layer file, and determining the remaining files in the layer file as the target base image, includes:
sequentially determining the mirror image layers of the basic mirror image as current mirror image layers according to the sequence from small to large, and deleting files marked for deletion in the layer files of the current mirror image layers for each current mirror image layer;
and determining the residual files in the layer files of the basic mirror image as a target basic mirror image.
In another embodiment, the deleting the file marked for deletion in the layer files of the current mirror layer includes:
acquiring file names of indication files in layer files of all image layers above the current image layer, wherein the file names of the indication files comprise deletion identifications and target file names;
and screening out files with the same name as the target file from the layer files of the current mirror image layer as files marked for deletion, and deleting the files marked for deletion.
In another embodiment, the deleting the file marked for deletion in the layer file, and determining the remaining files in the layer file as the target base image, includes:
sequentially determining the image layers of the basic images as target image layers from small to large, acquiring file names of indication files in layer files of the target image layers for the target image layers, wherein the file names of the indication files comprise deletion marks and target file names, screening files with the same name as the target file name from the layer files of all the image layers below the target image layers as files marked for deletion, and deleting the files marked for deletion;
and determining the residual files in the layer files of the basic mirror image as a target basic mirror image.
In yet another embodiment, the obtaining the target base image corresponding to the identity of the base image includes:
judging whether a target basic mirror image corresponding to the identification of the basic mirror image is stored in a cache;
and if so, acquiring the target basic mirror image from the cache.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided an apparatus of mirror image construction.
The invention relates to a mirror image construction device, which comprises: the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring the identification of a basic mirror image corresponding to a basic mirror image name from a mirror image warehouse according to the basic mirror image name; the acquiring unit is further configured to acquire a target basic mirror image corresponding to the identifier of the basic mirror image from a cache, where the target basic mirror image is the basic mirror image after deleting an intermediate file, and the intermediate file represents a file marked for deletion; and the construction unit is used for constructing the target mirror image according to the target basic mirror image.
In an embodiment, the obtaining unit is further configured to obtain, from the image repository, a layer file of the base image and an identifier of the base image;
further comprising:
the determining unit is used for deleting the files marked for deletion in the layer files and determining the remaining files in the layer files as target basic mirror images;
and the storage unit is used for storing the corresponding relation between the target basic mirror image and the identification of the basic mirror image into a cache.
In another embodiment, the determining unit is specifically configured to:
sequentially determining the image layers of the basic images as current image layers from small to large, determining files comprising deletion identifications in the current image layers for each current image layer, determining files marked for deletion according to the files comprising the deletion identifications, and deleting the files marked for deletion;
and determining the residual files in the layer files of the basic mirror image as a target basic mirror image.
In another embodiment, the determining unit is specifically configured to:
acquiring file names of indication files in layer files of all image layers above the current image layer, wherein the file names of the indication files comprise deletion identifications and target file names;
and screening out files with the same name as the target file from the layer files of the current mirror image layer as files marked for deletion, and deleting the files marked for deletion.
In another embodiment, the determining unit is specifically configured to:
sequentially determining the image layers of the basic images as target image layers from small to large, acquiring file names of indication files in layer files of the target image layers for the target image layers, wherein the file names of the indication files comprise deletion marks and target file names, screening files with the same name as the target file name from the layer files of all the image layers below the target image layers as files marked for deletion, and deleting the files marked for deletion;
and determining the residual files in the layer files of the basic mirror image as a target basic mirror image.
In yet another embodiment, further comprising:
the judging unit is used for judging whether a target basic mirror image corresponding to the identification of the basic mirror image is stored in the cache;
and the obtaining unit is specifically configured to obtain the target base image from the cache if the target base image is the target base image.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus.
An electronic device of an embodiment of the present invention includes: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for image construction provided by the embodiment of the invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer-readable medium.
A computer-readable medium of an embodiment of the present invention stores thereon a computer program, which, when executed by a processor, implements the method for image construction provided by an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: in the embodiment of the invention, after the identification of the basic mirror image is obtained, the target basic mirror image corresponding to the identification of the basic mirror image can be obtained from the cache according to the identification of the basic mirror image, and then the mirror image can be constructed according to the target basic mirror image. In the embodiment of the invention, the target basic mirror image is the basic mirror image after the deletion of the intermediate file indicated to be deleted is deleted, so the target basic mirror image can be directly used for mirror image construction, and the speed and the efficiency of mirror image construction can be improved. In addition, because the target base mirror image is the base mirror image after the deletion of the intermediate file instructed to be deleted is deleted, the number of contents in the obtained target base mirror image is small, and the speed and the efficiency of mirror image construction can be improved compared with a mode of obtaining the base mirror image comprising the intermediate file.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of one principal flow of a method of image construction according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of yet another major flow of a method of image construction according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of yet another major flow of a method of image construction according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of the main elements of a mirror-constructed apparatus according to an embodiment of the present invention;
FIG. 5 is a diagram of yet another exemplary system architecture to which embodiments of the present invention may be applied;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing embodiments of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The embodiment of the invention provides a mirror image construction method which can be used for a mirror image construction scene. Typically, the base image for image construction is uploaded to an image repository for storage, so that a user can directly obtain the required base image from the image repository to construct a new image. The mirror repository may store a plurality of base mirrors, and a name, a table, an identifier, and the like of each base mirror, where the identifier of the base mirror may be a value of sha 256. Each basic mirror image can be updated in content, the updating mode of the basic mirror image is to add a mirror image layer on the basis of the original basic mirror image, and the added mirror image layer comprises modification instructions of the original basic mirror image, such as files to be added and/or deleted by the original basic mirror image. When files need to be added to the original basic mirror image, the files to be added can be directly stored in the added mirror image layer; when the file in the original basic image needs to be deleted, the file needing to be deleted can be indicated by indicating the file, and the file needing to be deleted can be called a file marked for deletion. Specifically, the indication file may indicate a file to be deleted by a file name. For example, a deletion identifier is preset, and the name of the file to be deleted and the deletion identifier are combined to be used as the name of the indication file, so that the indication file can be determined based on the deletion identifier, the name of the file to be deleted can be obtained according to the name of the indication file and the deletion identifier, and the file to be deleted, namely the file marked for deletion, can be determined. The deletion flag may be set to: wh.. In the embodiment of the present invention, a name indicating that the file name is obtained by adding the deletion identifier before the name of the file marked for deletion may be set.
An embodiment of the present invention provides a method for constructing an image, where the method may be performed by a terminal device, as shown in fig. 1, and the method includes the following steps.
S101: and acquiring the identification of the basic mirror image corresponding to the name of the basic mirror image from the mirror image warehouse according to the name of the basic mirror image.
The names of the basic mirror images are preset, a name list of the basic mirror images in the mirror image warehouse can be prestored in the step, the names of the basic mirror images required for building the mirror images can be selected according to the name list, and the basic mirror image identifiers corresponding to the names of the basic mirror images can be obtained from the mirror image warehouse based on the names of the basic mirror images. Meanwhile, parameters such as a file list of the basic mirror image corresponding to the name of the basic mirror image can be obtained from the mirror image warehouse.
In the embodiment of the present invention, the value of sha256 of the base image is used to indicate the identity of the base image. In the mirror image warehouse, each basic mirror image comprises a corresponding sha256 value, and for the same basic mirror image, the sha256 value of the basic mirror image updated each time is different, so that the basic mirror image can be uniquely identified through the sha 256.
It should be noted that, since the construction of the mirror image is usually performed in a container, the container for constructing the mirror image may be constructed before the mirror image is constructed.
S102: and acquiring the target basic mirror image corresponding to the identification of the basic mirror image from the cache.
The target basic mirror image is the basic mirror image after the intermediate file is deleted, and the intermediate file represents the file marked for deletion.
The files marked for deletion are deleted from the target basic mirror image, and the target basic mirror image is stored in the cache in advance, so that when the mirror image is reconstructed, the basic mirror image without the intermediate file can be directly obtained from the cache, the mirror image constructing process can be directly executed, and the mirror image constructing efficiency is improved.
In order to obtain the target base image from the cache, in the embodiment of the present invention, before performing this step, the following may be further performed: acquiring a layer file of a basic mirror image and an identification of the basic mirror image from a mirror image warehouse; deleting the files marked for deletion in the layer files, and determining the remaining files in the layer files as target basic mirror images; and storing the corresponding relation between the target basic mirror image and the identification of the basic mirror image into a cache.
And acquiring layer files of the basic image from the image warehouse, wherein the layer files comprise files of all image layers in the basic image, and some image layers of the basic image may comprise files marked for deletion. In the embodiment of the invention, after the basic mirror image is obtained, the file marked for deletion in the layer file can be deleted, the remaining files in the layer file are determined as the target basic mirror image, and then the corresponding relation between the target basic mirror image and the identification of the basic mirror image is stored in the cache, so that the target basic mirror image can be obtained from the cache according to the identification of the basic mirror image when the step is executed.
For deleting the file marked for deletion in the layer file of the current mirror layer, the following steps can be executed: sequentially determining the mirror image layers of the basic mirror image as current mirror image layers according to the sequence from small to large, and deleting files marked for deletion in the layer files of the current mirror image layers for each current mirror image layer; and determining the residual files in the layer files of the basic mirror image as the target basic mirror image.
The basic mirror image generally comprises a plurality of mirror image layers, and each mirror image layer is possible to comprise the files marked for deletion, so the embodiment of the invention can traverse each mirror image layer and delete the files marked for deletion in each mirror image layer, and further the rest files in the layer files of the basic mirror image can be determined as the target basic mirror image.
Because the basic mirror image is updated in a mode of adding the mirror image layer, and the added mirror image layer possibly indicates the files marked for deletion in the original mirror image layer, the mirror image layer of the basic mirror image can be traversed from small to large in the embodiment of the invention. The specific mode is that the mirror image layer of the basic mirror image is determined as the current mirror image layer in sequence according to the sequence from small to large of the mirror image layer, and the following steps are executed for each basic mirror image layer: and deleting the files marked for deletion in the layer files of the current mirror layer.
For the step of deleting the file marked for deletion in the layer file of the current mirror layer, the embodiment of the present invention may be specifically implemented as: acquiring file names of indication files in layer files of all image layers above a current image layer, wherein the file names of the indication files comprise deletion identifications and target file names; and screening out files with the same name as the target file from the layer files of the current mirror image layer as files marked for deletion, and deleting the files marked for deletion.
In the embodiment of the present invention, the file to be deleted is indicated by indicating the file name of the file, and based on the update mode of the basic image, all image layers above the current image layer may include an indication file indicating that the file in the current image layer is the file marked for deletion, so in this step, the indication file needs to be searched from the layer files of all image layers above the current image layer, and the name of the indication file is acquired. Since the file name of the indication file comprises the deletion identifier and the target file name, the indication file can be found through the deletion identifier, and further the target file name, namely the file name of the file indicated to be deleted, can be obtained. If a certain file name is the same as the target file name, the file name can be determined to be the file instructed to be deleted. Therefore, in the layer files of the current mirror layer, the files with the same name as the target file can be screened as the files marked for deletion, and the files marked for deletion can be deleted. After traversing each mirror image layer, all files marked for deletion in the basic mirror image can be deleted.
Specifically, it is assumed that the layer file of the base image includes files of N layers, and if the current image layer is the mth layer, all image layers above the current image layer refer to the M +1 th layer to the nth layer of the base image, where N is an integer greater than 0, and M is an integer greater than 0 and less than or equal to N. Firstly, determining a first layer of a basic mirror image as a current mirror image layer, and determining a file with a file name comprising a deletion identifier from a second layer to an Nth layer of the basic mirror image, namely an indication file; then, the file name of the indication file is obtained, and the file name comprises the deletion identification and the target file name, so that the target file name included in the file name of the indication file, namely the file name of the file marked for deletion, can be determined; and then screening out files with the same name as the target file from the layer files of the current mirror image layer according to the name of the target file, and deleting the files as marked and deleted files. Then, determining the second layer of the basic mirror image as a current mirror image layer, determining a file with a file name comprising a deletion identifier from the third layer to the Nth layer of the basic mirror image, namely, an indication file, and then obtaining the file name of the indication file, wherein the file name comprises the deletion identifier and a target file name, so that the target file name included in the file name of the indication file, namely, the file name of the file marked for deletion, can be determined; and then screening out files with the same name as the target file from the layer files of the current mirror image layer according to the name of the target file, and deleting the files as marked and deleted files. Therefore, the current mirror image layer is sequentially determined according to the sequence of the mirror image layers of the basic mirror image from small to large through the processes, and the process of deleting the files marked to be deleted in the current mirror image layer is executed, so that the target basic mirror image is obtained.
It should be noted that, in the embodiment of the present invention, an indication file generally indicates a file marked for deletion. For example, the deletion flag is: wh., the name of the file marked for deletion is: ABC, where the name of the indicated file may be wh, so that the indicated file may be determined according to the deletion identifier, and then the target file name, i.e., ABC, may be determined by removing the remaining part of the name of the indicated file except the deletion identifier, where the target file name is the name of a file marked for deletion, so that the file marked for deletion may be determined. Therefore, when there are a plurality of indication files, the obtained file names of the indication files also include a plurality of file names, and further the obtained target file names also include a plurality of file names. For example, it is determined that the indication files include two files, namely, wh.abc and wh.def, respectively, the target file names ABC and DEF can be obtained, and the file names representing the files marked for deletion are ABC and DEF, then the files with the file names the same as ABC or DEF can be screened from the current mirror layer, if a file with the file name the same as ABC exists, the file is regarded as the file marked for deletion and deleted, and if the file does not exist, the file can be ignored; if there is a file with the same file name as DEF, it is deleted as a file marked for deletion, and if not, it can be ignored.
It should be noted that, in the embodiment of the present invention, after deleting the file marked for deletion in the basic image, if the current image layer includes the indication file, the indication file in the current image layer may also be deleted, so as to further reduce the size of the target basic image and improve the efficiency of image construction.
S103: and constructing the target mirror image according to the target basic mirror image.
After the target basic mirror image is obtained, because the files marked for deletion are deleted in the target basic mirror image, the mirror image can be directly constructed to construct the target mirror image.
It should be noted that after the mirror image is built, the layer files of the mirror image may be packaged, and then the packaged mirror image may be uploaded to the corresponding mirror image center, and the container for building the mirror image is deleted.
In the embodiment of the invention, after the identification of the basic mirror image is obtained, the target basic mirror image corresponding to the identification of the basic mirror image can be obtained from the cache according to the identification of the basic mirror image, and then the mirror image can be constructed according to the target basic mirror image. In the embodiment of the invention, the target basic mirror image is the basic mirror image after the deletion of the intermediate file indicated to be deleted is deleted, so the target basic mirror image can be directly used for mirror image construction, and the speed and the efficiency of mirror image construction can be improved. In addition, because the target base mirror image is the base mirror image after the deletion of the intermediate file instructed to be deleted is deleted, the number of contents in the obtained target base mirror image is small, and the speed and the efficiency of mirror image construction can be improved compared with a mode of obtaining the base mirror image comprising the intermediate file.
As an implementation manner of the embodiment of the present invention, after the layer file of the basic mirror image is acquired, the file marked for deletion in the layer file is deleted, and the manner of determining the target basic mirror image may be further implemented as: sequentially determining the mirror image layers of the basic mirror image as target mirror image layers from small to large; for each target mirror image layer, acquiring a file name of an indication file in layer files of the target mirror image layer, wherein the file name of the indication file comprises a deletion identifier and a target file name, screening out files with the same name as the target file name from the layer files of all mirror image layers below the target mirror image layer as files marked for deletion, and deleting the files marked for deletion; and determining the residual files in the layer files of the basic mirror image as the target basic mirror image.
Specifically, it is assumed that the layer file of the base image includes files of N layers, and if the target image layer is the mth layer, all image layers above the target image layer refer to the M-1 st to 1 st layers of the base image, where N is an integer greater than 0, and M is an integer greater than 0 and less than or equal to N.
Because the updated mirror image layer is the update of the original basic mirror image, if all the mirror image layers include the indication files, the corresponding files marked for deletion should be the files in the mirror image layer below the mirror image layer in the basic mirror image, in the embodiment of the invention, the mirror image layers of the basic mirror image are sequentially determined as the target mirror image layers from small to large, the corresponding files marked for deletion in all the mirror image layers below the target mirror image layer are determined and deleted through the indication files in the target mirror image layer, and thus, all the files marked for deletion in the basic mirror image are deleted in an iterative manner.
It should be noted that, since the basic image is a modification of the content in the basic image before the update when the basic image is updated, the image layer includes a file with a preset deletion identifier, which indicates deletion of a corresponding file in the content of the basic image within the image layer.
For example, assume that the layer file of the base image includes a file of N layers, where N is an integer greater than 0. When the Mth mirror image layer is the target mirror image layer, indicating files in the Mth layer files, further acquiring the names of the target files according to the names of the indicating files, then screening files with the same names as the target files from the layer 1 to the layer M-1 as files marked for deletion, and deleting the files marked for deletion.
The following describes, with reference to the embodiment shown in fig. 1, a process of determining and storing a target base image in the foregoing embodiment by taking a preset deletion identifier of wh. and an identifier of the base image as a corresponding sha256 value as an example, as shown in fig. 2, where the method includes the following steps.
S201: and acquiring the layer file and the sha256 value of the base image from the image warehouse.
The basic mirror image needing to be preprocessed can be obtained from a mirror image warehouse, and the layer files are files in all mirror image layers of the basic mirror image. In this step, the file list and the sha256 value of the base image can be obtained from the image repository.
S202: create/base directory and/next directory in container, initialize layer identification.
Wherein, the container can be pre-established, and can be a container for constructing mirror image. The layer identifier is used for representing each mirror image layer in the basic mirror image, the basic mirror image is set to comprise N layers in the embodiment of the invention, the layer identifier is set as an initial value by the initialization layer identifier, and the initial value can be 1.
And creating/base directory and/next directory, filtering the layer file in the basic mirror image through two targets, and deleting the intermediate file.
S203: and decompressing the layer file of the first layer in the base image to a/base directory.
In the base image, there may be an image layer for updating the content of the base image only from the second layer, so the layer file of the first layer may be directly decompressed into the base directory in this step. Since files in the base image are typically compressed files, decompression is required at the time of processing.
S204: the layer identifier is incremented by a preset value, whether the layer identifier is larger than N is judged, and if yes, step 211 is executed; if not, go to step S205.
The preset value can be set according to requirements, and can be set to be 1. The number of mirror image layers of the basic mirror image is N, the layer identification is increased by a preset value and then whether the number of the mirror image layers is larger than N is judged, and if the layer identification is larger than N, the basic mirror image is processed, the step S211 is executed; if the layer id is not greater than N, which indicates that there is still a mirror layer without processing, step S205 is executed.
It should be noted that some basic images include only one layer, and if the basic image is for content update, N is equal to 1, and step S211 can be directly executed after step S203 is executed.
S205: and decompressing the layer file of the layer identification corresponding to the mirror image layer in the basic mirror image to a/next directory.
The layer identification corresponding to the mirror image layer represents the current mirror image layer to be processed, namely the target mirror image layer, and the layer file of the layer identification corresponding to the layer in the basic mirror image is decompressed to a next directory so as to be processed conveniently.
S206: judging whether the/next directory includes an indication file, if so, executing step S207; if not, go to step S210.
In the embodiment of the present invention, the deletion flag is set to be wh., and the filename of the indication file is set to be the deletion flag + the target filename, so that in this step, it may be determined whether the/next directory includes a file with a filename prefix of wh., that is, the indication file. If yes, indicating that the target image layer comprises the indication file, executing step S207; if not, it indicates that the target image layer does not include the indication file, and step S210 is executed.
S207: and determining the part of the file name of the indication file except the deletion mark as a target file name.
In the embodiment of the present invention, it is set that the wh. + target file name is the file name of the indication file, so that for the file name of the indication file, the part except the prefix wh. is the target file name, i.e., the name of the file marked for deletion.
S208: the file with the file name of the target file name in the/base directory is deleted.
After the target file name is determined in S207, the file marked for deletion may be determined from the/base directory according to the target file name, and then deleted, that is, the intermediate file is deleted.
It should be noted that the file stored in the/base directory is a file of the mirror layer below the target mirror layer, and the indication file in the target mirror layer is an update of the file of the mirror layer below the target mirror layer, so the file marked for deletion can be directly determined from the/base directory according to the target file name and deleted in this step.
S209: the remaining files in the/next directory except the indicated file are moved to the/base directory and the/next directory is emptied.
The indication file in the/next directory is used for indicating the file to be deleted, namely the file marked for deletion, and the file to be added is directly stored, so the remaining files in the/next directory except the indication file are the files to be added in the base image, and therefore the file can be directly moved to the/base directory. The rest files except the indication file are moved to a base directory, and the rest indication files in a next directory are useless files and can be directly emptied.
It should be noted that, in this step, the remaining files in the/next directory except the indication file are moved to the/base directory, so that the files in the/base directory are the layer files in the corresponding layer from the first layer to the target image layer in the base image, and the intermediate files and the indication file are not included.
After the execution of this step is completed, step S204 is executed.
S210: and moving the files in the/next directory to the/base directory.
The indication file is not included in the/next directory, which indicates that the files are all files to be added by the base image, so that the files in the/next directory can be directly moved to the/base directory. After moving the file in the/next directory to the/base directory, the/next directory is emptied.
It should be noted that, in this step, the file in the/next directory is moved to the/base directory, so that the file in the/base directory is the layer file from the first layer to the target image layer in the base image, and the intermediate file and the indication file are not included therein.
After the execution of this step is completed, step S204 is executed.
S211: and compressing and packaging the files in the/base directory and storing the sha256 values corresponding to the base image.
When the layer mark is larger than N, the processing of the files of each layer in the base mirror image is completed, the intermediate files are deleted, and the files in the base directory are all the files of the base mirror image, so that the files in the base directory can be compressed, packaged and stored. The storage mode of the basic image can be in a k-v format, wherein k is the sha256 value of the basic image, and v is the file of the basic image after being compressed and packaged.
In the embodiment of the invention, the files needing to be deleted in the basic mirror image are deleted, and the target basic mirror image which does not comprise the files marked for deletion is obtained, so that the construction is directly carried out according to the obtained basic mirror image, and the speed and the efficiency of mirror image construction are improved.
For the basic image deleted with the intermediate file obtained in the embodiment shown in fig. 2, the basic image may be directly stored in the cache, when the image needs to be constructed, the corresponding target basic image may be obtained from the cache according to the sha256 value, and if the image is not stored in the cache, the target basic image is obtained from the image warehouse. A specific process may be as shown in fig. 3, including the following steps.
S301: a container is created that constructs the image.
S302: the manifest of the base image and the sha256 value of the base image are obtained from the image repository.
S303: judging whether the corresponding target basic mirror image is stored in the cache or not according to the sha256 value, if so, executing the step S306; if not, go to step S304.
S304: a base image is obtained from an image repository.
S305: and deleting the intermediate file in the basic mirror image, compressing and storing the intermediate file in a cache, and constructing the mirror image according to the basic mirror image with the intermediate file deleted.
The method described in the embodiment shown in fig. 1 or fig. 2 may be used in the manner of deleting the intermediate file in the base image and compressing and storing the intermediate file in the cache in this step. Step S307 is executed after the execution step.
S306: and decompressing the target basic mirror image to construct a mirror image.
S307: and compressing and uploading the constructed mirror image to a mirror image warehouse, and deleting the container.
The method and the device can directly acquire the target basic mirror image from the cache, and compared with a mode of acquiring the basic mirror image from the mirror image warehouse, the method and the device can further improve the speed and efficiency of constructing the mirror image.
In order to solve the problems in the prior art, an embodiment of the present invention provides an apparatus 400 for mirror image construction, as shown in fig. 4, the apparatus 400 includes:
an obtaining unit 401, configured to obtain, according to a basic mirror name, an identifier of a basic mirror corresponding to the basic mirror name from a mirror repository;
the obtaining unit 401 is further configured to obtain a target basic mirror image corresponding to the identifier of the basic mirror image from a cache, where the target basic mirror image is the basic mirror image after deleting an intermediate file, and the intermediate file represents a file marked for deletion;
a building unit 402, configured to build a target image according to the target base image.
It should be understood that the manner of implementing the embodiment of the present invention is the same as the manner of implementing the embodiment shown in fig. 1, and the description thereof is omitted.
In an implementation manner of the embodiment of the present invention, the obtaining unit is further configured to obtain the layer file of the basic image and the identifier of the basic image from the image repository;
further comprising:
the determining unit is used for deleting the files marked for deletion in the layer files and determining the remaining files in the layer files as target basic mirror images;
and the storage unit is used for storing the corresponding relation between the target basic mirror image and the identification of the basic mirror image into a cache.
In another implementation manner of the embodiment of the present invention, the determining unit is specifically configured to:
sequentially determining the image layers of the basic images as current image layers from small to large, determining files comprising deletion identifications in the current image layers for each current image layer, determining files marked for deletion according to the files comprising the deletion identifications, and deleting the files marked for deletion;
and determining the residual files in the layer files of the basic mirror image as a target basic mirror image.
In another implementation manner of the embodiment of the present invention, the determining unit is specifically configured to:
acquiring file names of indication files in layer files of all image layers above the current image layer, wherein the file names of the indication files comprise deletion identifications and target file names;
and screening out files with the same name as the target file from the layer files of the current mirror image layer as files marked for deletion, and deleting the files marked for deletion.
In another implementation manner of the embodiment of the present invention, the determining unit is specifically configured to:
sequentially determining the image layers of the basic images as target image layers from small to large, acquiring file names of indication files in layer files of the target image layers for the target image layers, wherein the file names of the indication files comprise deletion marks and target file names, screening files with the same name as the target file name from the layer files of all the image layers below the target image layers as files marked for deletion, and deleting the files marked for deletion;
and determining the residual files in the layer files of the basic mirror image as a target basic mirror image.
In another implementation manner of the embodiment of the present invention, the apparatus 400 further includes:
the judging unit is used for judging whether a target basic mirror image corresponding to the identification of the basic mirror image is stored in the cache;
the obtaining unit 401 is specifically configured to, if yes, obtain the target base image from the cache.
It should be understood that the embodiment of the present invention is implemented in the same manner as the embodiment shown in fig. 1, 2 or 3, and is not repeated herein.
In the embodiment of the invention, after the identification of the basic mirror image is obtained, the target basic mirror image corresponding to the identification of the basic mirror image can be obtained from the cache according to the identification of the basic mirror image, and then the mirror image can be constructed according to the target basic mirror image. In the embodiment of the invention, the target basic mirror image is the basic mirror image after the deletion of the intermediate file indicated to be deleted is deleted, so the target basic mirror image can be directly used for mirror image construction, and the speed and the efficiency of mirror image construction can be improved. In addition, because the target base mirror image is the base mirror image after the deletion of the intermediate file instructed to be deleted is deleted, the number of contents in the obtained target base mirror image is small, and the speed and the efficiency of mirror image construction can be improved compared with a mode of obtaining the base mirror image comprising the intermediate file.
The invention also provides an electronic device and a readable storage medium according to the embodiment of the invention.
The electronic device of the present invention includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the processor, and the instructions are executed by the at least one processor to cause the at least one processor to execute the method for image construction provided by the embodiment of the invention.
FIG. 5 illustrates an exemplary system architecture 500 to which the method of image construction or apparatus of embodiments of the present invention may be applied.
As shown in fig. 5, system architecture 500 may include at least one terminal device (three terminal devices 501, 502, and 503 are shown in fig. 5). Taking the terminal device 501 as an example for description, the terminal device 501 may be various electronic devices with a mirror image construction function, including but not limited to a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like, and the mirror image construction function may be implemented by installing a client or an application for mirror image construction in the terminal device 501. When the terminal device 501 operates, it may obtain required information, such as basic image information, from the server 505 according to user requirements, and construct a new image according to the obtained information.
The system architecture 500 may further include a server 505, and the server 505 may be a server providing various image information, for example, a mirror repository may be provided in the server 505, and the mirror repository stores basic image information for image construction, so that a user can access the server 505 through the terminal device 501, the terminal device 502, or the terminal device 503 to obtain a required basic image from the mirror repository of the server 505 to construct a new image.
As shown in fig. 5, the system architecture 500 may also include a network 504. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
It should be noted that the method for image construction provided by the embodiment of the present invention is generally executed by one of the terminal devices 501, 502, and 503, and accordingly, the apparatus for image construction is generally disposed in one of the terminal devices 501, 502, and 503.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use in implementing embodiments of the present invention is shown. The computer system illustrated in FIG. 6 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium 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 the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer 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. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a unit, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit and a construction unit. Where the names of these units do not in some cases constitute a limitation of the unit itself, for example, an acquisition unit may also be described as a "unit of the function of the acquisition unit".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to perform the method of image construction provided by the present invention.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of image construction, comprising:
acquiring a basic mirror image identifier corresponding to a basic mirror image name from a mirror image warehouse according to the basic mirror image name;
acquiring a target basic mirror image corresponding to the identification of the basic mirror image from a cache, wherein the target basic mirror image is the basic mirror image after an intermediate file is deleted, and the intermediate file represents the file marked for deletion;
and constructing a target mirror image according to the target basic mirror image.
2. The method of claim 1, wherein prior to obtaining the target base image corresponding to the identity of the base image, further comprising:
acquiring a layer file of the basic mirror image and an identifier of the basic mirror image from the mirror image warehouse;
deleting the files marked for deletion in the layer files, and determining the remaining files in the layer files as target basic mirror images;
and storing the corresponding relation between the target basic mirror image and the identification of the basic mirror image to the cache.
3. The method of claim 2, wherein deleting the files marked for deletion in the layer files, determining the remaining files in the layer files as target base images, comprises:
sequentially determining the mirror image layers of the basic mirror image as current mirror image layers according to the sequence from small to large, and deleting files marked for deletion in the layer files of the current mirror image layers for each current mirror image layer;
and determining the residual files in the layer files of the basic mirror image as a target basic mirror image.
4. The method of claim 3, wherein deleting the file marked for deletion from the layer files of the current mirror layer comprises:
acquiring file names of indication files in layer files of all mirror image layers above the current mirror image layer, wherein the file names of the indication files comprise deletion identifications and target file names;
and screening out files with the same name as the target file from the layer files of the current mirror image layer as files marked for deletion, and deleting the files marked for deletion.
5. The method of claim 2, wherein deleting the files marked for deletion in the layer files, determining the remaining files in the layer files as target base images, comprises:
sequentially determining the image layers of the basic images as target image layers from small to large, acquiring file names of indication files in layer files of the target image layers for the target image layers, wherein the file names of the indication files comprise deletion marks and target file names, screening files with the same name as the target file name from the layer files of all the image layers below the target image layers as files marked for deletion, and deleting the files marked for deletion;
and determining the residual files in the layer files of the basic mirror image as a target basic mirror image.
6. The method of claim 1, wherein obtaining the target base image corresponding to the identity of the base image comprises:
judging whether a target basic mirror image corresponding to the identification of the basic mirror image is stored in a cache;
and if so, acquiring the target basic mirror image from the cache.
7. An apparatus for mirror image construction, comprising:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring the identification of a basic mirror image corresponding to a basic mirror image name from a mirror image warehouse according to the basic mirror image name;
the acquiring unit is further configured to acquire a target basic mirror image corresponding to the identifier of the basic mirror image from a cache, where the target basic mirror image is the basic mirror image after deleting an intermediate file, and the intermediate file represents a file marked for deletion;
and the construction unit is used for constructing the target mirror image according to the target basic mirror image.
8. The apparatus of claim 7, wherein the obtaining unit is further configured to obtain the layer file of the base image and the identification of the base image from the image repository,
the method comprises the following steps:
the determining unit is used for deleting the files marked for deletion in the layer files and determining the remaining files in the layer files as target basic mirror images;
and the storage unit is used for storing the corresponding relation between the target basic mirror image and the identification of the basic mirror image into a cache.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202010250610.2A 2020-04-01 2020-04-01 Mirror image construction method and device, electronic equipment and storage medium Pending CN113495870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010250610.2A CN113495870A (en) 2020-04-01 2020-04-01 Mirror image construction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010250610.2A CN113495870A (en) 2020-04-01 2020-04-01 Mirror image construction method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113495870A true CN113495870A (en) 2021-10-12

Family

ID=77994021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010250610.2A Pending CN113495870A (en) 2020-04-01 2020-04-01 Mirror image construction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113495870A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114785770A (en) * 2022-04-01 2022-07-22 京东科技信息技术有限公司 Mirror layer file sending method and device, electronic equipment and computer readable medium
CN117389690A (en) * 2023-12-08 2024-01-12 中电云计算技术有限公司 Mirror image package construction method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090204650A1 (en) * 2007-11-15 2009-08-13 Attune Systems, Inc. File Deduplication using Copy-on-Write Storage Tiers
CN106843976A (en) * 2017-01-25 2017-06-13 北京百度网讯科技有限公司 Method and apparatus for generating image file
CN107015995A (en) * 2016-01-28 2017-08-04 华为技术有限公司 The amending method and device of a kind of image file
CN107809467A (en) * 2017-10-10 2018-03-16 暨南大学 Container mirror image data deletes method under a kind of cloud environment
US20180349150A1 (en) * 2017-06-05 2018-12-06 International Business Machines Corporation Facilitating multi-inheritance within a single inheritance container-based environment
CN110413455A (en) * 2019-07-11 2019-11-05 北京百度网讯科技有限公司 Container mirror processing method, device, computer equipment and storage medium
CN110704156A (en) * 2019-08-16 2020-01-17 北京奇艺世纪科技有限公司 Docker mirror image construction method and device
CN110908671A (en) * 2018-09-18 2020-03-24 北京京东尚科信息技术有限公司 Method and device for constructing docker mirror image and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090204650A1 (en) * 2007-11-15 2009-08-13 Attune Systems, Inc. File Deduplication using Copy-on-Write Storage Tiers
CN107015995A (en) * 2016-01-28 2017-08-04 华为技术有限公司 The amending method and device of a kind of image file
CN106843976A (en) * 2017-01-25 2017-06-13 北京百度网讯科技有限公司 Method and apparatus for generating image file
US20180349150A1 (en) * 2017-06-05 2018-12-06 International Business Machines Corporation Facilitating multi-inheritance within a single inheritance container-based environment
CN107809467A (en) * 2017-10-10 2018-03-16 暨南大学 Container mirror image data deletes method under a kind of cloud environment
CN110908671A (en) * 2018-09-18 2020-03-24 北京京东尚科信息技术有限公司 Method and device for constructing docker mirror image and computer readable storage medium
CN110413455A (en) * 2019-07-11 2019-11-05 北京百度网讯科技有限公司 Container mirror processing method, device, computer equipment and storage medium
CN110704156A (en) * 2019-08-16 2020-01-17 北京奇艺世纪科技有限公司 Docker mirror image construction method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
XIAO ZHANG 等: "MLFS: A multiple layers share file system for cloud computing", 2014 IEEE GLOBECOM WORKSHOPS (GC WKSHPS), 31 December 2014 (2014-12-31) *
周毅;邓玉辉;: "一种概率模型的Docker镜像删减策略", 小型微型计算机系统, no. 09, 15 September 2018 (2018-09-15) *
李锋;陆婷婷;郭建华;: "一种基于重复数据删除的镜像文件存储方法研究", 计算机科学, no. 2, 15 November 2016 (2016-11-15) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114785770A (en) * 2022-04-01 2022-07-22 京东科技信息技术有限公司 Mirror layer file sending method and device, electronic equipment and computer readable medium
CN117389690A (en) * 2023-12-08 2024-01-12 中电云计算技术有限公司 Mirror image package construction method, device, equipment and storage medium
CN117389690B (en) * 2023-12-08 2024-03-15 中电云计算技术有限公司 Mirror image package construction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107870728B (en) Method and apparatus for moving data
US9542461B2 (en) Enhancing performance of extract, transform, and load (ETL) jobs
US9922041B2 (en) Storing data files in a file system
CN113495870A (en) Mirror image construction method and device, electronic equipment and storage medium
CN110727468A (en) Method and apparatus for managing algorithm models
CN112965761B (en) Data processing method, system, electronic equipment and storage medium
CN112926068A (en) Authority management method, management server, service server and readable storage medium
US10002135B2 (en) Simplifying the check-in of checked-out files in an ECM system
CN110740138B (en) Data transmission method and device
CN111614730A (en) File processing method and device of cloud storage system and electronic equipment
CN111125163A (en) Method and apparatus for processing data
CN115129425A (en) Method and device for copying mirror image
CN110019026B (en) File cleaning method and device
CN110413603B (en) Method and device for determining repeated data, electronic equipment and computer storage medium
CN112783514A (en) Method and system for deployment management of web front-end project
CN111176679A (en) Application program updating method and device
CN113284174A (en) Method and device for processing pictures
CN114579520B (en) Mirror image data processing method, mirror image data loading method and device
CN111263936A (en) Electronic terminal and junk file processing method thereof
CN113760349A (en) Mirror image upgrading method and device
CN112925573B (en) Method, device, equipment and computer readable medium for loading web page
CN114546522B (en) Picture configuration method and device for application, electronic equipment and storage medium
CN115840580A (en) Updating method and device for vehicle-mounted application of automatic driving vehicle and electronic equipment
CN114328411A (en) Map file processing method, device and equipment and automatic driving automobile
CN112487001A (en) Method and device for processing request

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