CN111459509A - Container mirror image construction method and device and server - Google Patents

Container mirror image construction method and device and server Download PDF

Info

Publication number
CN111459509A
CN111459509A CN202010234668.8A CN202010234668A CN111459509A CN 111459509 A CN111459509 A CN 111459509A CN 202010234668 A CN202010234668 A CN 202010234668A CN 111459509 A CN111459509 A CN 111459509A
Authority
CN
China
Prior art keywords
mirror image
code
target container
data
task
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
CN202010234668.8A
Other languages
Chinese (zh)
Inventor
王向前
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202010234668.8A priority Critical patent/CN111459509A/en
Publication of CN111459509A publication Critical patent/CN111459509A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/43Checking; Contextual analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5055Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering software capabilities, i.e. software resources associated or available to the machine

Abstract

The invention provides a container mirror image construction method, a container mirror image construction device and a container mirror image construction server, which are characterized in that firstly, a mirror image construction instruction sent by a code base is received, and the mirror image construction instruction comprises a storage path of code data of a target container mirror image to be constructed in the code base; acquiring configuration data of the target container mirror image from the application configuration system according to the storage path; generating a plurality of tasks for constructing the target container mirror image according to the construction requirements in the configuration data; code data of the target container image is obtained from a storage path of the code base, and a plurality of tasks are executed based on the code data to construct the target container image. According to the method, the device and the system, the configuration data can be automatically acquired from the application configuration system, the code data can be acquired from the code base, a plurality of tasks generated based on the configuration data are executed on the acquired code data, and the target container mirror image is obtained.

Description

