CN108694046A - Container assembly method and device - Google Patents
Container assembly method and device Download PDFInfo
- Publication number
- CN108694046A CN108694046A CN201710126406.8A CN201710126406A CN108694046A CN 108694046 A CN108694046 A CN 108694046A CN 201710126406 A CN201710126406 A CN 201710126406A CN 108694046 A CN108694046 A CN 108694046A
- Authority
- CN
- China
- Prior art keywords
- container
- result
- previous
- current
- information
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
Abstract
The invention discloses a kind of container assembly method and devices.Wherein, this approach includes the following steps:Receive the command information and configuration file for assembling container;Based on command information, configuration file is parsed, generates analysis result, analysis result includes:Directly the first of assembly current container is as a result, need to judge the second the result whether state applied in the previous container of current container supports assembly current container;When analysis result is the first result, current container is directly assembled;When analysis result is the second result, judge whether the state applied in previous container supports assembly current container, if support assembly current container, assembles current container.The present embodiment has fully considered the dependence of container internal operation process as a result, improves the assembly precision for relying on container.
Description
Technical field
The present invention relates to field of cloud computer technology more particularly to a kind of container assembly method and devices.
Background technology
With the fast development of the communication technology, cloud computing produces people's lives increasing influence.docker
Container becomes technology burning the hotest in current cloud computer technology with its lightweight, encapsulation, the characteristics such as iteratively faster.It is all kinds of
Using often through the different container of function is disposed on host, (general each container is only responsible for simple function, and operation is single
Process), and pass through the completion inter-related task interactively with each other between container.
Applicant it has been investigated that:Cooperating between true upper container and operate in the common process one on host
Sample has relationship depending therefrom.Such as:The web cluster of containerization, boot sequence should be database container, and web applications are held
Device, load balancing container, and must be after database container starts successfully (container+internal data example itself) completely, web is answered
It should just be started with container, and service is externally provided;When container stops or exits, it is also desirable to there is the progress of the container of dependence
Stopping one by one in order and the problem of exit operation, otherwise easily cause data inconsistency.
The tools such as the strapping tool of existing container, such as docker compose, crane, these tools are realized in spy
Determine defined in file format (json, yaml), create, the related command of deletion container, realizing packing one in order of container
Bodyization starts and stops.But these tools all do not account for the case where service application state run in container, and directly into
The operation of subsequent vessel is gone.This is easy for causing following container assembly abnormal problem:1) it is only carried out according to the sequence of definition
Related establishments of container, startup, delete operation etc., without the state applied in concern container so that seem container group and open
It moves successfully, can not but use application.2) quickly it can not start or exit abnormal problem reason by positioning vessel packet (group).Example
Such as, container starts to start successfully, after running very short a period of time, but exits.3) it when container group exits, is not applied
The logical check of process be easy to cause the inconsistent problem of data.
Invention content
In order to solve the problems, such as that the assembly of existing container is abnormal, an embodiment of the present invention provides a kind of container assembly method and
Device.
In a first aspect, providing a kind of container assembly method.This approach includes the following steps:
Receive the command information and configuration file for assembling container;
Based on command information, configuration file is parsed, generates analysis result, analysis result includes:Directly assembly is worked as
The first of preceding container is as a result, need to judge whether the state applied in the previous container of current container is supported to assemble current appearance
Second result of device;
When analysis result is the first result, current container is directly assembled;
When analysis result is the second result, judge whether the state applied in previous container supports assembly current container,
If support assembly current container, current container is assembled.
Second aspect provides a kind of container assembly device.The device includes:
Interface module, for receiving command information and configuration file for assembling container;
Parsing module parses configuration file, generates analysis result, analysis result packet for being based on command information
It includes:Directly whether the first of assembly current container be as a result, need the state for judging to apply in the previous container of current container
Support the second result of assembly current container;
Judgment module, for when analysis result is the second result, judging whether the state applied in previous container is supported
Assemble current container;
If execution module assembles current container support assembly current container for judging result;If analysis result is the
When one result, current container is directly assembled.
The present embodiment generates analysis result, when analysis result is the first result by being parsed to configuration file as a result,
When, directly assemble current container;When analysis result is the second result, judge whether the state applied in previous container is supported to fill
With current container, if support assembly current container, current container is assembled, has fully considered the dependence of container internal operation process
Relationship improves the assembly precision for relying on container.Ideally, it can be achieved that relying on the zero defect assembly of container.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will make below to required in the embodiment of the present invention
Attached drawing is briefly described, it should be apparent that, drawings described below is only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is the frame diagram of the container assembly system of one embodiment of the invention.
Fig. 2 is the flow diagram of the container assembly method of one embodiment of the invention.
Fig. 3 is the flow diagram of the container assembly method of another embodiment of the present invention.
Fig. 4 is the structural schematic diagram of the container assembly device of one embodiment of the invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is the frame diagram of the container assembly system of one embodiment of the invention.
As shown in Figure 1, the system may include:Interface module 101, analysis result buffer area 103, is held parsing module 102
Row module 104, judgment module 105, acquisition module 106, container layer order (or application programming interface API) 107, daily record
Module 108, container 109,110,111 and 112.
Wherein, the configuration file that interface module 101 can understand the command information of user and user specifies calls parsing
Module 102.Configuration file content can be translated into container order or container A PI by parsing module 102 according to user command
It calls, generates analysis result.Analysis result buffer area 103 can be with storing and resolving result.Execution module 104 can be tied according to parsing
Fruit calls container related command (or API) to be grasped by container layer order (either application programming interface API) 107
Make, if operation is run to when needing to carry out the execution point of process return information condition adjudgement in container state judgement or container,
Give control to judgment module 105.Judgment module 105 decides whether to call acquisition module according to the particular content of analysis result
106, if needing, call acquisition module 106.106 collection container 109,110,111 of acquisition module or 112 status informations and should
After the progress information run in container, the return status information applied in container itself, container is sent to judgment module 105.
Judgment module 105 by the expecting state of predefined (or pass through run external compare program) and the progress information that returns into
Row compares, and generates comparison result (true or false), then give control to execution module 104.Execution module 104 can be with
According to the predefined operation for generating result is compared, subsequent vessel or export error message are operated.It is filled in whole container packet (group)
During matching, operating, all output informations are imported into journal module 108 in real time, the shape of container is recorded by journal module 108
The information such as state of a process in state, container provide tracking, audit basis for the process status of container state, container internal operation.
It is appreciated that the quantity of each function module quantity and container in this frame is schematical, it can be according to need
It is adjusted flexibly.In addition, analysis result buffer area 103 can be omitted, analysis result can directly be sent out by parsing module 102
Give execution module 104.
The system architecture that following embodiments can be applied to the present embodiment assembles each container one by one.The present embodiment
System can execute specific container assembly manipulation as the subject of implementation of following each embodiment.It is succinct in order to describe, it is each
Embodiment can mutually refer to application.
Fig. 2 is the flow diagram of the container assembly method of one embodiment of the invention.
As shown in Fig. 2, this approach includes the following steps:S210 receives the command information for assembling container and configuration
File;S220 is based on command information, is parsed to configuration file, generates analysis result;S230, when analysis result is first
When as a result, current container is directly assembled;S240 judges the state applied in previous container when analysis result is the second result
Whether current container is assembled in support, if support assembly current container, assembles current container.
In step S210, container can be docker containers.The order of assembling container can be in particular file format
Defined in (json, yarn), create, the order of assembling container.Configuration file can be that user is specified.Configuration file may include
Generate Container Name, container parameters etc..
In step S220, analysis result may include:Directly the first of assembly current container is as a result, need to judge
Whether the state applied in the previous container of current container supports the second result of assembly current container.
The realization method parsed to configuration file is for example:Parsing module reads json formats or the configuration of yarn formats
The content of file is converted to the collection of the call instruction of docker containers or docker API and program code segments according to file content
It closes, can be bash shell programs either python shell scripts or other programming languages.This script journey parsed
Ordered sets can be put into disk file (such as a.sh or a.py).Or it in order to reduce disk I/O expense, directly opens up
Go out one piece of core buffer, parsing content is directly placed into core buffer.
In step S230, when analysis result is the first result, for example, current container is first container, because should
It does not need to judge at this time so will not be restricted by previous container when assembling the container without other containers before container
Order, can directly assemble current container.For example, analysis result is startup (docker start) or the container of container
The order for stopping (docker stop), can be with executive device current container.
In step S240, each container in container group (container packet) has relation of interdependence, such as the web of containerization
Cluster, boot sequence should be database container, web application containers, load balancing container, and must be that database container is complete
After starting successfully (container+internal data example itself), web application containers should just start, and externally provide service;Container stops
Or when exiting, it is also desirable to thering is the container of dependence to carry out stopping one by one in order and exiting operation, otherwise be easy to
The problem of causing data inconsistency.
Judge whether the state applied in previous container supports that assembly current container for example can be:Previous container (data
Storage capacity device) start successfully completely, after the startup of current container (web application containers), current container can be supported to start at this time
Service can be externally provided.
The configuration file that the present embodiment is specified by the command information and user of understanding user, will match according to user command
The calling that file content translates into container order or container A PI is set, analysis result is generated, container phase is called according to analysis result
It closes order to be operated, needs to carry out process return information condition adjudgement in container state judgement or container if operation is run to
Execution point when, decide whether to adjust according to the particular content of analysis result run in collection container status information and container into
Journey information, is if desired called, then is compared the progress information of return by the expecting state of predefined, and knot is compared in generation
Fruit operates subsequent vessel or export error message further according to the predefined operation for generating result is compared.The present embodiment considers
The dependence of container internal operation process realizes the zero defect assembly for relying on container, can be that the operation of whole container packet carries
For audit trail function.
In some embodiments, judge whether the state applied in previous container supports the realization method of assembly current container
May include:
Judge whether to need to acquire the status information of previous container;
When if desired acquiring the status information of previous container, the status information of previous container is acquired, by what is acquired
Status information is compared with expecting state information, generates comparison result, judges application in previous container based on comparative result
Whether state supports assembly current container;
If need not acquire the status information of previous container, the judgment rule based on internal preset judges previous container
Whether the state of interior application supports assembly current container.
The present embodiment not only proposes the acquisition method of operation process status information in container, it is also proposed that operation in container
The judgment method of process status information, and aforesaid way is combined with the operation of container to obtain container internal operation process
Dependence realizes the zero defect assembly for relying on container.
In some embodiments, the status information of previous container includes:The container running state information of previous container
Running state of a process is (for example, in process in (for example, information that container starts or container stops) and/or previous container
Break or be finished) information.
On the basis of Fig. 2 embodiments, following steps can also be increased:Based on the state applied in current container, assembly
The latter container of current container.
On the basis of the various embodiments described above, following steps can also be increased:Real-time collecting assembles the daily record of each container
Information, and log information is stored in journal file.During whole operation, journal module collects each step in real time
Log information, and be stored in journal file, for container state, container internal operation process status provide tracking, audit according to
According to.
Fig. 3 is the flow diagram of the container assembly method of another embodiment of the present invention.
As shown in figure 3, this approach includes the following steps:
S301 defines container according to file format requirements and assembles file.
S302 sends out container assembly order by order line or web (internet general name) interface.
S303, interface module obtain user command, user command, configuration file are sent to parsing module.
Content in S304, order that parsing module is sent according to user and configuration file combines the two, resolves to
The related command and pseudo-program code segment that container executes, are put into parsing buffering area (either memory can also file).
S305, execution module read parsing buffer contents.
S306 carries out container relevant operation according to the content of reading, if the content read is not section of pseudo code, is not related to holding
The judgement of running state of process in device state, container, then directly invoke container order or API carries out container operation.
S307, if the content read is section of pseudo code, be related to container state, in container running state of process judgement, then
Control is given to judgment module.
S308, judgment module is according to the program section of pseudo code for parsing buffering area, it is determined whether it needs to call acquisition module, if
It needs, thens follow the steps S309;If being not necessarily to, internal judgment is executed, returns to judging result, executes step S311.
Wherein, section of pseudo code is a kind of algorithm description language.Purpose using pseudocode is that the algorithm being described is allow to hold
It changes places and is realized with any type programming language (Pascal, C, Java etc.).Therefore, pseudocode must clear in structure, code it is simple,
It is readable good, and similar natural language.Between natural language and programming language.It is indicated with the written form of programming language
Algorithm function.Using pseudocode, implemented without sticking to.Compared to program language (such as Java, C++, C, Dephi etc.) it
More similar natural language.It is half angie type, non-type language.The structure of entire algorithm operational process can be used close to certainly
The form (meaning that program can be expressed using word known to any type) of right language, which is depicted, to be come.
S309, acquisition module start, and acquire the state of a upper container, operation state of a process information in container, have acquired
At rear (basis for estimation that acquisition is completed is the combination of time threshold or specific termination condition), collected result is sent to
Judgment module.
S310, judgment module according to pre-defined expection return information (or operation external program) to collection result into
Row judges, will determine that end value is sent to execution module.
S311 executes internal judgment, returns to judging result.
S312, execution module carry out the operation of subsequent vessel according to judging result value.
The operating procedure of S305 to S312 is recycled, the assembly of whole container packet (group) is completed.During whole operation,
Journal module collects the log information of each step in real time, and is stored in journal file, is container state, container internal operation
Process status provide tracking, audit basis.
In the present embodiment, execution module reads script file, perform script file.If script goes to application program
Judge state logic, such as:
Flag=true
While flag
(addresses ip are oralce database addresses to if tnsping 10.209.124.1, and carrying out oracle database is
The no judgement started completely) then
Flag=false
else
Cycle waits for or other operations (for example, sleep5)
Subsequent vessel start-up operation, such as docker run-rm docker containers names or ID.
The judgement that judgment module can be used for recycling, can be specifically packaged as a function.Judgment module is into line number
According to the judgement whether library starts completely, the ceaselessly cycle criterion if without starting completely, until start completely just carry out it is next
The starting operation of a container;If starting completely, next container is directly initiated.It should be noted that the case where not conflicting
Under, the sequence of above-mentioned each operating procedure can be adjusted flexibly according to actual needs by those skilled in the art, or
Above-mentioned steps are subjected to the operations such as flexible combination.For simplicity, repeating no more various realization methods.
Fig. 4 is the structural schematic diagram of the container assembly device of one embodiment of the invention.
As shown in figure 4, container assembly device 400 may include:Interface module 410, parsing module 420, judgment module 430
With execution module 440.Wherein:Interface module 410 can be used for receiving the command information and configuration file for assembling container;
Parsing module 420 can be used for being based on command information, be parsed to configuration file, generate analysis result, and analysis result includes:
Directly the first of assembly current container is as a result, need to judge whether the state applied in the previous container of current container is supported
Assemble the second result of current container;Judgment module 430 can be used for, when analysis result is the second result, judging previous container
Whether the state of interior application supports assembly current container;Support assembly is current to hold if execution module 440 can be used for judging result
When device, current container is assembled;If when analysis result is the first result, current container is directly assembled.
It should be noted that the realization method of functional unit or function module shown in the present embodiment can be hard
Part, software, firmware or combination thereof.When realizing in hardware, electronic circuit, special integrated electricity may, for example, be
Road (ASIC), firmware appropriate, plug-in unit, function card etc..When being realized with software mode, element of the invention is used to hold
The program or code segment of task needed for row.Either code segment can be stored in machine readable media or pass through load to program
The data-signal carried in wave is sent in transmission medium or communication links." machine readable media " may include that can store
Or any medium of transmission information.The example of machine readable media includes electronic circuit, semiconductor memory devices, ROM, sudden strain of a muscle
Deposit, erasable ROM (EROM), floppy disk, CD-ROM, CD, hard disk, fiber medium, radio frequency (RF) link etc..Code segment can be through
It is downloaded by the computer network of internet, Intranet etc..
On the basis of Fig. 4 embodiments, it can also increase:The acquisition module being connect with judgment module.Acquisition module can be with
Status information for acquiring previous container according to the acquisition instructions of judgment module, and by the status information feedback acquired to
Judgment module.
For example, acquisition module not only wants the status information of collection container, what is more important to need to call the correlation of container
The inside that container is goed deep into order obtains the return information that business process is run in container.After getting return information, into row information
The arrangement of format, and push information to judgment module.
The index of acquisition module acquisition is divided into two major classes:
A class indexs:Container runs class index.Such as whether container normally starts, exits;The resource letter that container is consumed
Breath, memory, cpu etc.;
B class indexs:Progress information is applied in container.Such as process initiation information (PID, memory usage etc.), process day
Will information (finally starts result information), process output information etc..
A classes, the acquisition dimension of B class indexs are configured by user profile, and call acquisition module by judgment module
It generates.
Acquisition time can be arranged to ensure correctness, the integrality of progress information acquisition in container for B class indexs
Threshold information (such as acquisition time is set as 5s, and just collected information is pushed to judgment module after 5s), or triggering terminate
The configuration such as condition (such as setting env parameters, after container internal process starts, correlation env parameters are rewritten as return value, parameter
After value is written over, then it is assumed that acquisition is completed).
In some embodiments, judgment module 430 is additionally operable to:Judge whether to need to acquire the state of the previous container
Information;When if desired acquiring the status information of the previous container, is sent to the acquisition module and acquire the previous appearance
The instruction of the status information of device, and receive acquired status information, by the status information acquired and expecting state information into
Row compares, and generates comparison result, judges whether the state applied in the previous container is supported described in assembly based on comparative result
Current container;If need not acquire the status information of the previous container, the judgment rule based on internal preset judges institute
State whether the state applied in previous container is supported to assemble the current container.
Judgment module 430 is the core of the device.For example, judgment module 430 receives the information that acquisition module push comes, and
Information is divided into two classes, one kind is container oneself state information;One kind is the return information of operation process in container.Judgment module
430 are compared operation according to this two category information.
A, the realization method of simple relatively operation can be:
The comparison content of simple return information is being assembled defined in file, (for example, if preset states==container returns
0 else return 1 of state then return;Preset state 1==containers return to state and preset state 2==containers
Interior process returns to state then return 0;Else ruturn 1 etc.).Judgment module simply compares according to information as above, will
Comparison result is pushed to execution module.
B, external program, which imports the realization method compared, to be:
For complicated service application, return information may be more complicated, can not simply be compared.It can then write and answer
Program is analyzed with return information, is called for judgment module in embedded container assembly file.(for example, if localrun (/usr/
local/sbin/a.sh)then return 0;else return 1).Judgment module reads the pseudo- for section of buffering area, calls
Program is analyzed, return information is analyzed, and comparison result is pushed to by execution module according to call result.
In some embodiments, execution module 440 is additionally operable to:Based on the state applied in current container, current hold is assembled
The latter container of device.
For example, execution module 440 reads the phase for the result buffer that user-defined configuration file parses inside the Pass according to this
Hold, container order or API is called to execute operation.Control is transferred into judgment module when encountering program section of pseudo code, judges mould
After root tuber generates comparative structure according to section of pseudo code, then execution module is transferred to continue to execute container operation the control.
On the basis of Fig. 4 embodiments, it can also increase:Journal module.Journal module can be used for real-time collecting assembly
The log information of each container, and log information is stored in journal file.
In some embodiments, the status information of previous container includes:The container running state information of previous container
And/or running state of a process information in previous container.
In some embodiments, container is docker containers.
It should be noted that the device of the various embodiments described above can be used as the method for each embodiment of the various embodiments described above
In executive agent, the corresponding flow in each method may be implemented, for sake of simplicity, content repeats no more in this respect.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be expressed in the form of software products in other words, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, it will be understood by those of ordinary skill in the art that:It still may be used
With technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features;
And these modifications or replacements, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (13)
1. a kind of container assembly method, which is characterized in that include the following steps:
Receive the command information and configuration file for assembling container;
Based on the command information, the configuration file is parsed, generates analysis result, the analysis result includes:Directly
Tipping matches the first of current container as a result, needing to judge whether the state applied in the previous container of the current container props up
Hold the second result for assembling the current container;
When the analysis result is first result, the current container is directly assembled;
When the analysis result is second result, judge whether the state applied in the previous container supports assembly institute
Current container is stated, if support to assemble the current container, assembles the current container.
2. according to the method described in claim 1, it is characterized in that, whether described judge the interior state applied of the previous container
It supports to assemble the current container, including:
Judge whether to need to acquire the status information of the previous container;
When if desired acquiring the status information of the previous container, the status information of the previous container is acquired, will be adopted
The status information of collection is compared with expecting state information, generates comparison result, and result judges described previous based on the comparison
Whether the state applied in container is supported to assemble the current container;
If need not acquire the status information of the previous container, the judgment rule based on internal preset judges described previous
Whether the state applied in container is supported to assemble the current container.
3. according to the method described in claim 1, it is characterized in that, further comprising the steps of:
Based on the state applied in current container, the latter container of the current container is assembled.
4. according to the method described in claim 3, it is characterized in that, further comprising the steps of:
Real-time collecting assembles the log information of each container, and the log information is stored in journal file.
5. according to the method described in claim 2, it is characterized in that, the status information of the previous container includes:Before described
Running state of a process information in the container running state information of one container and/or the previous container.
6. method according to any one of claims 1-5, which is characterized in that the container is docker containers.
7. a kind of container assembles device, which is characterized in that including:
Interface module, for receiving command information and configuration file for assembling container;
Parsing module parses the configuration file, generates analysis result, the solution for being based on the command information
Analysing result includes:Directly the first of assembly current container is as a result, need to judge the previous container planted agent of the current container
Whether state is supported to assemble the second result of the current container;
Judgment module, for when the analysis result is second result, judging the state applied in the previous container
Whether the current container is assembled in support;
If execution module assembles the current container support to assemble the current container for judging result;If the parsing
When being as a result first result, the current container is directly assembled.
8. device according to claim 7, which is characterized in that further include:The acquisition module being connect with the judgment module,
The acquisition module is used to acquire the status information of the previous container according to the acquisition instructions of the judgment module, and by institute
The status information feedback of acquisition gives the judgment module.
9. device according to claim 8, which is characterized in that the judgment module is additionally operable to:
Judge whether to need to acquire the status information of the previous container;
When if desired acquiring the status information of the previous container, is sent to the acquisition module and acquire the previous container
Status information instruction, and receive acquired status information, the status information acquired and expecting state information carried out
Compare, generate comparison result, judges whether the state applied in the previous container is supported to work as described in assembly based on comparative result
Preceding container;
If need not acquire the status information of the previous container, the judgment rule based on internal preset judges described previous
Whether the state applied in container is supported to assemble the current container.
10. device according to claim 7, which is characterized in that the execution module is additionally operable to:
Based on the state applied in current container, the latter container of the current container is assembled.
11. device according to claim 10, which is characterized in that further include:
Journal module assembles the log information of each container for real-time collecting, and the log information is stored in journal file
In.
12. device according to claim 7, which is characterized in that the status information of the previous container includes:Before described
Running state of a process information in the container running state information of one container and/or the previous container.
13. according to the device described in any one of claim 7-12, which is characterized in that the container is docker containers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710126406.8A CN108694046B (en) | 2017-03-03 | 2017-03-03 | Container assembly method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710126406.8A CN108694046B (en) | 2017-03-03 | 2017-03-03 | Container assembly method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108694046A true CN108694046A (en) | 2018-10-23 |
CN108694046B CN108694046B (en) | 2021-11-16 |
Family
ID=63841935
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710126406.8A Active CN108694046B (en) | 2017-03-03 | 2017-03-03 | Container assembly method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108694046B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111813413A (en) * | 2020-06-28 | 2020-10-23 | 四川长虹电器股份有限公司 | Method for automatically generating YAML file |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040172618A1 (en) * | 2003-02-28 | 2004-09-02 | Bea Systems, Inc. | Systems and methods for a common runtime container framework |
EP1515229A2 (en) * | 2003-09-15 | 2005-03-16 | Trigence Corp. | System for executing application sets within application containers |
CN105511872A (en) * | 2015-11-30 | 2016-04-20 | 国云科技股份有限公司 | Application automatic deployment method based on cloud computing platform |
CN105893122A (en) * | 2015-08-25 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Data processing operation scheduling method, device and system |
CN105912387A (en) * | 2015-08-25 | 2016-08-31 | 乐视网信息技术(北京)股份有限公司 | Method and device for dispatching data processing operation |
CN106168910A (en) * | 2015-11-16 | 2016-11-30 | 华扬联众数字技术股份有限公司 | Program scheduler and the method for execution, system and scheduler and executor |
US20170034023A1 (en) * | 2015-07-27 | 2017-02-02 | Datagrid Systems, Inc. | Techniques for evaluating server system reliability, vulnerability and component compatibility using crowdsourced server and vulnerability data |
-
2017
- 2017-03-03 CN CN201710126406.8A patent/CN108694046B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040172618A1 (en) * | 2003-02-28 | 2004-09-02 | Bea Systems, Inc. | Systems and methods for a common runtime container framework |
EP1515229A2 (en) * | 2003-09-15 | 2005-03-16 | Trigence Corp. | System for executing application sets within application containers |
US20170034023A1 (en) * | 2015-07-27 | 2017-02-02 | Datagrid Systems, Inc. | Techniques for evaluating server system reliability, vulnerability and component compatibility using crowdsourced server and vulnerability data |
CN105893122A (en) * | 2015-08-25 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Data processing operation scheduling method, device and system |
CN105912387A (en) * | 2015-08-25 | 2016-08-31 | 乐视网信息技术(北京)股份有限公司 | Method and device for dispatching data processing operation |
CN106168910A (en) * | 2015-11-16 | 2016-11-30 | 华扬联众数字技术股份有限公司 | Program scheduler and the method for execution, system and scheduler and executor |
CN105511872A (en) * | 2015-11-30 | 2016-04-20 | 国云科技股份有限公司 | Application automatic deployment method based on cloud computing platform |
Non-Patent Citations (4)
Title |
---|
CARL BOETTIGER: "An introduction to Docker for reproducible research, with examples from the R environment", 《ACM》 * |
DOCKER: "Docker发布新的跨容器的分布式应用编排服务", 《电脑与电信》 * |
EE900222: "Docker系列之(五):使用Docker Compose编排容器", 《HTTPS://WWW.CNBLOGS.COM/EE900222/P/DOCKER_5.HTML#4658372》 * |
许云峰等: "《大数据技术及行业应用》", 31 August 2016, 北京邮电大学出版社 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111813413A (en) * | 2020-06-28 | 2020-10-23 | 四川长虹电器股份有限公司 | Method for automatically generating YAML file |
Also Published As
Publication number | Publication date |
---|---|
CN108694046B (en) | 2021-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10528454B1 (en) | Intelligent automation of computer software testing log aggregation, analysis, and error remediation | |
CN111158818B (en) | Page rendering method and device | |
CN109933522B (en) | Test method, test system and storage medium for automatic case | |
CN110321152A (en) | A kind of Software Development Platform | |
CN101930400B (en) | SDK (Software Development Kit) automatic test system and method | |
US11667033B2 (en) | Systems and methods for robotic process automation | |
CN107273194A (en) | Task executing method and terminal device | |
CN111026634A (en) | Interface automation test system, method, device and storage medium | |
CN108664291A (en) | The construction method and device of container group | |
CN110007926B (en) | Language conversion method and device | |
CN112394942A (en) | Distributed software development compiling method and software development platform based on cloud computing | |
US7257735B2 (en) | Identifying solutions to computer problems in client/server system | |
CN109413131A (en) | A kind of method and device of log parsing | |
CN111427665A (en) | Quantum application cloud platform and quantum computing task processing method | |
CN106484488B (en) | Integrated cloud Compilation Method and system | |
CN110598419A (en) | Block chain client vulnerability mining method, device, equipment and storage medium | |
US10545732B1 (en) | Model configuration using partial model data | |
CN108694046A (en) | Container assembly method and device | |
US7403933B2 (en) | Identifying solutions to computer problems in main system by service system | |
CN114115884A (en) | Management method and related device for programming service | |
CN113590217B (en) | Function management method and device based on engine, electronic equipment and storage medium | |
CN109656536A (en) | A kind of method and client of pushing module modularization | |
CN115291933A (en) | Method, device and equipment for constructing small program data packet and storage medium | |
CN113806331A (en) | Data processing method and device | |
CN111104122B (en) | Method for mapping xml service logic to java service logic |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |