CN109739518A - Generate the method and device of offline software resource - Google Patents

Generate the method and device of offline software resource Download PDF

Info

Publication number
CN109739518A
CN109739518A CN201811592504.1A CN201811592504A CN109739518A CN 109739518 A CN109739518 A CN 109739518A CN 201811592504 A CN201811592504 A CN 201811592504A CN 109739518 A CN109739518 A CN 109739518A
Authority
CN
China
Prior art keywords
software
operating system
system mirror
resource
installation kit
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
Application number
CN201811592504.1A
Other languages
Chinese (zh)
Other versions
CN109739518B (en
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.)
Hangzhou Dt Dream Technology Co Ltd
Original Assignee
Hangzhou Dt Dream 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 Hangzhou Dt Dream Technology Co Ltd filed Critical Hangzhou Dt Dream Technology Co Ltd
Priority to CN201811592504.1A priority Critical patent/CN109739518B/en
Publication of CN109739518A publication Critical patent/CN109739518A/en
Application granted granted Critical
Publication of CN109739518B publication Critical patent/CN109739518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure provides a kind of method and device for generating offline software resource.The described method includes: at least two operating system mirror images for including according to preset operating system mirror site, run at least two target containers, each target container is configured with preset operating system mirror image, obtain the software information of software to be released, and software information is sent respectively to each target container, pass through each target container, according to software information and corresponding operating system Mirror Info, obtain the installation kit of software to be released, installation kit includes: software package and dependence packet, according to the installation kit that each target container obtains, offline software resource is generated.The method that the disclosure provides realizes offline software resource in an equipment by using container technique and automatically generates, and has the advantages that simple user's operation, offline software resource formation efficiency height, equipment occupancy are low etc..

Description