Container mirror image construction method and device and server
Technical Field
The invention relates to the technical field of cloud computing, in particular to a container mirror image construction method, a container mirror image construction device and a server.
Background
The container mirror image is a special file system obtained by carrying out standardized encapsulation on codes of an application program and the operating environment thereof, and can be directly operated in any operating system provided with a container. The container is a unified platform for constructing, distributing and operating the application program and is used for realizing automatic installation, deployment and upgrading of the application program. Since the container mirror provides various resources required by the container operation and is the basis for the operation of the container, constructing the container mirror is an indispensable key link for operating the container.
In the related art, in the container mirror image construction method, after a code development engineer submits codes of an application program to a code library, the engineer constructing the container mirror image needs to manually download required codes from the code library, further execute a command for constructing the mirror image in a container to obtain a container mirror image corresponding to the codes, and then manually push the constructed container mirror image to a mirror image warehouse.
Disclosure of Invention
The invention aims to provide a container mirror image construction method, a container mirror image construction device and a container mirror image construction server, so that the error rate of container mirror image construction is reduced, and the container mirror image construction efficiency is improved.
In a first aspect, an embodiment of the present invention provides a method for constructing a container mirror image, where the method includes: receiving a mirror image construction instruction sent by a preset code base; the code base stores code data for constructing a container mirror image in advance; the code data is a code of a preset application program; the mirror image construction instruction comprises a storage path of code data corresponding to a target container mirror image to be constructed in a code base; acquiring configuration data of a target container mirror image from a preset application configuration system according to the storage path; the configuration data includes build requirements for the target container image; generating a plurality of tasks for constructing a target container mirror image according to the configuration data; and acquiring code data corresponding to the target container mirror image from a storage path in the code base, and executing a plurality of tasks based on the acquired code data to construct the target container mirror image.
In an optional embodiment, the application configuration system stores configuration data of a container image in advance; the configuration data also comprises a storage path of the code data corresponding to the container mirror in the code base; the step of obtaining the configuration data of the target container mirror image from the preset application configuration system according to the storage path includes: inquiring whether configuration data containing a storage path in a mirror image construction instruction exists in a preset application configuration system or not; and if the configuration data containing the storage path in the mirror image construction instruction exists, acquiring the inquired configuration data.
In an optional embodiment, the step of generating a plurality of tasks for constructing the target container image according to the configuration data includes: determining a description file of a task required for constructing the target container mirror image according to the configuration data; the description file of each task comprises: input data, output data for the task, and a task on which the task depends to be performed; and generating a plurality of tasks for constructing the target container mirror image according to the description file of each task.
In an optional embodiment, the plurality of tasks include a static inspection task, a compiling task, a functional testing task, and a mirror image constructing task, which are sequentially executed; the step of executing a plurality of tasks based on the acquired code data to construct the target container mirror image includes: performing static inspection on the code data through a static inspection task; compiling the code data subjected to the static inspection through the compiling task to obtain an executable program corresponding to the code data; performing function detection on the executable program through the function test task; and if the function detection of the executable program passes, executing a construction mirror image task based on the executable program to obtain a target container mirror image.
In an optional embodiment, the plurality of tasks further include an upload mirror task; after the step of obtaining the mirror image of the target container, the method further includes: and uploading the mirror image of the target container to a preset mirror image warehouse through an uploading mirror image task.
In an optional embodiment, the step of uploading the target container mirror image to a preset mirror image warehouse by uploading the mirror image task includes: acquiring a first user certificate corresponding to a pre-stored mirror image warehouse; and verifying the first user certificate, and uploading the mirror image of the target container to a preset mirror image warehouse through an uploading mirror image task if the first user certificate passes the verification.
In an optional embodiment, the step of obtaining the code data corresponding to the target container image from the storage path in the code library includes: acquiring a second user certificate of a prestored code base; and verifying the second user certificate, and if the second user certificate passes the verification, acquiring code data corresponding to the target container mirror image from a storage path in the code base.
In a second aspect, an embodiment of the present invention provides a method for constructing a container mirror image, where the method includes: receiving code data uploaded by a user and used for constructing a target container mirror image and a storage path for storing the code data; the code data is a code of a preset application program; storing the code data into a preset code library according to the storage path; generating a mirror image construction instruction corresponding to the mirror image of the target container according to a preset trigger rule; sending a mirror image construction instruction to a module for constructing a target container mirror image so as to obtain configuration data of the target container mirror image from a preset application configuration system through the module; generating a plurality of tasks for constructing a target container mirror image according to the configuration data; a plurality of tasks are performed based on the code data to build a target container image.
In a third aspect, an embodiment of the present invention provides an apparatus for constructing a container mirror image, where the apparatus includes: the instruction receiving module is used for receiving a mirror image construction instruction sent by a preset code base; the code base stores code data for constructing a container mirror image in advance; the code data is a code of a preset application program; the mirror image construction instruction comprises a storage path of code data corresponding to a target container mirror image to be constructed in a code base; the configuration data acquisition module is used for acquiring configuration data of the mirror image of the target container from a preset application configuration system according to the storage path; the configuration data includes build requirements for the target container image; the task generation module is used for generating a plurality of tasks for constructing the target container mirror image according to the configuration data; and the mirror image construction module is used for acquiring code data corresponding to the target container mirror image from a storage path in the code base and executing a plurality of tasks based on the acquired code data so as to construct the target container mirror image.
In a fourth aspect, an embodiment of the present invention provides an apparatus for constructing a container mirror image, including: the code receiving module is used for receiving code data uploaded by a user and used for constructing a target container mirror image and a storage path for storing the code data; the code data is a code of a preset application program; the code storage module is used for storing the code data into a preset code library according to the storage path; the instruction generating module is used for generating a mirror image construction instruction corresponding to the mirror image of the target container according to a preset trigger rule; the instruction sending is used for sending the mirror image construction instruction to a module for constructing the mirror image of the target container so as to obtain the configuration data of the mirror image of the target container from a preset application configuration system through the module; generating a plurality of tasks for constructing a target container mirror image according to the configuration data; a plurality of tasks are performed based on the code data to build a target container image.
In a fifth aspect, an embodiment of the present invention provides a server, which includes a processor and a memory, where the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the container image construction method according to any one of the foregoing embodiments.
In a sixth aspect, embodiments provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the container image construction method of any of the preceding embodiments.
The embodiment of the invention has the following beneficial effects:
the invention provides a method, a device and a server for constructing a container mirror image, which are characterized in that firstly, a mirror image constructing instruction sent by a preset code base is received, and the code base stores code data for constructing the container mirror image in advance; the mirror image construction instruction comprises a storage path of code data corresponding to a target container mirror image to be constructed in a code base; acquiring configuration data of the target container mirror image from a preset application configuration system according to the storage path, wherein the configuration data comprises the construction requirement of the target container mirror image; generating a plurality of tasks for constructing the mirror image of the target container according to the configuration data; and then acquiring code data corresponding to the target container mirror from a storage path in the code base, and executing a plurality of tasks based on the acquired code data to construct the target container mirror. According to the method, the configuration data are automatically acquired from the application configuration system according to the mirror image construction instruction, the code data of the application program corresponding to the target container mirror image are acquired from the code base, a plurality of tasks for constructing the target container mirror image are generated based on the configuration data for the acquired code data, and the target container mirror image is constructed.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention as set forth above.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for constructing a container mirror image according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for constructing a container image according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for constructing a container image according to an embodiment of the present invention;
FIG. 4 is a flow chart of another method for constructing a container image according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a container mirror image construction apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of another container mirror image construction apparatus provided in accordance with an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. 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 invention.
In the kubernets container cloud, a container group (Pod) is the smallest unit for resource management, and comprises a plurality of containers for running various services provided by users. Container mirroring is an important concept of container technology and comprises a series of read-only layers that are overlaid together, except for the lowest layer, which has a pointer to the next layer. Multiple layers in the container mirror image are integrated into a file system through a unified file system technology, and a unified view is provided for the outside; when the container is created, a read-write layer is newly added on all read-only layers of the mirror image, and operations such as file modification, file deletion and the like in the operation process of the container only affect the read-write layer, and the read-only layer of the container mirror image is not affected.
In view of the problems that in the related art, a method for constructing a container mirror needs an engineer to manually download required codes, so that the container mirror is easy to make mistakes in the construction and the efficiency of constructing the container mirror is affected, embodiments of the present invention provide a method, an apparatus, and a server for constructing a container mirror. In order to facilitate understanding of the embodiment of the present invention, a method for constructing a container mirror image disclosed in the embodiment of the present invention is first described in detail, and as shown in fig. 1, the method includes the following specific steps:
step S102, receiving a mirror image construction instruction sent by a preset code base; the code base stores code data for constructing a container mirror image in advance; the code data is a code of a preset application program; the mirror image construction instruction comprises a storage path of code data corresponding to the target container mirror image to be constructed in the code base.
A user can submit code data to a code library and a storage path of the code data, wherein the code data can be codes of an application program, the application program generally refers to software written for a certain special application purpose of the user, and the application program can be a system application program, a desktop application program, a driver application program, a network application program, a mobile phone application program, an internet of things application program and the like; the code data may be all source codes in the application program, or may be codes updated in the source codes, and is not specifically limited herein. The storage path may include a codebase path and a codebase branch; the code library path usually refers to a path in a code library, the code library branch usually refers to different development paths created in the code library, a plurality of branches can exist in the code library, each branch is isolated from each other, and code data can only be submitted to the current working branch when submitted each time, and other branches cannot be influenced. It can also be understood that when a user submits code data, it also submits that the code data should be saved in the path of the code library under which code library branch, so that the code library saves the submitted code data under the path.
When the code library receives code data submitted by a user, automatically sending a mirror image construction instruction to a preset server; or when a user needs to construct a container mirror image of certain code data stored in the code library, sending a mirror image construction instruction to a preset server, wherein the mirror image construction instruction carries a storage path of the code data corresponding to a target container mirror image to be constructed.
Step S104, acquiring configuration data of a target container mirror image from a preset application configuration system according to a storage path; the configuration data includes build requirements for the target container image.
The preset application configuration system is used for storing and managing configuration data related to the construction of the target container mirror image; the configuration data is usually set in the application configuration system by a user according to requirements, that is, the configuration data of a target container mirror image which is registered in the application configuration system by the user and needs to be constructed; the configuration data generally includes a construction requirement of the target container mirror image to be constructed, and the construction requirement generally includes a path of the target container mirror image to be constructed in the code base, which code base branch is based on which the target container mirror image is constructed, a name of the target container mirror image output after the construction is completed, and the like.
And step S106, generating a plurality of tasks for constructing the target container mirror image according to the configuration data.
For the construction requirement of the target container mirror image in the acquired configuration data, a plurality of tasks matched with the construction requirement and used for constructing the target container mirror image can be generated, the tasks are usually connected end to end, and each task carries execution logic of the task, such as input data, output data and the like of the task.
And step S108, acquiring code data corresponding to the target container mirror image from the storage path in the code base, and executing a plurality of tasks based on the acquired code data to construct the target container mirror image.
When the plurality of tasks for constructing the target container image are generated, the code data corresponding to the target container image can be acquired from the code base according to the storage path, that is, the code data is downloaded from the storage path in the code data. And sequentially executing a plurality of tasks according to the acquired code data, and constructing a target container mirror image matched with the configuration data. During specific implementation, the tasks can also upload the constructed target container mirror images to a preset mirror image warehouse, so that the error rate of manual uploading is reduced.
The invention provides a container mirror image construction method, which comprises the steps of firstly receiving a mirror image construction instruction sent by a preset code base, wherein the code base stores code data for constructing a container mirror image in advance; the mirror image construction instruction comprises a storage path of code data corresponding to a target container mirror image to be constructed in a code base; acquiring configuration data of the target container mirror image from a preset application configuration system according to the storage path, wherein the configuration data comprises the construction requirement of the target container mirror image; generating a plurality of tasks for constructing the mirror image of the target container according to the configuration data; and then acquiring code data corresponding to the target container mirror from a storage path in the code base, and executing a plurality of tasks based on the acquired code data to construct the target container mirror. According to the method, the configuration data are automatically acquired from the application configuration system according to the mirror image construction instruction, the code data of the application program corresponding to the target container mirror image are acquired from the code base, a plurality of tasks for constructing the target container mirror image are generated based on the configuration data for the acquired code data, and the target container mirror image is constructed.
The embodiment of the invention also provides another container mirror image construction method, which is realized on the basis of the method of the embodiment; the method mainly describes a specific process of acquiring configuration data of a target container mirror image from a preset application configuration system according to a storage path (realized through the following steps S204-S206), and a specific process of generating a plurality of tasks for constructing the target container mirror image according to the configuration data (realized through the following steps S208-S210); as shown in fig. 2, the construction method includes the following specific steps:
step S202, receiving a mirror image construction instruction sent by a preset code base; the code base stores code data for constructing a container mirror image in advance; the mirror image construction instruction comprises a storage path of code data corresponding to the target container mirror image to be constructed in the code base.
Step S204, inquiring whether configuration data containing a storage path in a mirror image construction instruction exists in a preset application configuration system; the application configuration system stores configuration data of container images in advance; the configuration data also comprises a storage path of the code data corresponding to the container mirror in the code base; if yes, go to step S206; otherwise, ending.
Step S206, the inquired configuration data is obtained.
The application configuration system stores configuration data of the container mirror image in advance, the configuration data is data registered by a user according to requirements, and the configuration data not only includes construction requirements of the target container mirror image, but also includes a storage path of code data corresponding to the container mirror image in the code base. When a storage path of code data corresponding to a target container mirror image to be constructed carried in a mirror image construction instruction in a code base is received, whether a storage path corresponding to the container mirror image which is the same as the storage path in the code base exists or not needs to be inquired from configuration data in a preset application configuration system.
If the same storage path exists in the application configuration system, acquiring the queried configuration data corresponding to the storage path, namely downloading the queried configuration data; if the same storage path does not exist in the application configuration system, the image construction instruction includes the storage path of the code data corresponding to the target container image to be constructed, which is carried in the image construction instruction, in the code base, but is not the storage path of the code data corresponding to the target container image which needs to be constructed by the user in the code base, at this moment, the construction of the target container image is finished, and the finishing information is returned to the user to inform the user that the container image construction fails.
Step S208, determining a description file of a task required for constructing the mirror image of the target container according to the configuration data; the description file of each task comprises: input data for the task, output data, and tasks on which the task depends to be performed.
In a specific implementation, a pipeline description template is usually preset, and description information of all tasks required for constructing the container image is stored in the pipeline description template, and the description information usually includes input data, output data, execution logic of all tasks, a front-back order relationship between the tasks, and the like.
When the configuration data is obtained, determining description information of tasks required for constructing the target container mirror image from the flow description template, and combining the task description information with the configuration data to obtain a description file of the tasks required for constructing the target container mirror image, wherein each task corresponds to one description file, and the description file of each task comprises input data, output data and a task dependent on the task; the input data may be code data in a code library corresponding to a storage path in the configuration data, or may be output data of a dependent task, where the output data is generally data obtained when the input data completes the task; the task that depends on the execution of the task may also be understood as a front-back execution order between tasks, and the back task usually needs to be executed after the execution of the previous task is completed.
Step S210, generating a plurality of tasks for constructing the target container mirror image according to the description file of each task.
According to the description file of each task, a plurality of tasks which are connected in sequence and used for building the target container mirror image can be generated.
Step S212, obtaining code data corresponding to the target container mirror image from the storage path in the code library, and executing a plurality of tasks based on the obtained code data to construct the target container mirror image.
And inputting the code data acquired from the code library into a plurality of tasks, and executing the tasks through the description file corresponding to each task to obtain the constructed target container mirror image. In specific implementation, usually, a plurality of tasks are executed and completed, and the construction of the target container mirror image can be completed; if any task fails to be executed in the middle, the construction of the target container mirror image fails, and the construction failure information is returned to the user, so that the user can adjust the code data or the configuration data according to the information.
The method for constructing the container mirror image comprises the steps of firstly receiving a mirror image construction instruction sent by a preset code base, wherein the mirror image construction instruction comprises a storage path of code data corresponding to a target container mirror image to be constructed in the code base; further inquiring whether configuration data containing a storage path in the mirror image construction instruction exists in a preset application configuration system or not; if yes, obtaining the inquired configuration, and determining a description file of a task required for constructing the target container mirror image according to the configuration data; generating a plurality of tasks for constructing the mirror image of the target container according to the description file of each task; and then acquiring code data corresponding to the target container mirror from a storage path in the code base, and executing a plurality of tasks based on the acquired code data to construct the target container mirror. The method can automatically acquire the configuration data from the application configuration system, acquire the code data corresponding to the target container mirror image from the code library, and automatically execute a plurality of tasks for constructing the target container mirror image generated based on the configuration data for the acquired code data, so as to construct the target container mirror image, thereby reducing the error rate of artificially constructing the container mirror image, simultaneously improving the efficiency of constructing the container mirror image, and being also suitable for the automatic operation flow of continuous integration or continuous deployment of the container mirror image.
The embodiment of the invention also provides another container mirror image construction method, which is realized on the basis of the method of the embodiment; the method focuses on a specific process of acquiring code data corresponding to a target container mirror from a storage path in a code library (realized by steps S308-S310 described below), and a specific process of executing a plurality of tasks based on the acquired code data to construct a target container mirror (realized by steps S312-S318 described below); as shown in fig. 3, the construction method includes the following specific steps:
step S302, receiving a mirror image construction instruction sent by a preset code base; the code base stores code data for constructing a container mirror image in advance; the mirror image construction instruction comprises a storage path of code data corresponding to the target container mirror image to be constructed in the code base.
Step S304, acquiring configuration data of the mirror image of the target container from a preset application configuration system according to the storage path; the configuration data includes build requirements for the target container image.
Step S306, generating a plurality of tasks for constructing the mirror image of the target container according to the configuration data; the multiple tasks include a static inspection task, a compilation task, a functional test task, and a mirror image construction task that are executed in sequence.
In specific implementation, 4 tasks for constructing the target image can be defined, and the tasks are a static inspection task, a compiling task, a functional testing task and a mirror image constructing task which are sequentially executed. Typically in a container cloud, each task corresponds to a minimum execution unit (Pod) of a container.
Each task corresponds to a description file for describing input data, output data and tasks depending on the task, for example, the input data of the static inspection task is usually code data in a code base, that is, the static inspection task can be executed only after the code data is acquired from the code base; the input data of the compiling task is output data of the static checking task, the output data is usually an executable program file, the executable program file is usually input data of the functional testing task, and the output data of the functional testing task is usually a testing result of the file; and if the test result is passed, taking the passed executable program file as input data of the mirror image constructing task, and taking output data of the executable program file as a container mirror image.
Step S308, a second user certificate corresponding to a prestored code base is obtained.
The second user credential is typically pre-stored in the container cluster, and may characterize whether the container has permission to retrieve the code data from the code library.
And step S310, verifying the second user certificate, and if the second user certificate passes the verification, acquiring code data corresponding to the target container mirror image from a storage path in the code base.
During specific implementation, the second user certificate may be compared with a user certificate corresponding to the code base, and if the comparison is successful, the second user certificate is verified, and corresponding code data may be obtained from the code base.
Step S312, the static checking task performs static checking on the code data.
The static check generally refers to checking the correctness of the code data by analyzing or checking only the syntax, structure, procedure, interface, etc. of the code data without running the code data to be tested. The method can quickly locate code hiding errors and defects and also help code designers to concentrate on analyzing and solving the design defects of the codes.
Step S314, compiling the statically checked code data by the compiling task to obtain an executable program corresponding to the code data.
The compiling generally refers to a process of generating an executable program from code data, that is, a process of converting code data into an executable program corresponding to a language recognizable by a computer.
And step S316, performing function detection on the executable program through the function test task.
The function test task can adopt black box test to perform function test on the executable program, namely, the function of the actual executable program is checked to meet the requirements of users.
Step S318, if the function detection of the executable program passes, executing a mirror image constructing task based on the executable program, and obtaining a target container mirror image.
And if the functions which can be realized by the executable program meet the requirements of the user, executing a mirror image constructing task on the executable program to obtain the target container mirror image.
Step S320, uploading the target container mirror image to a preset mirror image warehouse through an upload mirror image task further included in the plurality of tasks.
The mirror image warehouse can store container mirror images, a user can push new container mirror images to the mirror image warehouse, and existing container mirror images can be downloaded from the mirror image warehouse. According to the method, the target container mirror image can be automatically uploaded to the mirror image warehouse through the mirror image uploading task, and the problem that manual uploading is prone to errors is solved.
In a specific implementation, the step S320 may be implemented by the following steps 30 to 31:
and step 30, acquiring a first user certificate corresponding to the pre-stored mirror image warehouse. The first user credential is typically pre-stored in a container cluster, and the first user credential may characterize whether the container has authority to upload the container image to an image repository.
And 31, verifying the first user certificate, and uploading the mirror image of the target container to a preset mirror image warehouse through an uploading mirror image task if the first user certificate passes the verification.
According to the container mirror image construction method, the configuration data are automatically acquired from the application configuration system according to the mirror image construction instruction, the code data corresponding to the target container mirror image are acquired from the code base, a plurality of tasks for constructing the target container mirror image are executed based on the configuration data according to the acquired code data, the target container mirror image is constructed, and the target container mirror image is automatically uploaded to the mirror image warehouse.
The embodiment of the invention also provides another container mirror image construction method, which is realized on the basis of the method of the embodiment; as shown in fig. 4, the method includes the following specific steps:
step S402, receiving code data uploaded by a user and used for constructing a target container mirror image, and storing a storage path of the code data; the code data is a code of a preset application program.
And S404, storing the code data into a preset code library according to the storage path. The code base is used for storing and managing code data uploaded by a user.
Step S406, generating a mirror image construction instruction corresponding to the mirror image of the target container according to a preset trigger rule.
The preset trigger rule can be that when the code library receives code data uploaded by a user, a mirror image construction instruction is automatically generated; or when a user needs to perform container mirror image construction on certain code data stored in the code library, triggering the corresponding control to generate a mirror image construction instruction. The mirror image construction instruction carries a storage path of code data corresponding to the target container mirror image to be constructed in the code base.
Step S408, sending the mirror image construction instruction to a module for constructing a target container mirror image so as to obtain configuration data of the target container mirror image from a preset application configuration system through the module; generating a plurality of tasks for constructing a target container mirror image according to the configuration data; a plurality of tasks are performed based on the code data to build a target container image.
In specific implementation, when the code library receives code data uploaded by a user, a construction interface in a module for constructing a target container mirror image is called back, and a mirror image construction instruction is sent to the module for constructing the target container mirror image through the construction interface, where the module can generally implement the container mirror image construction method shown in fig. 1 to 3.
The method for constructing the container mirror image comprises the steps of firstly receiving code data which are uploaded by a user and used for constructing a target container mirror image, and storing a storage path of the code data; storing the code data into a preset code library according to the storage path; generating a mirror image construction instruction corresponding to the mirror image of the target container according to a preset trigger rule; finally, the mirror image construction instruction is sent to a module for constructing the mirror image of the target container, so that the module can obtain the configuration data of the mirror image of the target container from a preset application configuration system; generating a plurality of tasks for constructing a target container mirror image according to the configuration data; a plurality of tasks are performed based on the code data to build a target container image. According to the method, code data do not need to be downloaded from the code base manually, so that the error rate of target container mirror image construction is reduced, and the efficiency of container mirror image construction is improved.
Corresponding to the embodiment of the method for constructing a container mirror image, an embodiment of the present invention further provides an apparatus for constructing a container mirror image, as shown in fig. 5, the apparatus including:
the instruction receiving module 50 is configured to receive a mirror image construction instruction sent by a preset code base; the code base stores code data for constructing a container mirror image in advance; the mirror image construction instruction comprises a storage path of code data corresponding to the target container mirror image to be constructed in the code base.
A configuration data obtaining module 51, configured to obtain configuration data of a target container mirror image from a preset application configuration system according to a storage path; the code data is a code of a preset application program; the configuration data includes build requirements for the target container image.
And a task generating module 52, configured to generate a plurality of tasks for constructing the target container image according to the configuration data.
And the mirror image construction module 53 is configured to acquire code data corresponding to the target container mirror image from a storage path in the code library, and execute a plurality of tasks based on the acquired code data to construct the target container mirror image.
The container mirror image construction device firstly receives a mirror image construction instruction sent by a preset code base, wherein the code base stores code data for constructing a container mirror image in advance; the mirror image construction instruction comprises a storage path of code data corresponding to a target container mirror image to be constructed in a code base; acquiring configuration data of the target container mirror image from a preset application configuration system according to the storage path, wherein the configuration data comprises the construction requirement of the target container mirror image; generating a plurality of tasks for constructing the mirror image of the target container according to the configuration data; and then acquiring code data corresponding to the target container mirror from a storage path in the code base, and executing a plurality of tasks based on the acquired code data to construct the target container mirror. According to the method, the configuration data are automatically acquired from the application configuration system according to the mirror image construction instruction, the code data corresponding to the target container mirror image are acquired from the code base, a plurality of tasks for constructing the target container mirror image are generated based on the configuration data for the acquired code data, and the target container mirror image is constructed.
Specifically, the application configuration system stores configuration data of a container mirror image in advance; the configuration data also comprises a storage path of the code data corresponding to the container mirror in the code base; the configuration data obtaining module 51 is configured to: inquiring whether configuration data containing a storage path in a mirror image construction instruction exists in a preset application configuration system or not; and if the configuration data containing the storage path in the mirror image construction instruction exists, acquiring the inquired configuration data.
Further, the task generating module 52 is configured to: determining a description file of a task required for constructing the target container mirror image according to the configuration data; the description file of each task comprises: input data, output data for the task, and a task on which the task depends to be performed; and generating a plurality of tasks for constructing the target container mirror image according to the description file of each task.
The tasks comprise a static inspection task, a compiling task, a functional test task and a mirror image construction task which are executed in sequence; the mirror image building block 53 is configured to: performing static inspection on the code data through a static inspection task; compiling the code data subjected to the static inspection through the compiling task to obtain an executable program corresponding to the code data; performing function detection on the executable program through the function test task; and if the function detection of the executable program passes, executing a construction mirror image task based on the executable program to obtain a target container mirror image.
The plurality of tasks further comprise an uploading mirror image task; the apparatus further comprises a mirror image upload module configured to: and uploading the mirror image of the target container to a preset mirror image warehouse through an uploading mirror image task.
Further, the mirror image uploading module is further configured to: acquiring a first user certificate corresponding to a pre-stored mirror image warehouse; and verifying the first user certificate, and uploading the mirror image of the target container to a preset mirror image warehouse through an uploading mirror image task if the first user certificate passes the verification.
Further, the mirror image building module 53 is further configured to: acquiring a second user certificate corresponding to a prestored code base; and verifying the second user certificate, and if the second user certificate passes the verification, acquiring code data corresponding to the target container mirror image from a storage path in the code base.
The implementation principle and the generated technical effect of the construction device of the container mirror image provided by the embodiment of the invention are the same as those of the method embodiment, and for the sake of brief description, no part of the embodiment of the device is mentioned, and reference may be made to the corresponding contents in the method embodiment.
Corresponding to the embodiment of the method for constructing a container mirror image, an embodiment of the present invention further provides an apparatus for constructing a container mirror image, as shown in fig. 6, the apparatus including:
a code receiving module 60, configured to receive code data uploaded by a user and used for constructing a target container image, and a storage path for storing the code data; the code data is a code of a preset application program.
And the code storage module 61 is configured to store the code data into a preset code library according to the storage path.
And the instruction generating module 62 is configured to generate a mirror image construction instruction corresponding to the mirror image of the target container according to a preset trigger rule.
The instruction sending unit 63 is configured to send the mirror image construction instruction to a module for constructing a target container mirror image, so as to obtain configuration data of the target container mirror image from a preset application configuration system through the module; generating a plurality of tasks for constructing a target container mirror image according to the configuration data; a plurality of tasks are performed based on the code data to build a target container image.
The container mirror image constructing device firstly receives code data uploaded by a user and used for constructing a target container mirror image and stores a storage path of the code data; storing the code data into a preset code library according to the storage path; generating a mirror image construction instruction corresponding to the mirror image of the target container according to a preset trigger rule; finally, the mirror image construction instruction is sent to a module for constructing the mirror image of the target container, so that the module can obtain the configuration data of the mirror image of the target container from a preset application configuration system; generating a plurality of tasks for constructing a target container mirror image according to the configuration data; a plurality of tasks are performed based on the code data to build a target container image. According to the method, code data do not need to be downloaded from the code base manually, so that the error rate of target container mirror image construction is reduced, and the efficiency of container mirror image construction is improved.
An embodiment of the present invention further provides a server, which is shown in fig. 7, and the server includes a processor 101 and a memory 100, where the memory 100 stores machine executable instructions that can be executed by the processor 101, and the processor 101 executes the machine executable instructions to implement the above container image construction method.
Further, the server shown in fig. 7 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103 and the memory 100 are connected through the bus 102.
The memory 100 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
The processor 101 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 101. The processor 101 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100, and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the method for constructing the container mirror image.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and/or the electronic device described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A method of constructing a container mirror image, the method comprising:
receiving a mirror image construction instruction sent by a preset code base; the code base stores code data for constructing a container mirror image in advance; the code data is a code of a preset application program; the mirror image construction instruction comprises a storage path of code data corresponding to a target container mirror image to be constructed in the code base;
acquiring configuration data of the target container mirror image from a preset application configuration system according to the storage path; the configuration data comprises the construction requirements of the target container image;
generating a plurality of tasks for constructing the target container mirror image according to the configuration data;
and acquiring code data corresponding to the target container mirror image from the storage path in the code base, and executing the plurality of tasks based on the acquired code data to construct the target container mirror image.
2. The method according to claim 1, wherein the application configuration system stores configuration data of the container image in advance; the configuration data further comprises a storage path of the code data corresponding to the container image in the code base;
the step of obtaining the configuration data of the target container mirror image from a preset application configuration system according to the storage path includes:
inquiring whether configuration data containing a storage path in the mirror image construction instruction exists in a preset application configuration system or not;
and if the configuration data of the storage path in the mirror image construction instruction exists, acquiring the inquired configuration data.
3. The method of claim 1, wherein the step of generating a plurality of tasks for building the target container image based on the configuration data comprises:
determining a description file of a task required for constructing the target container mirror image according to the configuration data; the description file of each task comprises: input data, output data of the task, and a task on which the task is executed;
and generating a plurality of tasks for constructing the target container mirror image according to the description file of each task.
4. The method of claim 1, wherein the plurality of tasks include a static inspection task, a compilation task, a functional test task, and a build mirror task that are performed in sequence;
the step of executing the plurality of tasks based on the acquired code data to construct the target container image includes:
performing static inspection on the code data through the static inspection task;
compiling the code data subjected to static inspection through the compiling task to obtain an executable program corresponding to the code data;
performing function detection on the executable program through the function test task;
and if the function detection of the executable program is passed, executing the mirror image constructing task based on the executable program to obtain the target container mirror image.
5. The method of claim 4, wherein the plurality of tasks further comprises an upload mirror task;
after the step of obtaining the target container image, the method further includes: and uploading the target container mirror image to a preset mirror image warehouse through the uploading mirror image task.
6. The method according to claim 5, wherein the step of uploading the target container image to a preset image warehouse through the uploading image task comprises:
acquiring a first user certificate corresponding to a pre-stored mirror image warehouse;
and verifying the first user certificate, and if the first user certificate passes the verification, uploading the target container mirror image to a preset mirror image warehouse through the uploading mirror image task.
7. The method of claim 1, wherein the step of obtaining the code data corresponding to the target container image from the storage path in the code library comprises:
acquiring a second user certificate corresponding to the prestored code base;
and verifying the second user certificate, and if the second user certificate passes the verification, acquiring code data corresponding to the target container mirror image from the storage path in the code base.
8. A method of constructing a container mirror image, the method comprising:
receiving code data uploaded by a user and used for constructing a target container mirror image, and storing a storage path of the code data; the code data is a code of a preset application program;
storing the code data into a preset code library according to the storage path;
generating a mirror image construction instruction corresponding to the mirror image of the target container according to a preset trigger rule;
sending the mirror image construction instruction to a module for constructing a target container mirror image so as to acquire configuration data of the target container mirror image from a preset application configuration system through the module; generating a plurality of tasks for constructing the target container mirror image according to the configuration data; executing the plurality of tasks based on the code data to build the target container image.
9. A container mirror image construction apparatus, comprising:
the instruction receiving module is used for receiving a mirror image construction instruction sent by a preset code base; the code base stores code data for constructing a container mirror image in advance; the code data is a code of a preset application program; the mirror image construction instruction comprises a storage path of code data corresponding to a target container mirror image to be constructed in the code base;
the configuration data acquisition module is used for acquiring configuration data of the target container mirror image from a preset application configuration system according to the storage path; the configuration data comprises the construction requirements of the target container image;
the task generation module is used for generating a plurality of tasks for constructing the target container mirror image according to the configuration data;
and the mirror image construction module is used for acquiring the code data corresponding to the target container mirror image from the storage path in the code base and executing the plurality of tasks based on the acquired code data so as to construct the target container mirror image.
10. A container mirror image construction apparatus, comprising:
the system comprises a code receiving module, a storage module and a processing module, wherein the code receiving module is used for receiving code data uploaded by a user and used for constructing a target container mirror image and storing a storage path of the code data; the code data is a code of a preset application program;
the code storage module is used for storing the code data into a preset code library according to the storage path;
the instruction generating module is used for generating a mirror image construction instruction corresponding to the mirror image of the target container according to a preset trigger rule;
the instruction sending is used for sending the mirror image construction instruction to a module for constructing a target container mirror image so as to obtain configuration data of the target container mirror image from a preset application configuration system through the module; generating a plurality of tasks for constructing the target container mirror image according to the configuration data; executing the plurality of tasks based on the code data to build the target container image.
11. A server comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the method of constructing a container image of any one of claims 1 to 8.
12. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of constructing a container image of any of claims 1 to 8.
CN202010234668.8A 2020-03-27 2020-03-27 Container mirror image construction method and device and server Pending CN111459509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010234668.8A CN111459509A (en) 2020-03-27 2020-03-27 Container mirror image construction method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010234668.8A CN111459509A (en) 2020-03-27 2020-03-27 Container mirror image construction method and device and server

