CN111629058A - Mirror image uploading method, device and system and back-end equipment - Google Patents

Mirror image uploading method, device and system and back-end equipment Download PDF

Info

Publication number
CN111629058A
CN111629058A CN202010463048.1A CN202010463048A CN111629058A CN 111629058 A CN111629058 A CN 111629058A CN 202010463048 A CN202010463048 A CN 202010463048A CN 111629058 A CN111629058 A CN 111629058A
Authority
CN
China
Prior art keywords
mirror image
image
uploading
file
temporary directory
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
CN202010463048.1A
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.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Big Data Research 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 Guangdong Inspur Big Data Research Co Ltd filed Critical Guangdong Inspur Big Data Research Co Ltd
Priority to CN202010463048.1A priority Critical patent/CN111629058A/en
Publication of CN111629058A publication Critical patent/CN111629058A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a mirror image uploading method, which comprises the following steps: acquiring one or more image files and user information sent by front-end equipment, and determining a primary temporary directory according to the user information; creating a corresponding secondary temporary directory under the primary temporary directory based on the basic information of each image file, and storing the image file in the corresponding secondary temporary directory; establishing a transmission link with a corresponding mirror image warehouse according to the mirror image warehouse information of the mirror image file; and uploading the plurality of mirror image files in the secondary temporary directory to a corresponding mirror image warehouse concurrently. The method and the device can simplify the operation of the user during mirror image uploading, can also ensure that the user can upload a plurality of mirror image files concurrently, and effectively improve the efficiency of container uploading. The application also provides a mirror image uploading device, a rear-end device and a mirror image uploading system, and the mirror image uploading device, the rear-end device and the mirror image uploading system all have the beneficial effects.

Description