Generate the method and device of offline software resource
Technical field
This disclosure relates to computer communication technology field more particularly to a kind of method and dress for generating offline software resource It sets.
Background technique
In Software Delivery, it will usually make offline software resource, so as to when online software resource can not be accessed, from from Software resource needed for being obtained in line software resource.
Offline software resource includes a large amount of software installation packets, and software installation packet includes software package and dependence packet.Software is not Dependence is different when running in biconditional operation system, i.e., the same software dependence packet required when running on different operating system is not Together.In the related technology, the equipment that will use installation different operating system obtains the software installation packet of target software respectively, thus To the multiple software installation packets that can be run on different operating system of target software.
In aforesaid operations, need just get multiple softwares of target software using the equipment of installation different operating system Installation kit, there are user's operations it is cumbersome, offline software resource formation efficiency is low, equipment occupancy is more the disadvantages of.
Summary of the invention
In view of this, the disclosure provides a kind of method for generating offline software resource, by using container technique, at one At least two target containers are run using at least two operating system mirror images in equipment, are obtained by each target container to be released The installation kit of software, so that the multiple software installation packets that can be installed on different operating system of software to be released are got, Have the advantages that user's operation is simple, offline software resource formation efficiency is high, equipment occupancy is low etc..
According to the first aspect of the embodiments of the present disclosure, a kind of method for generating offline software resource, the method are provided Include:
At least two operating system mirror images for including according to preset operating system mirror site, at least two targets of operation are held Device, each target container are configured with preset operating system mirror image;
The software information of software to be released is obtained, and the software information is sent respectively to each target container;
Institute is obtained according to the software information and corresponding operating system Mirror Info by each target container The installation kit of software to be released is stated, the installation kit includes: software package and dependence packet;
According to the installation kit that each target container obtains, offline software resource is generated.
Optionally, described according to the software information and corresponding operating system Mirror Info, it obtains described to be released soft The installation kit of part, comprising:
According to the software information and the corresponding operating system Mirror Info, the software of the software to be released is determined Dependency Specification;
According to the determining software Dependency Specification, the dependence packet is obtained from online software resource;
According to the dependence packet of acquisition, the installation kit is generated.
Optionally, the software information of the software to be released includes the software information of at least two softwares;
It is described according to the software information and the corresponding operating system Mirror Info, determine the software to be released Software Dependency Specification, comprising:
According to the software information of the other software coexisted with each software and the corresponding operating system mirror As information, the software Dependency Specification of each software is determined;
It is described according to the determining software Dependency Specification, the dependence packet is obtained from online software resource, comprising:
According to the software Dependency Specification of each software, obtained from the online software resource each described soft The dependence packet of part;
It is described to be wrapped according to the dependence, generate the installation kit, comprising:
According to the dependence packet of each software, the installation kit of each software is generated.
Optionally, the software information includes software version, described according to the software information and corresponding operating system Mirror Info obtains the installation kit of the software to be released, comprising:
Judge the software version whether with predetermined software version match;
If the software version and the predetermined software version match, obtain the software from the online software resource Packet, alternatively, if the software version and the predetermined software version mismatch, from being obtained in other equipment in local or local area network The software package;
According to the software package of acquisition, the installation kit is generated.
Optionally, the installation kit obtained according to each target container, generates offline software resource, packet It includes:
From each target container, the installation kit is extracted;
According to all installation kits of extraction, the offline software resource is generated.
Optionally, in at least two operating system mirror images for including according to preset operating system mirror site, operation is extremely Before few two target containers, the method also includes:
Obtain the preset operating system mirror site.
Optionally, the method also includes:
Receive the update instruction for being directed to the preset operating system mirror site;
According to the content of the update instruction, mirror image is carried out to the preset operating system mirror site and updates operation.
According to the second aspect of an embodiment of the present disclosure, a kind of device for generating offline software resource, described device are provided Include:
Module is run, at least two operating system mirror images for including according to preset operating system mirror site are configured as, is transported At least two target container of row, each target container are configured with preset operating system mirror image;
First obtains module, is configured as obtaining the software information of software to be released;
Sending module is configured as the software information being sent respectively to each target container;
Second obtains module, is configured as by each target container, according to the software information and corresponding behaviour Make system image information, obtain the installation kit of the software to be released, the installation kit includes: software package and dependence packet;
Generation module is configured as the installation kit obtained according to each target container, generates offline software money Source.
Optionally, described second module is obtained, comprising:
It determines submodule, is configured as being determined according to the software information and the corresponding operating system Mirror Info The software Dependency Specification of the software to be released;
First acquisition submodule is configured as being obtained from online software resource according to the determining software Dependency Specification The dependence is taken to wrap;
First generates submodule, is configured as the dependence packet according to acquisition, generates the installation kit.
Optionally, the determining submodule, if the software information for being configured as the software to be released includes at least two The software information of software, according to the software information of the other software coexisted with each software and the corresponding operation System image information determines the software Dependency Specification of each software;
First acquisition submodule is configured as the software Dependency Specification according to each software, from described The dependence packet of each software is obtained in online software resource;
Described first generates submodule, is configured as the dependence packet according to each software, generates each described The installation kit of software.
Optionally, described second module is obtained, comprising:
Decision sub-module, if being configured as the software information includes software version, judge the software version whether with Predetermined software version match;
Second acquisition submodule, if being configured as the software version and the predetermined software version match, from it is described The software package is obtained in line software resource;Alternatively,
Third acquisition submodule, if the software version and predetermined software version mismatch are configured as, from local Or the software package is obtained in local area network in other equipment;
Second generates submodule, is configured as the software package according to acquisition, generates the installation kit.
Optionally, the generation module, comprising:
Extracting sub-module is configured as from each target container, extracts the installation kit;
Submodule is obtained, all installation kits according to extraction is configured as, generates the offline software resource.
Optionally, described device further include:
Third obtains module, is configured as in at least two operation systems for including according to preset operating system mirror site Mirror image of uniting obtains the preset operating system mirror site before running at least two target containers.
Optionally, described device further include:
Receiving module is configured as receiving the update instruction for being directed to the preset operating system mirror site;
Update module is configured as the content according to the update instruction, carries out to the preset operating system mirror site Mirror image updates operation.
According to the third aspect of an embodiment of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, thereon It is stored with computer program, which realizes any one of above-mentioned first aspect the method when being executed by processor the step of.
According to a fourth aspect of embodiments of the present disclosure, a kind of device for generating offline software resource is provided, comprising:
Processor has executable instruction on the processor;
The processor is configured to:
At least two operating system mirror images for including according to preset operating system mirror site, at least two targets of operation are held Device, each target container are configured with preset operating system mirror image;
The software information of software to be released is obtained, and the software information is sent respectively to each target container;
Institute is obtained according to the software information and corresponding operating system Mirror Info by each target container The installation kit of software to be released is stated, the installation kit includes: software package and dependence packet;
According to the installation kit that each target container obtains, offline software resource is generated.
The technical solution that the embodiment of the present disclosure provides can include the following benefits:
In the disclosure, using container technique, at least two operating system mirror images operation at least two is used in an equipment A target container, the installation kit of software to be released is obtained by each target container, so that get software to be released can The multiple software installation packets run on different operating system, and automatically generated according to whole software installation packets of acquisition offline soft Part resource, with user's operation, simple, offline software resource generates effect to the method for the generation offline software resource that the disclosure provides The advantages such as rate is high, equipment occupancy is low.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
Fig. 1 is a kind of method flow diagram for generating offline software resource shown according to an exemplary embodiment;
Fig. 2 is another method flow diagram for generating offline software resource shown according to an exemplary embodiment;
Fig. 3 is another method flow diagram for generating offline software resource shown according to an exemplary embodiment;
Fig. 4 is a kind of device block diagram for generating offline software resource shown according to an exemplary embodiment;
Fig. 5 is that an a kind of structure for generating the device of offline software resource shown according to an exemplary embodiment is shown It is intended to.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term that the disclosure uses. The "an" of the singular used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
It is a kind of method flow diagram for generating offline software resource shown according to an exemplary embodiment, institute referring to Fig.1 State the method for generating offline software resource, comprising:
In a step 101, at least two operating system mirror images for including according to preset operating system mirror site, operation is at least Two target containers, each target container are configured with preset operating system mirror image.
The method for the offline software resource that the disclosure provides can be applied to resource generating device.
Resource generating device has preset operating system mirror site, and preset operating system mirror site includes at least two operations System image, at least two operating system mirror images can be the mirror image of the different release operating systems of Linux, for example, default Operating system mirror site includes: centos system image, Ubuntu system image and debian system image.
There are two the above container instances, resource generating device to get predetermined registration operation system for creation inside resource generating device It unites after mirror site, at least two operating system mirror configurations for including by preset operating system mirror site are real to internal container Example, a container instance configure an operating system mirror image.Resource generating device passes through each operation system when executing this step Mirror image of uniting controls corresponding container instance, runs the corresponding target container of each operating system mirror image.
In operation, resource generating device can provide operation interface, and Resource Manager can be by resource generating device Operation interface on execute predetermined registration operation, Xiang Ziyuan generating device inputs the instruction for running container.Resource generating device Master operating system can be sent after the instruction for receiving user's input according to each operating system mirror image of the instruction internally Operation order runs a target container so that each operating system mirror image controls corresponding container instance according to the operation order.
For example, there are two container instances, resource generating device to get centos system for creation inside resource generating device It unites after mirror image and Ubuntu system image, centos system image is allocated to the first container example, by Ubuntu system image Be allocated to second container example, the master operating system of resource generating device after receiving the instruction for running container, according to Instruction centos system image internally and Ubuntu system image send operation order, centos system image root respectively The first container example is controlled according to the operation order, runs first object container, centos system image is according to the operation order control Second container example processed runs the second target container.
In a step 102, the software information of software to be released is obtained, and software information is sent respectively to each target and is held Device.
Software to be released is the software of installation kit to be obtained, and the installation kit of software to be released is for generating offline software money Source.Software information may include software identification, such as dbase, software number.
In the disclosure, resource generating device can provide operation interface, and Resource Manager can be by setting in resource generation Predetermined registration operation is executed in standby operation interface, Xiang Ziyuan generating device inputs the software information of software to be released.In operation, operation Interface can provide input frame, and Resource Manager can input the software information of software to be released in the input frame, alternatively, behaviour Make to provide software information option on interface, Resource Manager can by the software information option that selection operation interface provides, to Resource generating device Input Software information.
The master operating system of resource generating device sends out software information after the software information for obtaining software to be released respectively Each target container is given, the operating system mirror image of each target container is specifically sent to.
In actual operation, the master operating system of resource generating device can first operational objective container, then obtain to be released Software information is distributed to each target container of operation by the software information of software later, alternatively, the main operation of resource generating device System can first obtain the software information of software to be released, and rerun target container, and software information is distributed to operation later Each target container, can be according to actual setting aforesaid operations process.
In step 103, it is obtained by each target container according to software information and corresponding operating system Mirror Info The installation kit of software to be released is taken, installation kit includes: software package and dependence packet.
Each target container is after the software information for receiving software to be released, according to the software information of acquisition and configuration The operating system Mirror Info of operating system mirror image obtains the software package of software to be released and relies on packet, later according to be released The software package and dependence packet of software, generate the installation kit of software to be released.
For same software when running on different operating system, required software version may be different.In the disclosure, software letter Breath may include software version, described according to software information and corresponding operating system Mirror Info, obtain software to be released Installation kit, may comprise steps of: first, it is determined that software version whether with predetermined software version match;Secondly, if software Version and predetermined software version match, obtain the software package of software to be released, alternatively, if software version from online software resource It is mismatched with predetermined software version, from the software package for obtaining software to be released in local or local area network in other equipment;Finally, root According to the software package of acquisition, the installation kit of software to be released is generated.
In general, only providing the software of the software version of newest publication in online software resource, therefore predetermined software version can To be the software version of newest publication.
It is another method flow diagram for generating offline software resource shown according to an exemplary embodiment referring to Fig. 2, For target container according to software information and corresponding operating system Mirror Info, the step of obtaining the installation kit of software to be released, can be with It is accomplished by the following way:
In step 1031, according to software information and corresponding operating system Mirror Info, the soft of software to be released is determined Part Dependency Specification.
The dependence packet content of software to be released is related to type of operating system, and target container is getting software to be released After software information, the software of software to be released can be determined according to the software information and corresponding operating system Mirror Info of acquisition Dependency Specification.Since target container is configured with preset operating system mirror image, target container is available to arrive the predetermined registration operation The operating system Mirror Info of system image.
There are many software Dependency Specifications, for example, software Dependency Specification includes: that software to be released runs relied on software Dbase and software version information.
In step 1032, according to determining software Dependency Specification, is obtained from online software resource and rely on packet.
Target container is after determining software Dependency Specification, according to determining software Dependency Specification, from online software resource Obtain the dependence packet of software to be released.
In step 1033, according to the dependence packet of acquisition, installation kit is generated.
After getting the dependence packet, according to the dependence packet, the installation kit of software to be released is generated.
For example, resource generating device is equipped with the first container example and second container example, pass through centos system image control The first container example processed runs the first container, controls second container example by Ubuntu system image, runs second container, Resource generating device gets the software information of centos software, and the software information of centos software is sent respectively to first Container and second container, the yum (Yellow dog Updater, Modified, software package manager) in the first container can root According to the software information and centos system image information of acquisition, the software Dependency Specification of centos software is determined, network is visited later It asks and the online source yum of online software resource is provided, according to software Dependency Specification, obtain software from the online source yum and rely on packet.
Based on the setting of step 1031- step 1033, so that target container has according to software information and corresponding operation System image information determines the software Dependency Specification of software to be released, according to determining software Dependency Specification, provides from online software It is obtained in source and relies on packet, and according to the dependence packet of acquisition, generate the function of installation kit, realize the dependence packet of software to be released Online acquisition, the function of resource generating device enriched.
In an alternative embodiment, the software information for the software to be released that resource generating device once obtains can wrap The software information of at least two softwares is included, is another kind shown according to an exemplary embodiment referring to Fig. 3 in this case The method flow diagram of offline software resource is generated, above-mentioned steps 1031 can be accomplished by the following way: in step 1031-1, According to the software information of the other software coexisted with each software and corresponding operating system Mirror Info, each software is determined Software Dependency Specification;Above-mentioned steps 1032 can be accomplished by the following way: in step 1032-1, according to the soft of each software Part Dependency Specification obtains the dependence packet of each software from online software resource;Above-mentioned steps 1033 can be in the following manner It realizes: in step 1033-1, according to the dependence packet of each software, generating the installation kit of each software.
For example, operation first object container and the second target container, first object container are configured in resource generating device First operating system mirror image, the second target container are configured with the second operating system mirror image.Resource generating device obtains to be released soft Part list, and the software matrix to be released is issued to each target container of operation, which includes the first software Mark, the second software identification and third software identification, the software matrix to be released indicate that the other software of the first software include the Two softwares and third software, the other software of the second software include the first software and third software, the other software of third software Including the first software and the second software.
First object container is after getting the software matrix to be released, according to the second software identification, third software identification With the first operating system Mirror Info, determine the first software run in the first operating system and with the second software and third software Software dependence when coexisting determines that the second software runs in the first operating system and is total to the first software and third software Software dependence when depositing determines that third software runs in the first operating system and coexists with the first software and the second software When software dependence;
Second target container is determined according to the second software identification, third software identification and the second operating system Mirror Info First software determines the in the software dependence run in the second operating system and when coexisting with the second software and third software Software dependence of two softwares when running in the second operating system and coexisting with the first software and third software, determines third Software dependence of the software when running in the second operating system and being coexisted with the first software and the second software.
Based on the setting of above-mentioned steps 1031-1- step 1031-3, so that resource generating device has according to be released soft Type of operating system where part and the software category coexisted, determine the software Dependency Specification of software to be released in the present context Function, the dependence packet of acquisition only includes software to be released and runs required dependence data in the present context, and it is big to avoid acquisition Useless dependence data are measured, dependence size of data is effectively controlled, the function of resource generating device is enriched.
At step 104, the installation kit obtained according to each target container generates offline software resource.
After the installation kit that each target container gets software to be released, resource generating device is from each target container In, installation kit is extracted, and according to all installation kits of extraction, generate offline software resource.
The method for the generation offline software resource that the disclosure provides uses container technique, by different operating system with docker Mirror image forms are stored in resource generating device, can obtain software to be released with quick start clean operating system mirror image Software package generates offline software resource with packet, automation is relied on, and with user's operation, simple, offline software resource generates this method The high-efficient, advantages such as equipment occupancy is low.
Resource Manager need to only modify the software information for being input to the software to be released of resource generating device, that is, can trigger money Source generating device obtains the installation kit of new software to be released, enriches the resource content of offline software resource, to realize offline The quick update of software resource.
After offline software resource generates, Resource Manager can be configured offline software resource, so that offline software Resource opening service, is provided out software resource.For example, Resource Manager is to offline yum after the offline source yum generates Source is configured, so that the offline source yum externally provides service.
In an alternative embodiment, resource generating device is in include according to preset operating system mirror site at least two A operating system mirror image can also include following step that is, before executing step 101 before running at least two target containers It is rapid: to obtain preset operating system mirror site.
Preset operating system mirror site can be the mirror image for being collected by Resource Manager and being inputted resource generating device in advance Library.
In use, the preset operating system mirror site in resource generating device can be modified, Resource Manager The change that can be inputted to resource generating device for preset operating system mirror site indicates, to change preset operating system mirror image The operating system mirror image that library includes.Specifically, new operating system mirror image can be added to preset operating system mirror site In, delete preset operating system mirror site Central Plains operating system mirror image etc..Correspondingly, resource generating device can receive for pre- If the update instruction of operating system mirror site, and according to the content of the update instruction, mirror is carried out to preset operating system mirror site As updating operation, to realize the update of preset operating system mirror site.
Illustratively, Resource Manager has collected multiple standard operation system mirror images in advance, and by multiple standard operation systems System mirror image is input in resource generating device, so that resource generating device is got including the pre- of multiple standard operation system mirror images If operating system mirror site, resource generating device obtains the installation kit of software to be released according to the method for the above-mentioned offer of the disclosure, And offline software resource is generated according to the installation kit of acquisition.
In the use process of the offline software resource, current device is determined after needing target software installation kit to be mounted, The target software installation kit is obtained from offline software resource and is installed, if the installation of target software installation kit is unsuccessful, is determined Operating system in current device is not standard operation system but nonstandard operating system.In this case, resource management Operating system mirror image in current device can be added in the preset operating system mirror site of resource generating device by person, be passed through Resource generating device executes the method that the disclosure provides, and obtains the software installation packet that can be run under the operating system, enriches The resource content of offline software resource.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but Be those skilled in the art should understand that, the disclosure is not limited by the described action sequence because according to the disclosure, certain A little steps can be performed in other orders or simultaneously.
Secondly, those skilled in the art should also know that, embodiment described in this description belongs to alternative embodiment, Necessary to the related actions and modules not necessarily disclosure.
Corresponding with aforementioned applications function realizing method embodiment, the disclosure additionally provides application function realization device, shows The embodiment of display screen and corresponding terminal.
It is the device frame of virtual resource in a kind of control Cloud Server shown according to an exemplary embodiment referring to Fig. 4 Figure, the device for generating offline software resource may include:
Module 21 is run, at least two operating system mirror images for including according to preset operating system mirror site are configured as, At least two target containers are run, each target container is configured with preset operating system mirror image;
First obtains module 22, is configured as obtaining the software information of software to be released;
Sending module 23 is configured as the software information being sent respectively to each target container;
Second obtains module 24, is configured as through each target container, according to the software information and corresponding Operating system Mirror Info, obtains the installation kit of the software to be released, and the installation kit includes: software package and dependence packet;
Generation module 25 is configured as the installation kit obtained according to each target container, generates offline software Resource.
In an alternative embodiment, described second module 24 is obtained, may include:
It determines submodule, is configured as being determined according to the software information and the corresponding operating system Mirror Info The software Dependency Specification of the software to be released;
First acquisition submodule is configured as being obtained from online software resource according to the determining software Dependency Specification The dependence is taken to wrap;
First generates submodule, is configured as the dependence packet according to acquisition, generates the installation kit.
In an alternative embodiment, the determining submodule, if being configured as the software letter of the software to be released Breath includes the software information of at least two softwares, according to the software information of the other software coexisted with each software and The corresponding operating system Mirror Info determines the software Dependency Specification of each software;
First acquisition submodule is configured as the software Dependency Specification according to each software, from described The dependence packet of each software is obtained in online software resource;
Described first generates submodule, is configured as the dependence packet according to each software, generates each described The installation kit of software.
In an alternative embodiment, described second module 24 is obtained, may include:
Decision sub-module, if being configured as the software information includes software version, judge the software version whether with Predetermined software version match;
Second acquisition submodule, if being configured as the software version and the predetermined software version match, from it is described The software package is obtained in line software resource;Alternatively,
Third acquisition submodule, if the software version and predetermined software version mismatch are configured as, from local Or the software package is obtained in local area network in other equipment;
Second generates submodule, is configured as the software package according to acquisition, generates the installation kit.
In an alternative embodiment, the generation module 25 may include:
Extracting sub-module is configured as from each target container, extracts the installation kit;
Submodule is obtained, all installation kits according to extraction is configured as, generates the offline software resource.
In an alternative embodiment, described device can also include:
Third obtains module, is configured as in at least two operation systems for including according to preset operating system mirror site Mirror image of uniting obtains the preset operating system mirror site before running at least two target containers.
In an alternative embodiment, described device can also include:
Receiving module is configured as receiving the update instruction for being directed to the preset operating system mirror site;
Update module is configured as the content according to the update instruction, carries out to the preset operating system mirror site Mirror image updates operation.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein above-mentioned be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein above-mentioned be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The embodiment of the present disclosure additionally provides a kind of non-transitorycomputer readable storage medium, is stored thereon with computer journey Sequence, the program are executed by processor the method for generating offline software resource as attached drawing 1- is shown in Fig. 3.
As shown in figure 5, Fig. 5 is shown according to an exemplary embodiment a kind of for generating the device of offline software resource 300 structural schematic diagram.For example, device 300 may be provided as a data processing equipment.Referring to Fig. 5, device 300 includes Processing component 322 further comprises one or more processors, and the memory resource as representated by memory 332, is used It can be by the instruction of the execution of processing component 322, such as application program in storage.The application program stored in memory 332 can be with Including it is one or more each correspond to one group of instruction module.Refer in addition, processing component 322 is configured as executing It enables, to execute the method for generating offline software resource as attached drawing 1- is shown in Fig. 3.
Device 300 can also include the power management that a power supply module 326 is configured as executive device 300, and one has Line or radio network interface 350 are configured as device 300 being connected to network and input and output (I/O) interface 358.Dress Setting 300 can operate based on the operating system for being stored in memory 332, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeB SDTM or similar.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (16)