Publications (1)

Publication Number Publication Date
CN111459509A true CN111459509A (en) 2020-07-28

Family

ID=71683687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010234668.8A Pending CN111459509A (en) 2020-03-27 2020-03-27 Container mirror image construction method and device and server

Country Status (1)

Country Link
CN (1) CN111459509A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486631A (en) * 2020-12-04 2021-03-12 浪潮云信息技术股份公司 Method for constructing virtual machine mirror image
CN113378030A (en) * 2021-05-18 2021-09-10 上海德衡数据科技有限公司 Search method of search engine, search engine architecture, device and storage medium
CN115562691A (en) * 2022-12-05 2023-01-03 中科南京信息高铁研究院 Container-based cloud application publishing method and system
CN117519912A (en) * 2024-01-04 2024-02-06 之江实验室 Mirror image warehouse deployment method, device, storage medium and equipment

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236927A1 (en) * 2002-06-19 2003-12-25 Christophe Cleraux Tool for building multiple OS images
US20040268345A1 (en) * 2003-06-24 2004-12-30 Microsoft Corporation Software image creation in a distributed build environment
CN105630488A (en) * 2015-12-18 2016-06-01 上海爱数信息技术股份有限公司 Docker container technology-based continuous integration realizing method
CN106775760A (en) * 2017-01-04 2017-05-31 郑州云海信息技术有限公司 The method and system of container mirror image to mirror image warehouse are uploaded based on source code library
CN106933635A (en) * 2017-03-15 2017-07-07 北京搜狐新媒体信息技术有限公司 Docker mirror images generation method and Docker containers
CN107066310A (en) * 2017-03-11 2017-08-18 郑州云海信息技术有限公司 It is a kind of to build and using the method and device in the privately owned warehouses of safe Docker
CN107491329A (en) * 2017-08-04 2017-12-19 上海携程商务有限公司 Docker mirror images construction method, equipment, storage medium and electronic installation
CN107766126A (en) * 2017-11-15 2018-03-06 腾讯科技(深圳)有限公司 Construction method, system, device and the storage medium of container mirror image
US9983891B1 (en) * 2017-03-21 2018-05-29 Veritas Technologies Llc Systems and methods for distributing configuration templates with application containers
CN108196915A (en) * 2018-02-06 2018-06-22 杭州朗和科技有限公司 Code process method, equipment and storage medium based on application container engine
CN108268308A (en) * 2018-01-22 2018-07-10 广州欧赛斯信息科技有限公司 A kind of continuous integrating method, system and device based on container platform
CN109491662A (en) * 2018-10-31 2019-03-19 珠海市筑巢科技有限公司 Code packaging method, computer installation and computer readable storage medium, code packaging system
CN110058863A (en) * 2019-03-16 2019-07-26 平安城市建设科技(深圳)有限公司 Construction method, device, equipment and the storage medium of Docker container
CN110083369A (en) * 2019-04-25 2019-08-02 中电科嘉兴新型智慧城市科技发展有限公司 A kind of continuous integrating and lasting delivery method based on container scheme
CN110413294A (en) * 2019-08-06 2019-11-05 中国工商银行股份有限公司 Service delivery system, method, apparatus and equipment
CN110795162A (en) * 2019-09-26 2020-02-14 北京浪潮数据技术有限公司 Method and device for generating container mirror image file

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030236927A1 (en) * 2002-06-19 2003-12-25 Christophe Cleraux Tool for building multiple OS images
US20040268345A1 (en) * 2003-06-24 2004-12-30 Microsoft Corporation Software image creation in a distributed build environment
CN105630488A (en) * 2015-12-18 2016-06-01 上海爱数信息技术股份有限公司 Docker container technology-based continuous integration realizing method
CN106775760A (en) * 2017-01-04 2017-05-31 郑州云海信息技术有限公司 The method and system of container mirror image to mirror image warehouse are uploaded based on source code library
CN107066310A (en) * 2017-03-11 2017-08-18 郑州云海信息技术有限公司 It is a kind of to build and using the method and device in the privately owned warehouses of safe Docker
CN106933635A (en) * 2017-03-15 2017-07-07 北京搜狐新媒体信息技术有限公司 Docker mirror images generation method and Docker containers
US9983891B1 (en) * 2017-03-21 2018-05-29 Veritas Technologies Llc Systems and methods for distributing configuration templates with application containers
CN107491329A (en) * 2017-08-04 2017-12-19 上海携程商务有限公司 Docker mirror images construction method, equipment, storage medium and electronic installation
CN107766126A (en) * 2017-11-15 2018-03-06 腾讯科技(深圳)有限公司 Construction method, system, device and the storage medium of container mirror image
WO2019095936A1 (en) * 2017-11-15 2019-05-23 腾讯科技(深圳)有限公司 Method and system for building container mirror image, and server, apparatus and storage medium
CN108268308A (en) * 2018-01-22 2018-07-10 广州欧赛斯信息科技有限公司 A kind of continuous integrating method, system and device based on container platform
CN108196915A (en) * 2018-02-06 2018-06-22 杭州朗和科技有限公司 Code process method, equipment and storage medium based on application container engine
CN109491662A (en) * 2018-10-31 2019-03-19 珠海市筑巢科技有限公司 Code packaging method, computer installation and computer readable storage medium, code packaging system
CN110058863A (en) * 2019-03-16 2019-07-26 平安城市建设科技(深圳)有限公司 Construction method, device, equipment and the storage medium of Docker container
CN110083369A (en) * 2019-04-25 2019-08-02 中电科嘉兴新型智慧城市科技发展有限公司 A kind of continuous integrating and lasting delivery method based on container scheme
CN110413294A (en) * 2019-08-06 2019-11-05 中国工商银行股份有限公司 Service delivery system, method, apparatus and equipment
CN110795162A (en) * 2019-09-26 2020-02-14 北京浪潮数据技术有限公司 Method and device for generating container mirror image file

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
来了就走下去: "jenkins集成docker实现自动镜像构建部署", Retrieved from the Internet <URL:https://blog.csdn.net/u012009613/article/details/87939774> *
耿朋;陈伟;魏峻;: "面向Dockerfile的容器镜像构建工具", 计算机系统应用, no. 11 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486631A (en) * 2020-12-04 2021-03-12 浪潮云信息技术股份公司 Method for constructing virtual machine mirror image
CN113378030A (en) * 2021-05-18 2021-09-10 上海德衡数据科技有限公司 Search method of search engine, search engine architecture, device and storage medium
CN113378030B (en) * 2021-05-18 2022-09-20 上海德衡数据科技有限公司 Search method of search engine, search engine architecture, device and storage medium
CN115562691A (en) * 2022-12-05 2023-01-03 中科南京信息高铁研究院 Container-based cloud application publishing method and system
CN117519912A (en) * 2024-01-04 2024-02-06 之江实验室 Mirror image warehouse deployment method, device, storage medium and equipment
CN117519912B (en) * 2024-01-04 2024-04-05 之江实验室 Mirror image warehouse deployment method, device, storage medium and equipment

Similar Documents

Publication Publication Date Title
CN111459509A (en) Container mirror image construction method and device and server
CN108415832B (en) Interface automation test method, device, equipment and storage medium
CN108595342B (en) Unit testing method and device
CN110647471B (en) Interface test case generation method, electronic device and storage medium
CN111290742A (en) Parameter verification method and device, electronic equipment and readable storage medium
CN111881024A (en) Method, device, equipment and storage medium for determining interface test script
CN112579461A (en) Assertion processing method, system and storage medium
CN113687858A (en) Configuration file checking method and device, electronic equipment and storage medium
CN107451058B (en) Software development method and device
CN114398293A (en) Interface test case generation method, electronic device and storage medium
CN110597710B (en) Test coverage rate statistical method, device, computer equipment and storage medium
CN111782207A (en) Method, device and equipment for generating task stream code and storage medium
CN115525534A (en) Test case generation method and platform based on swagger interface test
CN112988578A (en) Automatic testing method and device
CN116599881A (en) Cloud platform tenant modeling test method, device, equipment and storage medium
CN115687108A (en) Verification method, platform, terminal and storage medium based on combination of UVM and FPV
CN112580334A (en) File processing method, file processing device, server and storage medium
CN113626307A (en) Data verification method and device based on K8S container platform
CN112965697A (en) Code file generation method and device and electronic equipment
CN111752823A (en) Method, device and equipment for testing vehicle-mounted power supply application software
CN113010424B (en) Interface automatic test processing method, system, computer equipment and storage medium
CN113254054B (en) Intelligent contract one-stop development system and method
CN115687138A (en) Code checking method and device and server
CN116775485A (en) Software automated testing method, device, equipment, storage medium and program product
CN115147212A (en) Verification method and device for account checking system

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