Mirror image uploading method, device and system and back-end equipment
Technical Field
The present application relates to the field of mirror image uploading technologies, and in particular, to a mirror image uploading method, a mirror image uploading apparatus, a backend device, and a mirror image uploading system.
Background
In the cloud computing era, cloud platforms are more and more widely used, the cloud platforms have the advantages that rapid deployment is achieved through mirroring, for application, the mirroring needs to be packaged and pulled in the process of creation and upgrading, the importance of the mirroring can be seen, and the mirroring is an indispensable part of the cloud platforms.
The mirror images used in the cloud platform are all obtained through a mirror image warehouse of the cloud platform, and when the mirror images are pushed to the mirror image warehouse, the operation needs to be carried out on a server terminal. When a plurality of mirror image files are uploaded, if corresponding mirror image warehouses are the same, the mirror image files are sequentially uploaded to the mirror image warehouses; if the corresponding mirror image warehouses are different, connection with the mirror image warehouses needs to be established in sequence to finish uploading of the corresponding mirror image files, and therefore when the plurality of mirror image files are uploaded to the mirror image warehouses, operation of users is complex, and uploading efficiency is low.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a mirror image uploading method, a mirror image uploading device, a back-end device and a mirror image uploading system, so that the operation of a user is simplified, a plurality of mirror image files can be uploaded concurrently, and the container uploading efficiency is effectively improved. The specific scheme is as follows:
the application discloses a mirror image uploading method, which comprises the following steps:
acquiring one or more image files and user information sent by front-end equipment, and determining a primary temporary directory according to the user information;
creating a corresponding secondary temporary directory under the primary temporary directory based on the basic information of each image file, and storing the image file in the corresponding secondary temporary directory;
establishing a transmission link with a corresponding mirror image warehouse according to the mirror image warehouse information of the mirror image file;
and uploading the plurality of image files in the secondary temporary catalog to the corresponding image warehouse concurrently.
Optionally, the obtaining one or more image files and user information sent by the front-end device includes:
acquiring all fragment data packets sent by the front-end equipment;
the fragment data packet comprises fragment data and the user information, wherein the fragment data is obtained by the front-end equipment performing fragment processing on the mirror image file;
correspondingly, the uploading to the corresponding mirror image warehouse according to the plurality of mirror image files in the secondary temporary directory concurrently includes:
performing file integration on all the fragment data packets to obtain the integrated mirror image file;
and uploading all the integrated mirror image files to the corresponding mirror image warehouse concurrently.
Optionally, the storing the image file in the corresponding secondary temporary directory includes:
storing the fragment data packet in an address of the secondary temporary directory;
uploading and locking each fragment data packet, and recording fragment marks of the uploaded fragment data packets;
correspondingly, performing file integration on all the fragment data packets to obtain the integrated image file, including:
and performing the file integration on the fragment data packet according to all the fragment marks to obtain the integrated mirror image file.
Optionally, the performing file integration on the fragment data packet according to all the fragment marks to obtain the integrated image file includes:
performing the file integration on the fragment data packet according to all the fragment marks;
judging whether the file integration is successful;
and if the file integration is successful, obtaining the integrated image file.
Optionally, if the file integration fails, a prompt message is sent to the front-end device.
Optionally, the uploading the plurality of image files in the secondary temporary directory to the corresponding image warehouse concurrently includes:
and executing load, tag and push operations on all the image files so as to upload all the image files to the corresponding image warehouse.
Optionally, the creating a corresponding secondary temporary directory under the primary temporary directory based on the basic information of each image file includes:
generating a check value based on the basic information of each mirror image file;
and creating a corresponding secondary temporary directory under the primary temporary directory based on the check value.
The application discloses mirror image upload device includes:
the system comprises an acquisition module, a storage module and a display module, wherein the acquisition module is used for acquiring one or more image files and user information sent by front-end equipment and determining a primary temporary directory according to the user information;
the directory establishing module is used for establishing a corresponding secondary temporary directory under the primary temporary directory based on the basic information of each image file and storing the image file in the corresponding secondary temporary directory;
the link establishing module is used for establishing a transmission link with a corresponding mirror image warehouse according to the mirror image warehouse information of the mirror image file;
and the uploading module is used for uploading the plurality of image files in the secondary temporary directory to the corresponding image warehouse concurrently.
The application discloses backend equipment includes:
a memory for storing a computer program;
a processor for implementing the steps of the image uploading method as described above when executing the computer program.
The application discloses mirror image upload system includes:
a mirror image warehouse;
the backend device as described above;
and the front-end equipment is used for sending the one or more image files and the user information to the back-end equipment.
The application provides a mirror image uploading method, which comprises the following steps: acquiring one or more image files and user information sent by front-end equipment, and determining a primary temporary directory according to the user information; creating a corresponding secondary temporary directory under the primary temporary directory based on the basic information of each image file, and storing the image file in the corresponding secondary temporary directory; establishing a transmission link with a corresponding mirror image warehouse according to the mirror image warehouse information of the mirror image file; and uploading the plurality of mirror image files in the secondary temporary directory to a corresponding mirror image warehouse concurrently.
In the application, the user can execute the operation through the front-end equipment and send one or more image files and user information to the back-end equipment, so that the operation of the user is simplified; and a corresponding secondary temporary directory is established on the back-end equipment according to the primary temporary directory under the user information, and then a transmission link with a corresponding mirror image warehouse is established according to the mirror image warehouse information, so that the user can be ensured to upload a plurality of mirror image files concurrently, and the container uploading efficiency is effectively improved.
This application still provides a mirror image upload device, rear end server and mirror image upload system simultaneously, all has above-mentioned beneficial effect, no longer gives unnecessary details here.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a mirror image uploading method provided in an embodiment of the present application;
fig. 2 is a flowchart of another mirror image uploading method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a mirror image uploading apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a backend device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mirror image uploading system according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The mirror images used in the cloud platform are all obtained through a mirror image warehouse of the cloud platform, and when the mirror images are pushed to the mirror image warehouse, the operation needs to be carried out on a server terminal. When a plurality of mirror image files are uploaded, if corresponding mirror image warehouses are the same, the mirror image files are sequentially uploaded to the mirror image warehouses; if the corresponding mirror image warehouses are different, connection with the mirror image warehouses needs to be established in sequence to finish uploading of the corresponding mirror image files, and therefore when the plurality of mirror image files are uploaded to the mirror image warehouses, operation of users is complex, and uploading efficiency is low. Based on the foregoing technical problems, this embodiment provides a mirror image uploading method, which simplifies the operation of a user, can ensure that the same user can upload a plurality of mirror image files concurrently, and effectively improves the efficiency of uploading a container, specifically refer to fig. 1, where fig. 1 is a flowchart of a mirror image uploading method provided in this embodiment of the present application, and specifically includes:
s101, acquiring one or more image files and user information sent by front-end equipment, and determining a primary temporary directory according to the user information;
the front-end equipment can provide an input interface of image files and user information and a sending trigger unit for a user on a user interaction interface through a client installed by the front-end equipment. Various displays and reminder information may also be included in the user interface. And the user uploads one or more image files to the image warehouse through the front-end equipment and the back-end equipment.
The image file includes, but is not limited to, an image, basic information of the image file, an image repository corresponding to the image file, and a storage directory in the image repository. It is understood that different types of images are stored in different image repositories, and the basic information of the image file includes, but is not limited to, an image type, an image name, an image version number, and an image identifier, wherein the image identifier is a unique identifier of the image, and the unique identifier may be an image file name or a character number. For example, the basic information of the image file a is "image file a", or "1". The user information may be a user token.
Therefore, the step can support the same user to upload the plurality of container mirror image files simultaneously, and due to the fact that the identity information is set, the mirror image warehouse authentication information conflict coverage can not happen when different users upload the plurality of container mirror image files simultaneously.
S102, creating a corresponding secondary temporary directory under the primary temporary directory based on the basic information of each image file, and storing the image file in the corresponding secondary temporary directory;
specifically, when a user first performs mirror image uploading, the back-end device creates a primary temporary directory at a server corresponding to the back-end device according to user information; that is, each user will have a primary temporary directory. The back-end device creates a secondary temporary directory under the primary temporary directory according to the basic information of the image files, and it can be understood that the basic information of each file is different, so that one image file corresponds to one secondary temporary directory, and the image files are stored in the corresponding secondary temporary directories.
S103, establishing a transmission link with a corresponding mirror image warehouse according to the mirror image warehouse information of the mirror image file;
each image file corresponds to a stored image warehouse. Establishing contact with Dockererver through Docker Client, sending a request, and establishing a transmission link between the Dockererver and the Dockererver. For example, the image file of the user sent by the front end includes an image file a and an image file B, the image file a corresponds to an image warehouse a, the image file B corresponds to an image warehouse B, and at this time, a transmission link between the back end device and the image warehouse a and a transmission link between the back end device and the image warehouse B are established to realize concurrent uploading. It can be understood that, in the application, the transmission link with the corresponding mirror image warehouse is established according to the mirror image warehouse information of the user, so that different users are operated and isolated, and the operation authority cannot be changed. It can be understood that, in the related art, a multi-level storage strategy is not executed on the image data of the backend device, so that after receiving a plurality of image files, only one link can be established, and only all the image files can be uploaded to one image warehouse, but the image warehouses corresponding to different types of image files are different, and the image warehouse needs to be replaced, so that the image files can be uploaded again, and thus, the uploading efficiency is low. The image file can be uploaded in a concurrent mode, and the efficiency of uploading the image file is greatly improved.
And S104, uploading the plurality of image files in the secondary temporary directory to a corresponding image warehouse concurrently.
After the transmission link is established, the back-end equipment sends an uploading request to the mirror image warehouse, then calls an interface to execute uploading operation, and uploads the mirror image to the mirror image warehouse.
Based on the technical scheme, the user can execute operation through the front-end equipment and send one or more image files and user information to the back-end equipment, so that the operation of the user is simplified; and a corresponding secondary temporary directory is established on the back-end equipment according to the primary temporary directory under the user information, and then a transmission link with a corresponding mirror image warehouse is established according to the mirror image warehouse information, so that the user can be ensured to upload a plurality of mirror image files concurrently, and the container uploading efficiency is effectively improved.
Based on the foregoing embodiment, in order to ensure the integrity and uniqueness of the image file, please refer to fig. 2, where fig. 2 is a schematic flow diagram of another image uploading method provided in the embodiment of the present application, including:
s201, the front-end equipment performs fragmentation processing on the mirror image file to obtain a plurality of fragment data;
the specific fragmentation processing manner may be performed based on the size of the fragments or the number of the fragments.
S202, the front-end equipment sequentially sends the fragment data packets to the rear-end equipment, and the fragment data packets comprise fragment data and user information;
and each piece of fragment data and the user information are sequentially sent to the back-end equipment.
S203, the back-end equipment acquires all the fragment data packets sent by the front-end equipment and determines a primary temporary directory according to the user information;
the fragment data packet comprises fragment data and user information, and the fragment data is obtained by performing fragment processing on the mirror image file by the front-end equipment;
specifically, the front-end device sends a first fragment data packet of a first image file, the back-end device receives the fragment data packet, analyzes the fragment data packet to obtain user information, and determines a primary temporary directory corresponding to the first image file according to the user information; meanwhile, the front-end equipment sends a first fragment data packet of the second mirror image file, the back-end equipment receives the fragment data packet, analyzes the fragment data packet to obtain user information, and determines a primary temporary directory corresponding to the second mirror image file according to the user information.
S204, creating a corresponding secondary temporary directory under the primary temporary directory based on the basic information of each mirror image file;
and creating a corresponding secondary temporary directory based on the mirrored basic information, wherein one or more secondary temporary directories can be included under one primary temporary directory.
Further, step S204 may include: generating a check value based on the basic information of each mirror image file; and creating a corresponding secondary temporary directory under the primary temporary directory based on the check value.
Specifically, based on the generated MD5 check value of the basic information of each image file, a corresponding secondary temporary directory is created under the primary temporary directory.
The multi-level storage directory address of the server-side temporary file and the first temporary directory and the second temporary directory are created according to the MD5 value generated by the identity information of the user, specifically Token login information and the uploaded mirror image basic information (such as name, version number and the like), and the integrity and uniqueness of the server-side temporary file are guaranteed.
S205, storing the fragment data packet in the address of the secondary temporary directory;
s206, uploading and locking each fragment data packet, and recording fragment marks of the uploaded fragment data packets;
each fragmented data packet is uploaded and locked, and a Redis cache is called to record the fragmentation mark of the uploaded fragmented data packet, wherein the fragmentation mark can be the current fragment number, so that the situation that the same user uploads two fragmented data packets with the same fragment number simultaneously is prevented.
After step S206, the back-end device performs file integration on the fragment data packet according to all the fragment marks, so as to obtain an integrated image file, which specifically includes:
s207, performing file integration on all the fragment data packets to obtain an integrated mirror image file;
s208, performing file integration on the fragment data packet according to all the fragment marks;
s209, judging whether the file integration is successful;
if the result is successful, executing step S210, and if the result is failed, executing step S214;
s210, obtaining an integrated mirror image file;
s211, establishing a transmission link with a corresponding mirror image warehouse according to the mirror image warehouse information of the mirror image file;
when the image file is pushed, a corresponding transmission link is established for a private warehouse, namely a corresponding image warehouse, so that the problem of login information coverage when a user logs in the warehouse is solved.
And S212, uploading the plurality of image files in the secondary temporary directory to a corresponding image warehouse concurrently.
Specifically, S212 includes performing load, tag, and push operations on all the image files, so as to upload all the image files to the corresponding image repository. The detailed description of the present embodiment is omitted here.
S213, the mirror image warehouse receives the mirror image file.
And S214, deleting the load mirror image cache in the mirror image warehouse after the uploading is finished.
S215, deleting the data in the secondary temporary directory, and sending prompt information to the front-end equipment.
Based on the foregoing embodiment, this embodiment provides a specific mirror image uploading method, including:
1) the user sends the container mirror image resource (mirror image file) and the user identity information to the front-end equipment, and the front-end equipment carries out fragmentation processing on the container mirror image resource;
2) the front end distributes the fragmented mirror image data (fragment data) and the user information to the back end equipment, the back end equipment creates a primary temporary directory at the server end of the back end equipment through the user identity information Token, and then creates a secondary temporary directory according to the MD5 value generated by the basic information of the mirror image file;
3) the method comprises the steps of placing fragment files (fragment data packets) to a secondary temporary directory address, simultaneously uploading and locking each fragment, calling a Redis cache to record the current number of uploaded fragments, and preventing the same user from uploading two files with the same number of fragments simultaneously;
4) integrating the files according to the fragment marks, if the process fails, deleting the cache files under the corresponding directories, and returning to the exception;
5) a Docker user configures a Docker client according to the mirror image warehouse login information of the user through an executable file Docker;
this step is to establish a link with the corresponding mirror repository.
6) Json file of mai nifest is read, and mirror image ID and RepoTags are obtained;
7) establishing a contact with a Docker server through a Docker Client, sending a request, calling an interface to perform operations such as load, tag and push on the mirror image, and uploading the mirror image file to a mirror image warehouse;
8) and deleting the load mirror cache after the pushing is finished.
Therefore, the cloud platform user can upload the needed container mirror image to the mirror image warehouse more conveniently, a large amount of time for operation from the server side is saved, concurrent operation is supported, the linkage with the corresponding mirror image warehouse is established by configuring the Docker Client, the problem of operation conflict is solved, and the operation difficulty is greatly reduced. Therefore, in the embodiment, a server-side temporary file multi-level storage directory address is created according to Token login information of a cloud platform user, an uploaded mirror image name and an MD5 value generated by a version, the integrity and uniqueness of the server-side temporary file are ensured, a Docker Client is configured for a private warehouse user when an image is pushed, and the problem of login information coverage when the user logs in the warehouse is prevented.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a mirror image uploading device provided in an embodiment of the present application, and the mirror image uploading device provided in the embodiment of the present application includes:
an obtaining module 301, configured to obtain one or more image files and user information sent by a front-end device, and determine a primary temporary directory according to the user information;
a directory establishing module 302, configured to create a corresponding secondary temporary directory under the primary temporary directory based on the basic information of each image file, and store the image file in the corresponding secondary temporary directory;
the link establishing module 303 is configured to establish a transmission link with a corresponding mirror image warehouse according to the mirror image warehouse information of the mirror image file;
and the uploading module 304 is configured to upload the plurality of image files in the secondary temporary directory to the corresponding image warehouse concurrently.
Optionally, the obtaining module 301 includes:
the data acquisition unit is used for acquiring all the fragment data packets sent by the front-end equipment;
the fragment data packet comprises fragment data and user information, and the fragment data is obtained by performing fragment processing on the mirror image file by the front-end equipment;
correspondingly, the uploading module 304 includes:
the integration unit is used for carrying out file integration on all the fragment data packets to obtain an integrated mirror image file;
and the uploading unit is used for uploading all the integrated mirror image files to the corresponding mirror image warehouse concurrently.
Optionally, the directory establishing module 302 includes:
the storage unit is used for storing the fragment data packet in the address of the secondary temporary directory;
the recording unit is used for uploading and locking each fragment data packet and recording fragment marks of the uploaded fragment data packets;
correspondingly, the integration unit comprises:
and the integration subunit is used for performing file integration on the fragment data packet according to all the fragment marks to obtain an integrated mirror image file.
Optionally, the integration subunit comprises:
the file integration subunit is used for performing file integration on the fragment data packet according to all the fragment marks;
the judging subunit is used for judging whether the file integration is successful;
and the acquisition subunit is used for acquiring the integrated mirror image file if the file integration is successful.
Optionally, the integrating subunit further includes:
and the prompting subunit is used for sending a prompting message to the front-end equipment if the file integration fails.
Optionally, the uploading module 304 includes:
and the uploading unit is used for executing load, tag and push operations on all the image files so as to upload all the image files to the corresponding image warehouse.
Optionally, the directory establishing module 302 includes:
the verification value generating unit is used for generating a verification value based on the basic information of each mirror image file;
and the directory establishing unit is used for establishing a corresponding secondary temporary directory under the primary temporary directory based on the check value.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
In the following, a backend device provided by an embodiment of the present application is introduced, and the backend device described below and the mirror image uploading method described above may be referred to correspondingly. Referring to fig. 4, fig. 4 is a schematic structural diagram of a backend device according to an embodiment of the present application, including:
a memory 401 for storing a computer program;
a processor 402 for implementing the steps of the mirror upload method described above when executing a computer program.
Since the embodiment of the backend device portion corresponds to the embodiment of the mirror image upload method portion, please refer to the description of the embodiment of the mirror image upload method portion for the embodiment of the backend device portion, which is not described herein again.
In the following, a mirror image uploading system provided by an embodiment of the present application is introduced, and the mirror image uploading system described below and the backend device described above may be referred to correspondingly. Referring to fig. 5, fig. 5 is a schematic structural diagram of a mirror image uploading system according to an embodiment of the present application, including:
a mirror store 501;
the backend device 502 as above;
the front-end device 503 is configured to send the one or more image files and the user information to the back-end device 502.
Since the embodiment of the backend device portion corresponds to the embodiment of the backend device portion, please refer to the description of the embodiment of the backend device portion, which is not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The mirror image uploading method, the mirror image uploading device, the back-end device and the mirror image uploading system provided by the application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A method for mirror uploading, comprising:
acquiring one or more image files and user information sent by front-end equipment, and determining a primary temporary directory according to the user information;
creating a corresponding secondary temporary directory under the primary temporary directory based on the basic information of each image file, and storing the image file in the corresponding secondary temporary directory;
establishing a transmission link with a corresponding mirror image warehouse according to the mirror image warehouse information of the mirror image file;
and uploading the plurality of image files in the secondary temporary catalog to the corresponding image warehouse concurrently.
2. The image uploading method according to claim 1, wherein the acquiring one or more image files and user information sent by the front-end device comprises:
acquiring all fragment data packets sent by the front-end equipment;
the fragment data packet comprises fragment data and the user information, wherein the fragment data is obtained by the front-end equipment performing fragment processing on the mirror image file;
correspondingly, the uploading to the corresponding mirror image warehouse according to the plurality of mirror image files in the secondary temporary directory concurrently includes:
performing file integration on all the fragment data packets to obtain the integrated mirror image file;
and uploading all the integrated mirror image files to the corresponding mirror image warehouse concurrently.
3. The image uploading method according to claim 2, wherein the storing the image file in the corresponding secondary temporary directory comprises:
storing the fragment data packet in an address of the secondary temporary directory;
uploading and locking each fragment data packet, and recording fragment marks of the uploaded fragment data packets;
correspondingly, performing file integration on all the fragment data packets to obtain the integrated image file, including:
and performing the file integration on the fragment data packet according to all the fragment marks to obtain the integrated mirror image file.
4. The image uploading method according to claim 3, wherein the file integration of the fragment data package according to all the fragment tags, and the obtained integrated image file comprises:
performing the file integration on the fragment data packet according to all the fragment marks;
judging whether the file integration is successful;
and if the file integration is successful, obtaining the integrated image file.
5. An image uploading method according to claim 4, wherein if the file integration fails, a prompt message is sent to the front-end device.
6. The image uploading method according to claim 1, wherein the uploading to the corresponding image repository concurrently according to the plurality of image files in the secondary temporary directory comprises:
and executing load, tag and push operations on all the image files so as to upload all the image files to the corresponding image warehouse.
7. The image uploading method of claim 1, wherein creating a corresponding secondary temporary directory under the primary temporary directory based on the basic information of each image file comprises:
generating a check value based on the basic information of each mirror image file;
and creating a corresponding secondary temporary directory under the primary temporary directory based on the check value.
8. A mirror image upload apparatus, comprising:
the system comprises an acquisition module, a storage module and a display module, wherein the acquisition module is used for acquiring one or more image files and user information sent by front-end equipment and determining a primary temporary directory according to the user information;
the directory establishing module is used for establishing a corresponding secondary temporary directory under the primary temporary directory based on the basic information of each image file and storing the image file in the corresponding secondary temporary directory;
the link establishing module is used for establishing a transmission link with a corresponding mirror image warehouse according to the mirror image warehouse information of the mirror image file;
and the uploading module is used for uploading the plurality of image files in the secondary temporary directory to the corresponding image warehouse concurrently.
9. A backend device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the image upload method according to any of claims 1 to 7 when executing said computer program.
10. A mirror upload system, comprising:
a mirror image warehouse;
the backend device of claim 9;
and the front-end equipment is used for sending the one or more image files and the user information to the back-end equipment.
CN202010463048.1A 2020-05-27 2020-05-27 Mirror image uploading method, device and system and back-end equipment Pending CN111629058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010463048.1A CN111629058A (en) 2020-05-27 2020-05-27 Mirror image uploading method, device and system and back-end equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010463048.1A CN111629058A (en) 2020-05-27 2020-05-27 Mirror image uploading method, device and system and back-end equipment