1. a kind of method for generating offline software resource, which is characterized in that the described method includes:
At least two operating system mirror images for including according to preset operating system mirror site run at least two target containers, often A target container is configured with preset operating system mirror image;
The software information of software to be released is obtained, and the software information is sent respectively to each target container;
By each target container, according to the software information and corresponding operating system Mirror Info, obtain it is described to The installation kit of software is issued, the installation kit includes: software package and dependence packet;
According to the installation kit that each target container obtains, offline software resource is generated.
2. the method according to claim 1, wherein described according to the software information and corresponding operating system Mirror Info obtains the installation kit of the software to be released, comprising:
According to the software information and the corresponding operating system Mirror Info, determine that the software of the software to be released relies on Information;
According to the determining software Dependency Specification, the dependence packet is obtained from online software resource;
According to the dependence packet of acquisition, the installation kit is generated.
3. according to the method described in claim 2, it is characterized in that, the software information of the software to be released includes at least two The software information of software;
It is described according to the software information and the corresponding operating system Mirror Info, determine the software of the software to be released Dependency Specification, comprising:
According to the software information of the other software coexisted with each software and the corresponding operating system mirror image letter Breath, determines the software Dependency Specification of each software;
It is described according to the determining software Dependency Specification, the dependence packet is obtained from online software resource, comprising:
According to the software Dependency Specification of each software, each software is obtained from the online software resource The dependence packet;
It is described to be wrapped according to the dependence, generate the installation kit, comprising:
According to the dependence packet of each software, the installation kit of each software is generated.
4. described according to institute the method according to claim 1, wherein the software information includes software version Software information and corresponding operating system Mirror Info are stated, the installation kit of the software to be released is obtained, comprising:
Judge the software version whether with predetermined software version match;
If the software version and the predetermined software version match, obtain the software package from the online software resource, Alternatively, if the software version and the predetermined software version mismatch, from institute is obtained in local or local area network in other equipment State software package;
According to the software package of acquisition, the installation kit is generated.
5. the method according to claim 1, wherein the peace obtained according to each target container Dress packet, generates offline software resource, comprising:
From each target container, the installation kit is extracted;
According to all installation kits of extraction, the offline software resource is generated.
6. the method according to claim 1, wherein it is described according to preset operating system mirror site include to Few two operating system mirror images, before running at least two target containers, the method also includes:
Obtain the preset operating system mirror site.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
Receive the update instruction for being directed to the preset operating system mirror site;
According to the content of the update instruction, mirror image is carried out to the preset operating system mirror site and updates operation.
8. a kind of device for generating offline software resource, which is characterized in that described device includes:
Module is run, is configured as at least two operating system mirror images for including according to preset operating system mirror site, operation is extremely Few two target containers, each target container are configured with preset operating system mirror image;
First obtains module, is configured as obtaining the software information of software to be released;
Sending module is configured as the software information being sent respectively to each target container;
Second obtains module, is configured as through each target container, is according to the software information and corresponding operation System Mirror Info, obtains the installation kit of the software to be released, and the installation kit includes: software package and dependence packet;
Generation module is configured as the installation kit obtained according to each target container, generates offline software resource.
9. device according to claim 8, which is characterized in that described second obtains module, comprising:
Determine submodule, be configured as according to the software information and the corresponding operating system Mirror Info, determine described in The software Dependency Specification of software to be released;
First acquisition submodule is configured as obtaining institute from online software resource according to the determining software Dependency Specification State dependence packet;
First generates submodule, is configured as the dependence packet according to acquisition, generates the installation kit.
10. device according to claim 9, it is characterised in that:
The determining submodule, if the software information for being configured as the software to be released includes the software letter of at least two softwares Breath is believed according to the software information of the other software coexisted with each software and the corresponding operating system mirror image Breath, determines the software Dependency Specification of each software;
First acquisition submodule is configured as the software Dependency Specification according to each software, from described online The dependence packet of each software is obtained in software resource;
Described first generates submodule, is configured as the dependence packet according to each software, generates each software The installation kit.
11. device according to claim 8, which is characterized in that described second obtains module, comprising:
Decision sub-module, if being configured as the software information includes software version, judge the software version whether with it is default Software version matching;
Second acquisition submodule, if being configured as the software version and the predetermined software version match, from described online soft The software package is obtained in part resource;Alternatively,
Third acquisition submodule, if the software version and predetermined software version mismatch are configured as, from local or office It nets in interior other equipment and obtains the software package in domain;
Second generates submodule, is configured as the software package according to acquisition, generates the installation kit.
12. device according to claim 8, which is characterized in that the generation module, comprising:
Extracting sub-module is configured as from each target container, extracts the installation kit;
Submodule is obtained, all installation kits according to extraction is configured as, generates the offline software resource.
13. device according to claim 8, which is characterized in that described device further include:
Third obtains module, is configured as in at least two operating system mirrors for including according to preset operating system mirror site Picture obtains the preset operating system mirror site before running at least two target containers.
14. device according to claim 13, which is characterized in that described device further include:
Receiving module is configured as receiving the update instruction for being directed to the preset operating system mirror site;
Update module is configured as the content according to the update instruction, carries out mirror image to the preset operating system mirror site Update operation.
15. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the program The step of any one of claim 1-7 the method is realized when being executed by processor.
16. the device of virtual resource in a kind of control Cloud Server characterized by comprising
Processor has executable instruction on the processor;
The processor is configured to:
At least two operating system mirror images for including according to preset operating system mirror site run at least two target containers, often A target container is configured with preset operating system mirror image;
The software information of software to be released is obtained, and the software information is sent respectively to each target container;
By each target container, according to the software information and corresponding operating system Mirror Info, obtain it is described to The installation kit of software is issued, the installation kit includes: software package and dependence packet;
According to the installation kit that each target container obtains, offline software resource is generated.
CN201811592504.1A 2018-12-25 2018-12-25 Method and device for generating offline software resources Active CN109739518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811592504.1A CN109739518B (en) 2018-12-25 2018-12-25 Method and device for generating offline software resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811592504.1A CN109739518B (en) 2018-12-25 2018-12-25 Method and device for generating offline software resources