Publications (1)

Publication Number Publication Date
CN111629058A true CN111629058A (en) 2020-09-04

Family

ID=72272613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010463048.1A Pending CN111629058A (en) 2020-05-27 2020-05-27 Mirror image uploading method, device and system and back-end equipment

Country Status (1)

Country Link
CN (1) CN111629058A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596162A (en) * 2021-07-30 2021-11-02 北京快乐茄信息技术有限公司 Mirror image file processing method and device, network equipment and storage medium
CN114915622A (en) * 2022-05-31 2022-08-16 广东三维睿新科技有限公司 HTTP-based file transmission method for web side
CN114911580A (en) * 2022-07-11 2022-08-16 统信软件技术有限公司 Mirror image state processing method and device and computing equipment
CN115695504A (en) * 2023-01-03 2023-02-03 东方合智数据科技(广东)有限责任公司 Internet of things platform communication method, device, equipment and storage medium
CN116302075A (en) * 2023-05-17 2023-06-23 工业富联(佛山)创新中心有限公司 Software product management method and related equipment
CN116302210A (en) * 2023-05-17 2023-06-23 阿里云计算有限公司 Image file importing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776149A (en) * 2017-01-04 2017-05-31 郑州云海信息技术有限公司 Local container mirror image is uploaded to the method and system in mirror image warehouse
CN107426258A (en) * 2016-05-23 2017-12-01 华为技术有限公司 A kind of upload of image file and method for down loading and device
CN110740188A (en) * 2019-10-25 2020-01-31 北京浪潮数据技术有限公司 Mirror image file uploading method, device, equipment and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426258A (en) * 2016-05-23 2017-12-01 华为技术有限公司 A kind of upload of image file and method for down loading and device
CN106776149A (en) * 2017-01-04 2017-05-31 郑州云海信息技术有限公司 Local container mirror image is uploaded to the method and system in mirror image warehouse
CN110740188A (en) * 2019-10-25 2020-01-31 北京浪潮数据技术有限公司 Mirror image file uploading method, device, equipment and computer readable storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596162A (en) * 2021-07-30 2021-11-02 北京快乐茄信息技术有限公司 Mirror image file processing method and device, network equipment and storage medium
CN114915622A (en) * 2022-05-31 2022-08-16 广东三维睿新科技有限公司 HTTP-based file transmission method for web side
CN114915622B (en) * 2022-05-31 2024-01-30 广东三维睿新科技有限公司 File transmission method based on http for web terminal
CN114911580A (en) * 2022-07-11 2022-08-16 统信软件技术有限公司 Mirror image state processing method and device and computing equipment
CN114911580B (en) * 2022-07-11 2022-09-27 统信软件技术有限公司 Mirror image state processing method and device and computing equipment
CN115695504A (en) * 2023-01-03 2023-02-03 东方合智数据科技(广东)有限责任公司 Internet of things platform communication method, device, equipment and storage medium
CN116302075A (en) * 2023-05-17 2023-06-23 工业富联(佛山)创新中心有限公司 Software product management method and related equipment
CN116302210A (en) * 2023-05-17 2023-06-23 阿里云计算有限公司 Image file importing method and device, electronic equipment and storage medium
CN116302210B (en) * 2023-05-17 2023-08-04 阿里云计算有限公司 Image file importing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111629058A (en) Mirror image uploading method, device and system and back-end equipment
CN106528224B (en) Content updating method, server and system for Docker container
CN107294729B (en) Communication method and device between different nodes in block chain
CN111538596A (en) Resource processing method and device, computer equipment and storage medium
CN109462601B (en) Multi-platform access method and device based on eSIM
EP3180714A1 (en) Form filling method and related terminal
CN104796491A (en) Server and software downloading and registration method based on once code-scanning
CN105554137A (en) Backup system and method
CN109815112B (en) Data debugging method and device based on functional test and terminal equipment
CN106572074B (en) Verification method and device for verification code
CN107748849A (en) A kind of authority control method and system based on NFS
CN104683361A (en) Network session storage method, and network access method and device
CN112769801A (en) Method, device, equipment and storage medium for extracting backup from cloud server
CN105554136A (en) Backup data restoration method, device and system
WO2017215650A1 (en) Automatic login method and device for micro-game client, program, and medium
CN113535226B (en) Application downloading method, terminal, server, computer device and storage medium
CN110830492B (en) Method and system for mutually scheduling edge applications based on CoreDNS registration service
CN112015651A (en) Data processing method and device
CN111698097A (en) Certificate authentication method and device
US9160736B2 (en) System and method of verifying a number of a mobile terminal
CN108881320B (en) Authentication processing method for user login, server and client
CN105871982A (en) Content pushing method, device and system
CN112218249B (en) Data transmission method, data transmission device, data downloading method and related equipment
CN110321326B (en) Block chain file fragment retrieval method
CN112732676A (en) Data migration method, device, equipment and storage medium based on block chain

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200904

RJ01 Rejection of invention patent application after publication