Publications (2)

Publication Number Publication Date
CN109739518A true CN109739518A (en) 2019-05-10
CN109739518B CN109739518B (en) 2021-05-28

Family

ID=66359838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811592504.1A Active CN109739518B (en) 2018-12-25 2018-12-25 Method and device for generating offline software resources

Country Status (1)

Country Link
CN (1) CN109739518B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328344A (en) * 2020-11-02 2021-02-05 联想(北京)有限公司 Screen projection processing method and first equipment
CN112799688A (en) * 2021-01-18 2021-05-14 中国银联股份有限公司 Method and device for installing software package in container application, computer equipment and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092650A (en) * 2013-01-09 2013-05-08 华中科技大学 Virtual machine mirror image generating method and device based on software preinstallation in cloud environment
US20170085419A1 (en) * 2015-09-18 2017-03-23 Le Holdings (Beijing) Co., Ltd. System and method for deploying an application
CN106790483A (en) * 2016-12-13 2017-05-31 武汉邮电科学研究院 Hadoop group systems and fast construction method based on container technique
CN107077379A (en) * 2016-04-25 2017-08-18 深圳前海达闼云端智能科技有限公司 A kind of virtual machine creation method and device
CN107294785A (en) * 2017-07-11 2017-10-24 上海帝联信息科技股份有限公司 The automatic deployment method and device, computer-readable recording medium of CDN node service
CN107577475A (en) * 2017-08-22 2018-01-12 清华大学 A kind of software package management method and system of data center's group system
CN107678756A (en) * 2017-09-29 2018-02-09 千寻位置网络有限公司 A kind of Web based on Docker applies a key dissemination method
WO2018040914A1 (en) * 2016-08-29 2018-03-08 阿里巴巴集团控股有限公司 Container generation method, device, terminal, server and system
CN108038051A (en) * 2017-11-03 2018-05-15 深圳市牛鼎丰科技有限公司 Dissemination method, device, computer equipment and the storage medium of micro services
CN108616599A (en) * 2018-05-11 2018-10-02 北京辰森世纪科技股份有限公司 Application service registration, newer method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092650A (en) * 2013-01-09 2013-05-08 华中科技大学 Virtual machine mirror image generating method and device based on software preinstallation in cloud environment
US20170085419A1 (en) * 2015-09-18 2017-03-23 Le Holdings (Beijing) Co., Ltd. System and method for deploying an application
CN107077379A (en) * 2016-04-25 2017-08-18 深圳前海达闼云端智能科技有限公司 A kind of virtual machine creation method and device
WO2018040914A1 (en) * 2016-08-29 2018-03-08 阿里巴巴集团控股有限公司 Container generation method, device, terminal, server and system
CN106790483A (en) * 2016-12-13 2017-05-31 武汉邮电科学研究院 Hadoop group systems and fast construction method based on container technique
CN107294785A (en) * 2017-07-11 2017-10-24 上海帝联信息科技股份有限公司 The automatic deployment method and device, computer-readable recording medium of CDN node service
CN107577475A (en) * 2017-08-22 2018-01-12 清华大学 A kind of software package management method and system of data center's group system
CN107678756A (en) * 2017-09-29 2018-02-09 千寻位置网络有限公司 A kind of Web based on Docker applies a key dissemination method
CN108038051A (en) * 2017-11-03 2018-05-15 深圳市牛鼎丰科技有限公司 Dissemination method, device, computer equipment and the storage medium of micro services
CN108616599A (en) * 2018-05-11 2018-10-02 北京辰森世纪科技股份有限公司 Application service registration, newer method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一路狂笑: "docker容器部署及使用(一)", 《HTTP://BLOG.CHINAUNIX.NET/UID-20164485-ID-5749705.HTML》 *
微微一笑很倾城1: "使用docker 创建多个容器,安装greenplum集群", 《HTTPS://WWW.CNBLOGS.COM/WYL89/P/8631224.HTML》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328344A (en) * 2020-11-02 2021-02-05 联想(北京)有限公司 Screen projection processing method and first equipment
CN112328344B (en) * 2020-11-02 2022-11-22 联想(北京)有限公司 Screen projection processing method and first equipment
CN112799688A (en) * 2021-01-18 2021-05-14 中国银联股份有限公司 Method and device for installing software package in container application, computer equipment and medium

Also Published As

Publication number Publication date
CN109739518B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN110535831B (en) Kubernetes and network domain-based cluster security management method and device and storage medium
CN110310034B (en) Service arrangement and business flow processing method and device applied to SaaS
EP3675424B1 (en) Method and apparatus for deploying network service
CN104580349B (en) Secure cloud administration agent
EP3128416B1 (en) Sdn application integration, management and control method, system and device
CN108021428A (en) A kind of method and system that network target range is realized based on Docker
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN108089913B (en) Virtual machine deployment method of super-fusion system
US11689389B1 (en) Onboarding a VNF which includes a VNFC composed of manageable software elements
CN112035228A (en) Resource scheduling method and device
US20170024396A1 (en) Determining application deployment recommendations
CN111162953B (en) Data processing method, system upgrading method and server
US10110456B2 (en) Scalable software monitoring infrastructure, using parallel task queuing, to operate in elastic cloud environments
CN108139936A (en) The methods, devices and systems of access to the serial port from the virtual machine in the virtual application of deployment are provided
WO2016145009A1 (en) Method and system for rapid deployment and execution of customized functionality across multiple distinct platforms
CN109684038B (en) Docker service container log processing method and device and electronic equipment
CN113553140B (en) Resource scheduling method, equipment and system
CN105812423B (en) A kind of cloud system configuration method, server and device
CN109144485B (en) Micro-service deployment method, device, equipment and readable storage medium
US11960578B2 (en) Correspondence of external operations to containers and mutation events
CN109739518A (en) Generate the method and device of offline software resource
TWI707561B (en) Management system and management method of vnf
CN108885686B (en) Cloud-based active debugging system for video analysis
US10929412B2 (en) Sharing content based on extracted topics
CN106789170B (en) Task processing method and device

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