[go: up one dir, main page]

CN109167826A - The restocking method, apparatus and system of WEB application - Google Patents

The restocking method, apparatus and system of WEB application Download PDF

Info

Publication number
CN109167826A
CN109167826A CN201810952359.7A CN201810952359A CN109167826A CN 109167826 A CN109167826 A CN 109167826A CN 201810952359 A CN201810952359 A CN 201810952359A CN 109167826 A CN109167826 A CN 109167826A
Authority
CN
China
Prior art keywords
web application
container
cpk
packet
file
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
CN201810952359.7A
Other languages
Chinese (zh)
Other versions
CN109167826B (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.)
CHINASOFT INFORMATION SYSTEM ENGINEERING Co Ltd
Original Assignee
CHINASOFT INFORMATION SYSTEM ENGINEERING 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 CHINASOFT INFORMATION SYSTEM ENGINEERING Co Ltd filed Critical CHINASOFT INFORMATION SYSTEM ENGINEERING Co Ltd
Priority to CN201810952359.7A priority Critical patent/CN109167826B/en
Publication of CN109167826A publication Critical patent/CN109167826A/en
Application granted granted Critical
Publication of CN109167826B publication Critical patent/CN109167826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides the restocking method, apparatus and system of a kind of WEB application, it is related to field of information security technology, this method is applied to the headend equipment of the restocking system of WEB application, comprising: is primarily based on preset CPK packet specification for WEB application source file and encapsulates generation CPK packet;It wherein, include the application range of CPK packet in CPK packet specification;Then the data file in CPK packet is uploaded into preset shared storage;After receiving from the synchronization notice of institute's container cloud, the operation instruction from administrator is obtained;Operation instruction is sent to container cloud, so that container cloud generates the container of target WEB application based on operation instruction;When receiving the accessible address of target WEB container by container cloud, CPK packet is updated;CPK packet is as target WEB application, the restocking target WEB application after updating.The above method provided by the invention standardizes the application range for defining CPK packet by CPK packet, can limit the access authority of user, the safety of WEB application service is effectively promoted.

Description

The restocking method, apparatus and system of WEB application
Technical field
The present invention relates to field of information security technology, a kind of restocking method, apparatus more particularly, to WEB application and are System.
Background technique
With the high speed development of world today's informationization technology, information security has become one of emphasis of informatization, It is most important to construct safe and efficient application software service system.
Currently, providing application service by building the website WEB for user;Or it is answered by application assistant's publication of operator With service.Such mode does not limit the access authority of user usually, and safety is not high, is unsuitable for such as to need to be engaged in special project The group user of business provides application service.
Summary of the invention
In view of this, the purpose of the present invention is to provide the restocking method, apparatus and system of a kind of WEB application, to be promoted The safety of WEB application service.
In a first aspect, this method is applied to WEB application the embodiment of the invention provides a kind of restocking method of WEB application Restocking system headend equipment, this method comprises: based on preset CPK be packaged specification, by WEB application source file encapsulate generate CPK packet;It wherein, include the application range of CPK packet in CPK packet specification;CPK packet is cut, and by the data in CPK packet File uploads to preset shared storage;Wherein, data file includes using image file, application information file and starting container Parameter configuration files;Data upload notifications are sent to container cloud;After receiving from the synchronization notice of container cloud, acquisition is come from The operation instruction of administrator;Wherein, operation instruction includes deployment WEB application, updates WEB application version and rollback WEB application version This;Operation instruction is sent to container cloud, so that container cloud generates the container of target WEB application based on operation instruction;When receiving When the accessible address of the container of the target WEB application from container cloud, CPK packet is updated;Using updated CPK packet as target WEB application;Restocking target WEB application.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein on It states and specification is packaged based on preset CPK, WEB application source file is encapsulated into the step of generating CPK packet, comprising: to WEB application source document Part carries out allotment parameter manipulation, so that WEB application source file is suitable for default verification environment;Wherein, it presets verification environment and holds The application environment of device cloud is consistent;It is packaged and is standardized based on preset CPK, the WEB application source file after allotment parameter is encapsulated and is generated CPK packet.
Second aspect, the embodiment of the invention provides the restocking method of another WEB application, this method is answered applied to WEB The container cloud of restocking system, this method comprises: receiving the data upload notifications from headend equipment;It is deposited from preset share It is extracted in storage and applies image file, and will be using image file storage to preset mirror image warehouse;Wherein, storage is shared for depositing The shared file of storage container cloud and headend equipment;Shared file, which includes at least, applies image file;By the application in mirror image warehouse Image file is synchronized to calculate node, and end equipment sends synchronization notice forward;Administrator is come from when receiving by headend equipment Operation instruction when, in calculate node to the corresponding target application image file of operation instruction execute instantiation operation, with life At the container of target WEB application;Wherein, operation instruction includes deployment WEB application, updates WEB application version and rollback WEB application One of version is a variety of;The accessible address of the container of target WEB application is passed into headend equipment, so that headend equipment Based on accessible address restocking target WEB application.
It is above-mentioned total the embodiment of the invention provides the first possible embodiment of second aspect in conjunction with second aspect Enjoying file further includes application information file and starting container parameters configuration file;
In conjunction with the first possible embodiment of second aspect, the embodiment of the invention provides second of first aspect Possible embodiment, wherein above-mentioned that example is executed to the corresponding target application image file of operation instruction in calculate node Change operation, the step of container to generate target WEB application, comprising: mesh corresponding with operation instruction is searched in calculate node Mark applies image file;Application information file corresponding with target application image file and starting container are extracted from shared file Parameter configuration files;The application information file of extraction and starting container parameters configuration file are synchronized to calculate node;It is calculating Target image file is instantiated according to application information file and starting container parameters configuration file on node, to generate target WEB The container of application.
In conjunction with second of possible embodiment of second aspect, the embodiment of the invention provides the third of second aspect Possible embodiment, when operation instruction includes updating WEB application version or rollback WEB application version, the above method is also wrapped It includes: after the container for generating target WEB application, deleting pre-stored legacy version container in calculate node.
In conjunction with second aspect, the embodiment of the invention provides the 4th kind of possible embodiments of second aspect, wherein on It states and the accessible address of the container of target WEB application is passed into headend equipment, so that headend equipment is based in accessible address The step of frame target WEB application, comprising: be based on preset health examination interface, the container of operational objective WEB application is transported Row report;Judge whether operation report is abnormal;If not, end equipment sends operation success notification forward, and end equipment passes forward Pass the accessible address of the container of WEB application;If so, end equipment sends operation failure notice forward, and end equipment passes forward Pass operation report;Wherein, operation report includes run-time error information.
The third aspect, the embodiment of the invention provides a kind of installation device of WEB application, which is set to WEB application Restocking system headend equipment, which includes: CPK packet generation module, for based on preset CPK be packaged specification, by WEB Application source Document encapsulation generates CPK packet;It wherein, include the application range of CPK packet in CPK packet specification;Data uploading module is used It is cut in CPK packet, and the data file in CPK packet is uploaded into preset shared storage;Wherein, data file includes Using image file, application information file and starting container parameters configuration file;Upload notifications sending module is used for container cloud Send data upload notifications;Instruction obtains module, for obtaining and carrying out Self management after receiving from the synchronization notice of container cloud The operation instruction of member;Wherein, operation instruction includes application deployment, updates application version and rollback application version;Instruction sends mould Block, for sending operation instruction to container cloud, so that container cloud generates the container of target WEB application based on operation instruction;CPK packet Update module, for updating CPK packet when receiving the accessible address of container of the target WEB application from container cloud; WEB application determining module, for using updated CPK packet as target WEB application;Frame module in WEB application is used for restocking mesh Mark WEB application.
Fourth aspect, the embodiment of the invention provides the installation device of another WEB application, which is set to WEB and answers The container cloud of restocking system, which includes: upload notifications receiving module, for receiving the data from headend equipment Pass notice;Mirror image extracts memory module, applies image file for extracting from preset shared storage, and will be using mirror image text Part is stored to preset mirror image warehouse;Wherein, the shared file that storage is used for storage container cloud and headend equipment is shared;Shared text Part, which includes at least, applies image file;Mirror image synchronization module, for calculating will to be synchronized to using image file in mirror image warehouse Node, and end equipment sends synchronization notice forward;Image instance module, for receiving when by headend equipment from administrator Operation instruction when, in calculate node to the corresponding target application image file of operation instruction execute instantiation operation, with life At the container of target WEB application;Wherein, operation instruction includes deployment WEB application, updates WEB application version and rollback WEB application One of version is a variety of;Address sending module, for the accessible address of the container of target WEB application to be passed to front end Equipment, so that headend equipment is based on accessible address restocking target WEB application.
5th aspect, the embodiment of the invention provides a kind of restocking systems of WEB application, including headend equipment and container Cloud;Wherein, headend equipment and the communication connection of container cloud;The restocking for the WEB application that headend equipment setting is provided just like the third aspect Device, the installation device for the WEB application that the setting of container cloud is provided just like fourth aspect.
The embodiment of the invention provides the restocking method, apparatus and system of a kind of WEB application, are primarily based on CPK packet specification WEB application source file is packaged into CPK packet;By the interaction of headend equipment and container cloud, in the appearance of container cloud deployment WEB application Device updates CPK packet, restocking target WEB application when headend equipment receives the accessible address of container;And it is standardized by CPK packet The application range for defining CPK packet, can limit the access authority of user.This mode provided in an embodiment of the present invention effectively mentions The safety of WEB application service is risen.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the restocking method of WEB application provided in an embodiment of the present invention;
Fig. 2 is the process signal of the concrete methods of realizing of step S102 in method shown in Fig. 1 provided in an embodiment of the present invention Figure;
Fig. 3 is the flow chart of the restocking method of another WEB application provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart of WEB application deployment provided in an embodiment of the present invention;
Fig. 5 is the flow chart that a kind of WEB application provided in an embodiment of the present invention updates;
Fig. 6 is a kind of flow chart of WEB application rollback provided in an embodiment of the present invention;
Fig. 7 is a kind of structural block diagram of the installation device of WEB application provided in an embodiment of the present invention;
Fig. 8 is the structural block diagram of the installation device of another WEB application provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of the restocking system of WEB application provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Based on the safe and reliable ecosystem construction that domesticizes, need to construct a set of safe and efficient application software ecology clothes Business system, guarantee whole system in software application be it is safe and reliable, the application software in system be by safety verification simultaneously Effective monitoring can be obtained, the distribution deployment of convenient and efficient can be carried out in entire ecosystem.And usually pass through at present It builds the website WEB and provides application service for user, user may have access to service content in user terminal input address of service;Or Application service namely multipad are obtained by the application assistant that operator provides.Such mode does not limit use usually The access authority at family, safety is not high, is unsuitable for such as to need to be engaged in the group user of special business, special user provides and answers With service.Based on this, a kind of the restocking method, apparatus and system of WEB application provided in an embodiment of the present invention can be mentioned effectively Rise the safety of WEB application service.
For the restocking convenient for understanding the present embodiment, first to a kind of WEB application disclosed in the embodiment of the present invention Method describes in detail.
A kind of flow chart of the restocking method of WEB application shown in Figure 1, this method are applied to the restocking of WEB application The headend equipment of system, wherein the equipment that headend equipment can be a kind of offer application service is come equipped with input interface with receiving The operation instruction of Self management person;This method comprises the following steps:
Step S102 is packaged specification based on preset CPK, WEB application source file is encapsulated and generates CPK packet;Wherein, CPK It include the application range of CPK packet in packet specification;
Step S104 cuts CPK packet, and the data file in CPK packet is uploaded to preset shared storage;Its In, data file includes using image file, application information file and starting container parameters configuration file;Shared storage, refers to The same subregion namely shared file of the same storage equipment, in this way, more services can be read in multiple equipment Copy of the device without respectively saving file, to effectively save space resources.
Step S106 sends data upload notifications to container cloud;
Step S108 obtains the operation instruction from administrator after receiving from the synchronization notice of container cloud;Its In, operation instruction includes deployment WEB application, updates WEB application version and rollback WEB application version;
Step S110 sends operation instruction to container cloud, so that container cloud generates target WEB application based on operation instruction Container;
Step S112 updates CPK when receiving the accessible address of container of the target WEB application from container cloud Packet;
Step S114, using updated CPK packet as target WEB application;
Step S116, restocking target WEB application.
The embodiment of the invention provides a kind of restocking method of WEB application, this method is applied to the restocking system of WEB application Headend equipment, be primarily based on CPK packet specification and WEB application source file be packaged into CPK packet;By being interacted with container cloud, holding The container that device cloud deployment CPK packet corresponds to target WEB application is updated when receiving the accessible address of container by container cloud CPK packet;CPK packet is as target WEB application, the restocking target WEB application after updating;And it is standardized by CPK packet and defines CPK packet Application range, the access authority of user can be limited.The safety of WEB application service is effectively promoted.
For ease of understanding, above-mentioned steps S102, namely specification is packaged based on preset CPK, WEB application source file is encapsulated Generate CPK packet, comprising: allotment parameter manipulation is carried out to WEB application source file, so that WEB application source file is suitable for default test Demonstrate,prove environment;Wherein, it is consistent with the application environment of container cloud to preset verification environment;It is packaged and is standardized based on preset CPK, allotment is joined WEB application source file encapsulation after number generates CPK packet.Specifically, the embodiment of the invention also provides a kind of crowds to raise application verification Center;The crowd, which raises, is provided with a set of verification environment identical with container cloud application environment in application verification center;It is able to verify that simultaneously Allotment WEB application source file makes it that can normally start service on the verification environment.Application verification center is raised based on the crowd, this Inventive embodiments provide the specific implementation of step S102 in a kind of method shown in above-mentioned Fig. 1, shown in Figure 2, the party Formula includes the following steps:
Step (1), crowd raise application verification center developer and pass through to starting container parameters configuration file progress parameter allotment So that WEB application normally starts service on verification environment.
Step (2) exports final accordingly using middleware required for mirror image, database mirroring and deployment WEB application Mirror image and application information file etc..
Step (3) is fabricated to the CPK packet of WEB application by being packaged order or strapping tool according to CPK packet specification.
Wherein, above-mentioned CPK packet specification is that a kind of customized software installation packet similar to rpm, deb packet under linux is advised Model.After the verifying WEB application that crowd raises application verification center can be disposed normally, operator packs work according to WEB application CPK Specification throws the files such as the WEB application mirror image of generation in CPK packet into.The CPK packet directory standard of WEB application is as shown in table 1 below:
Table 1
Wherein, such as package.json describes the essential information of CPK cannonical format application.Including the unique of application Indicate ID, Apply Names, version, classification, framework etc..WEB application generates it according to the cannonical format and content Package.json file.
In addition, without influencing its subsequent applications, executing above-mentioned steps to ensure that above-mentioned CPK packet meets CPK packet specification S104, namely CPK packet is cut, and the data file in CPK packet is uploaded to before preset shared storage to CPK packet Safety certification parsing is carried out, judges whether meet CPK packet rule using files such as description information, icon, screenshots in CPK packet Model;If so, certification CPK includes lattice, it is cut, and CPK packet will be cut, and the data in CPK packet are literary Part uploads to preset shared storage, and names according to the catalogue normal constraint of such as the following table 2:
Table 2
Based on catalogue specification shown in above-mentioned table 2, above-mentioned steps S106 is executed, namely sends data to container cloud and uploads and lead to When knowing;Comprising corresponding to unique mark ID of CPK packet in the application information file that is uploaded by headend equipment in notice, version number and its Store path in default shared storage, after receiving the notice in order to container cloud, according to above-mentioned ID, version number and storage road Diameter rapidly finds corresponding using image file, and the operational paradigm of container cloud is effectively promoted.
Further, the embodiment of the invention also provides the restocking method of another WEB application, this method is answered applied to WEB The container cloud of restocking system, referring to Fig. 3, this method comprises the following steps:
Step S302 receives the data upload notifications from headend equipment;
Step S304 is extracted from preset shared storage and is applied image file, and will be stored using image file to pre- If mirror image warehouse;Wherein, the shared file that storage is used for storage container cloud and headend equipment is shared;Shared file includes at least Using image file;
Step S306 will be synchronized to calculate node using image file in mirror image warehouse, and end equipment is sent together forward Step notice;
Step S308, when receiving the operation instruction from administrator by headend equipment, to operation in calculate node Indicate that corresponding target application image file executes instantiation operation, to generate the container of target WEB application;Wherein, operation refers to Show including deployment WEB application, update one of WEB application version and rollback WEB application version or a variety of;
The accessible address of the container of target WEB application is passed to headend equipment by step S310, so that headend equipment base In accessible address restocking target WEB application.
The restocking method of above-mentioned another WEB application provided in an embodiment of the present invention, this method are applied to the upper of WEB application The container cloud of frame system, by the interaction with headend equipment, the data upload notifications of receiving front-end equipment first are shared to default It is extracted in storage and applies image file, be synchronized to calculate node after mirror image warehouse being stored in using image file.Before passing through When end equipment receives the operation instruction from administrator, instantiation generates target WEB using image file in calculate node The container of application, and the accessible address of the container is passed into aforementioned device, so that aforementioned device can be based in this address Frame target WEB application.Aforesaid way based on the embodiment of the present invention, administrator only need to send out by headend equipment to container cloud Operation instruction is sent, the container of target WEB application can be generated fast automaticly in container cloud, greatly simplifie the behaviour of administrator Make;Meanwhile WEB application being isolated in the calculate node for being deployed in container cloud in the form of container, WEB application is effectively promoted The safety of service.
Specifically, above-mentioned shared file further includes application information file and starting container parameters configuration file.Based on this, on State be previously mentioned in step S308 in calculate node to the corresponding target application image file of operation instruction execute instantiation behaviour Make, to generate the container of target WEB application, reference can be made to following steps execute:
Step (1) searches target application image file corresponding with operation instruction in calculate node;
Step (2), extracts application information file corresponding with target application image file from shared file and starting is held Device parameter configuration files;
The application information file of extraction and starting container parameters configuration file are synchronized to calculate node by step (3);
Step (4) instantiates target according to application information file and starting container parameters configuration file in calculate node Image file, to generate the container of target WEB application.It wherein, include application ID and application version number in application information file.
Further, it is the resource in guarantee reasonable distribution calculate node, current unwanted container should be deleted in time, therefore When operation instruction includes updating WEB application version or rollback WEB application version, the above-mentioned method applied to container cloud is also wrapped It includes: after the container for generating target WEB application, deleting pre-stored legacy version container in calculate node.Specifically, when operation When being designated as updating WEB application version, the lowest version container in calculate node is deleted;When operation instruction is rollback WEB application version This when, deletes the highest version container in calculate node.
In addition, the embodiment of the invention also provides the specific embodiments of above-mentioned steps S310 a kind of, also i.e. by target WEB The accessible address of the container of application passes to headend equipment, so that headend equipment is based on accessible address restocking target WEB and answers With the step of, comprising:
Step (1), is based on preset health examination interface, and the container of operational objective WEB application obtains operation report;
Step (2) judges whether operation report is abnormal;If not, executing step (3);If so, executing step (4);
Step (3), forward end equipment send operation success notification, and forward end equipment transmitting WEB application container can Access address;
Step (4), end equipment sends operation failure notice forward, and end equipment transmitting operation report forward;Wherein, it runs Report includes run-time error information.
The specific embodiment of above-mentioned steps S310 provided in an embodiment of the present invention is transmitted by the accessible address of container Before headend equipment, whether it is operating abnormally by the container that health examination interface verifies target WEB application, facilitates WEB and answer With the subsequent stable operation of restocking;And end equipment transmitting operation report forward when abnormal, convenient for developer according to the operation Report is checked in time and corrects mistake source.
It further, is the restocking method of above-mentioned WEB application convenient to carry out, the operation instruction according to administrator is different, this hair The process and Fig. 6 institute that process, the WEB application shown in fig. 5 that bright embodiment provides WEB application deployment as shown in Figure 4 update The process for the WEB application rollback shown.Wherein, following branch centers namely above-mentioned headend equipment;It is provided in the branch center for management Member sends the operation button of operation instruction, such as deployment button, more new button and rollback button, can be realized a key and disposes, more New and rollback WEB application, greatly improves the operating experience of administrator.Detailed process description is as follows:
(1) WEB application disposes process
WEB application dispose process as shown in figure 5, specific steps are as follows:
Step (1), container cloud are receiving the relevant image file of WEB application to be disposed and are being synchronized to calculate node Afterwards, notice branch center can carry out next step deployment operation.Branch center can click " deployment " in one key of WEB application administration interface Button sends the notice of deployment WEB application to container cloud.
Step (2), container cloud pull JOSN file from shared storage;Wherein, JOSN file includes application information file With start-up parameter file, WEB application image file namely application deployment are instantiated in calculate node, by health examination success Deployment success notification, and the accessible address applied to branch center transmitting are sent to branch center afterwards;If health examination is unsuccessful, Deployment failure notification is sent to branch center, and error reason is passed into branch center.
Step (3), branch center are visited after the application deployment success message for obtaining the transmitting of container cloud to the application of its storage inside It asks address, database is written and applies description information configuration file, and CPK packet catalogue (this mesh that will be parsed when application imports New WEB application access address is had been written into using description information configuration file under record) remake into WEB application CPK packet (no Associated documents containing mirror image).
Step (4) after WEB application CPK packet is remake in branch center, is automatically set as using restocking state.
Abnormality processing: if branch center receives WEB application deployment failure notification, interface display application state is that " deployment is lost Lose ", operation button is switched to " redeploying ".Collect the specific original for the WEB application deployment failure transmitted from container cloud in branch center Because being solved for administrator's reference.After solving to dispose failure cause, branch center is clicked and is redeployed, and can carry out deployment behaviour again Make.
(2) WEB application more new technological process
WEB application more new technological process as shown in fig. 6, specific steps are as follows:
Step (1), container cloud are receiving the relevant highest version image file of WEB application to be updated and are being synchronized to meter After operator node, notice branch center can carry out updating operation in next step.Branch center can be clicked in one key of WEB application administration interface Update button sends the notice for updating WEB application to container cloud.
Step (2), container cloud pull the JOSN file of corresponding highest version image file from shared storage;Wherein, JOSN File includes application information file and start-up parameter file, instantiates highest version WEB application mirror image, namely deployment in calculate node Using (highest version);The example (that is, aforesaid receptacle) of legacy version WEB application is deleted after deployment success, while by health inspection It is sent after looking into successfully to branch center and is updated successfully notice, and transmit the accessible address of highest version WEB application to branch center;If Health examination is unsuccessful, sends to branch center and updates failure notification, and error reason is passed to branch center.
Step (3), branch center are visited after the update application success message for obtaining the transmitting of container cloud to the application of its storage inside It asks address, database is written and applies description information configuration file, and CPK packet catalogue (this mesh that will be parsed when application imports New WEB application access address is had been written into using description information configuration file under record) remake into WEB application CPK packet (no Associated documents containing mirror image), while deleting the WEB application CPK packet of legacy version.
Step (4) after highest version WEB application CPK packet is remake in branch center, is automatically set as using restocking state.
Abnormality processing: if branch center receives WEB application and updates failure notification, interface display application state is " to update and lose Lose ", operation button is switched to " update ".Collect the concrete reason confession that the WEB application transmitted from container cloud updates failure in branch center Administrator is with reference to solution.After solving to update failure cause, branch center is clicked to be updated again, can be updated operation again.
(3) WEB application rollback process
WEB application rollback process as indicated with 6, specific steps are as follows:
Step (1), after the completion of WEB application updates operation, application management interface operation button in branch center switches to version can Rollback mode.Administrator clicks rollback version, sends version update notification to container cloud.
Step (2), container cloud pull the JOSN file of corresponding lowest version image file from shared storage;Wherein, JOSN File includes application information file and start-up parameter file, instantiates lowest version WEB application mirror image, namely deployment in calculate node Using (lowest version), highest version WEB application example is deleted after deployment success, while sending out after health examination success to branch center It sends rolling success notification back to, and transmits the accessible address of lowest version WEB application to branch center;If health examination is unsuccessful, to Branch center sends rollback failure notification, and error reason is passed to branch center.
Step (3), branch center internally store application access after obtaining the application rollback success message of container cloud transmitting Address is written database and applies description information configuration file, and CPK packet catalogue (this catalogue that will be parsed when application imports Under new WEB application access address is had been written into using description information configuration file) remake into WEB application CPK packet and (be free of Mirror image associated documents), while deleting the WEB application CPK packet of legacy version.
Step (4) after current version WEB application CPK packet is remake in branch center, is automatically set as using restocking state. The application assistant that terminal user can log in desktop, which downloads, updates WEB application software installation packet.After installing successfully, desktop will appear The shortcut of WEB application, user, which clicks, then can quickly access highest version WEB application service.
Abnormality processing: if branch center receives WEB application rollback failure notification, interface display application state is that " rollback is lost Lose ", operation button is switched to " rollback ".The concrete reason that the WEB application rollback failure transmitted from container cloud is collected in branch center supplies Administrator is with reference to solution.After solving rollback failure cause, rollback is clicked in branch center, can carry out rolling back action again.
In addition, holding to solve deployment or operating status stationary problem between branch center and the WEB application of container cloud deployment Device cloud provides the execution status inquiry interface for obtaining the specified corresponding application example of WEB application ID version number, and branch center is called should Interface obtains the application execution state or container cloud of the current version application container of container cloud deployment/update/rollback or operation The state of the current version application mirror image of upload.When practical application, on visualization interface, branch center also provides " synchronous regime " Operation entry is to support branch center an operation manager to synchronize the current all WEB applications deployment for importing branch center in time, update, return Rolling and operating status, and extremely deployment or operating status under obtain deployment or operation failure cause quickly to position, in time Investigation.
The above method provided in an embodiment of the present invention, can be realized WEB application software deployment restocking operation is simple, operation can It leans on, easy to maintain.The maintenance managements approach such as system deployment, upgrading is provided for independent software vendor, system integrator's application etc., Reduce maintenance cost;Convenient interactive supervision mode is provided for custom system administrator, is able to ascend system maintenance management efficiency.
Further, corresponding above-mentioned a kind of restocking method of WEB application shown in FIG. 1, referring to Fig. 7, the embodiment of the present invention is mentioned A kind of installation device of WEB application is supplied, which is applied to the headend equipment of the restocking system of WEB application, which includes:
WEB application source file is encapsulated for being packaged specification based on preset CPK and generates CPK by CPK packet generation module 702 Packet;It wherein, include the application range of CPK packet in CPK packet specification;
Data uploading module 704 for cutting to CPK packet, and the data file in CPK packet is uploaded to preset Shared storage;Wherein, data file includes using image file, application information file and starting container parameters configuration file;
Upload notifications sending module 706, for sending data upload notifications to container cloud;
Instruction obtains module 708, for obtaining the behaviour from administrator after receiving from the synchronization notice of container cloud It indicates;Wherein, operation instruction includes application deployment, updates application version and rollback application version;
Sending module 710 is indicated, for sending operation instruction to container cloud, so that container cloud is based on operation instruction and generates mesh Mark the container of WEB application;
CPK packet update module 712, for when receive the target WEB application from container cloud container addressablely When location, CPK packet is updated;
WEB application determining module 714, for using updated CPK packet as target WEB application;
Frame module 716 in WEB application are used for restocking target WEB application.
Above-mentioned a kind of installation device of WEB application provided in an embodiment of the present invention, is set to headend equipment, is primarily based on CPK packet generation module generates CPK packet;It is interacted by headend equipment with container cloud, corresponds to target WEB in container cloud deployment CPK packet The container of application updates CPK packet when receiving the accessible address of container by container cloud;CPK packet is as mesh after updating Mark WEB application, the restocking target WEB application;And the application range for defining CPK packet is standardized by CPK packet, it can limit user's Access authority.The safety of WEB application service is effectively promoted.
The restocking method of corresponding above-mentioned another WEB application shown in Fig. 3, referring to Fig. 8, the embodiment of the invention provides another A kind of installation device of WEB application, the device are applied to the container cloud of the restocking system of WEB application, which includes:
Upload notifications receiving module 802, for receiving the data upload notifications from headend equipment;
Mirror image extracts memory module 804, applies image file for extracting from preset shared storage, and will apply mirror As file storage to preset mirror image warehouse;Wherein, the shared file that storage is used for storage container cloud and headend equipment is shared;Altogether File is enjoyed to include at least using image file;
Mirror image synchronization module 806, for calculate node, and forward end will to be synchronized to using image file in mirror image warehouse Equipment sends synchronization notice;
Image instance module 808, for calculating when receiving the operation instruction from administrator by headend equipment Instantiation operation is executed to the corresponding target application image file of operation instruction on node, to generate the container of target WEB application; Wherein, operation instruction includes deployment WEB application, updates one of WEB application version and rollback WEB application version or a variety of;
Address sending module 810, for the accessible address of the container of target WEB application to be passed to headend equipment, with Headend equipment is set to be based on accessible address restocking target WEB application.
The installation device of the above-mentioned another WEB application provided through the embodiment of the present invention, administrator only need to pass through front end Equipment sends operation instruction to container cloud, can automatically generate the container of target WEB application in container cloud;Meanwhile by WEB application It is isolated in the form of container and is deployed in the calculate node of container cloud, the safety of WEB application service is effectively promoted.
The technical effect of device provided by the present embodiment, realization principle and generation is identical with previous embodiment, for letter It describes, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
Further, correspond to the above method and device, the embodiment of the invention also provides a kind of restocking systems of WEB application System, referring to Fig. 9, which includes headend equipment 902 and container cloud 904;It is provided in headend equipment 902 above-mentioned shown in Fig. 7 A kind of installation device of WEB application is provided with the installation device of above-mentioned another WEB application shown in Fig. 8 in container cloud 904. Headend equipment in the system is similar with above embodiments with the function that container cloud has, and I will not elaborate.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, section or code of table, a part of the module, section or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually base Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, can uses and execute rule The dedicated hardware based system of fixed function or movement is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition Concrete meaning in invention.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of restocking method of WEB application, which is characterized in that the method is applied to the front end of the restocking system of WEB application Equipment, which comprises
It is standardized based on preset CPK packet, WEB application source file is encapsulated and generates CPK packet;Wherein, include in the CPK packet specification There is the application range of the CPK packet;
The CPK packet is cut, and the data file in the CPK packet is uploaded into preset shared storage;Wherein, institute Stating data file includes using image file, application information file and starting container parameters configuration file;
Data upload notifications are sent to container cloud;
After receiving from the synchronization notice of the container cloud, the operation instruction from administrator is obtained;Wherein, the operation Instruction includes deployment WEB application, updates WEB application version and rollback WEB application version;
The operation instruction is sent to the container cloud, so that the container cloud is based on operation instruction generation target WEB and answers Container;
When receiving the accessible address of container of the target WEB application from the container cloud, the CPK packet is updated;
Using the updated CPK packet as target WEB application;
Target WEB application described in restocking.
2. the method according to claim 1, wherein specification is packaged based on preset CPK, by WEB application source document The step of part encapsulation generates CPK packet, comprising:
Allotment parameter manipulation is carried out to WEB application source file, so that WEB application source file is suitable for default verification environment;Wherein, The default verification environment is consistent with the application environment of the container cloud;
It is packaged and is standardized based on preset CPK, the WEB application source file encapsulation after allotment parameter is generated into CPK packet.
3. a kind of restocking method of WEB application, which is characterized in that the method is applied to the container of the restocking system of WEB application Cloud, which comprises
Receive the data upload notifications from headend equipment;
It is extracted from preset shared storage and applies image file, and the application image file is stored to preset mirror image storehouse Library;Wherein, the shared shared file stored for storing the container cloud and the headend equipment;The shared file is extremely It less include described using image file;
Calculate node will be synchronized to using image file in the mirror image warehouse, and synchronize to headend equipment transmission logical Know;
When receiving the operation instruction from administrator by the headend equipment, the operation is referred in the calculate node Show that corresponding target application image file executes instantiation operation, to generate the container of target WEB application;Wherein, the operation Instruction includes deployment WEB application, updates one of WEB application version and rollback WEB application version or a variety of;
The accessible address of the container of the target WEB application is passed into the headend equipment, so that the headend equipment base The target WEB application described in the accessible address restocking.
4. according to the method described in claim 3, it is characterized in that, the shared file further includes application information file and starting Container parameters configuration file.
5. according to the method described in claim 4, it is characterized in that, it is described in the calculate node to the operation instruction pair The step of target application image file answered executes instantiation operation, container to generate target WEB application, comprising:
Target application image file corresponding with the operation instruction is searched in the calculate node;
Corresponding with the target application image file application information file is extracted from the shared file and described is opened Visibly moved device parameter configuration files;
The application information file of extraction and the starting container parameters configuration file are synchronized to the calculate node;
Target is instantiated according to the application information file and the starting container parameters configuration file in the calculate node Image file, to generate the container of target WEB application.
6. according to the method described in claim 5, it is characterized in that, when the operation instruction include update WEB application version or When rollback WEB application version, the method also includes:
After the container for generating the target WEB application, pre-stored legacy version container in the calculate node is deleted.
7. according to the method described in claim 3, it is characterized in that, the container by the target WEB application may have access to Address passes to the headend equipment, so that the headend equipment is based on target WEB application described in the accessible address restocking The step of, comprising:
Based on preset health examination interface, the container of operational objective WEB application obtains operation report;
Judge whether the operation report is abnormal;
If not, sending operation success notification to the headend equipment, and the appearance of the WEB application is transmitted to the headend equipment The accessible address of device;
If so, sending operation failure notice to the headend equipment, and operation report is transmitted to the headend equipment;Wherein, The operation report includes run-time error information.
8. a kind of installation device of WEB application, which is characterized in that described device is set to the front end of the restocking system of WEB application Equipment, described device include:
WEB application source file is encapsulated for being packaged specification based on preset CPK and generates CPK packet by CPK packet generation module;Its In, it include the application range of the CPK packet in the CPK packet specification;
Data uploading module for cutting to the CPK packet, and the data file in the CPK packet is uploaded to default Shared storage;Wherein, the data file includes using image file, application information file and starting container parameters configuration text Part;
Upload notifications sending module, for sending data upload notifications to container cloud;
Instruction obtains module, for obtaining the operation from administrator after receiving from the synchronization notice of the container cloud Instruction;Wherein, the operation instruction includes application deployment, updates application version and rollback application version;
Sending module is indicated, for sending the operation instruction to the container cloud, so that the container cloud is based on the operation Indicate the container of generation target WEB application;
CPK packet update module, for the accessible address when the container for receiving the target WEB application from the container cloud When, update the CPK packet;
WEB application determining module, for using the updated CPK packet as target WEB application;
Frame module in WEB application, for target WEB application described in restocking.
9. a kind of installation device of WEB application, which is characterized in that described device is set to the container of the restocking system of WEB application Cloud, described device include:
Upload notifications receiving module, for receiving the data upload notifications from headend equipment;
Mirror image extracts memory module, applies image file for extracting from preset shared storage, and apply mirror image for described File is stored to preset mirror image warehouse;Wherein, the shared storage is for storing the container cloud and the headend equipment Shared file;The shared file includes at least described using image file;
Mirror image synchronization module, for calculate node will to be synchronized to using image file in the mirror image warehouse, and to before described End equipment sends synchronization notice;
Image instance module, for when receiving operation instruction from administrator by the headend equipment, in the meter Instantiation operation is executed to the corresponding target application image file of the operation instruction on operator node, to generate target WEB application Container;Wherein, the operation instruction includes deployment WEB application, updates in WEB application version and rollback WEB application version It is one or more;
Address sending module, for the accessible address of the container of the target WEB application to be passed to the headend equipment, with The headend equipment is set to be based on target WEB application described in the accessible address restocking.
10. a kind of restocking system of WEB application, which is characterized in that including headend equipment and container cloud;Wherein, the front end is set The standby and described container cloud communication connection;
The headend equipment is provided with the installation device of WEB application as claimed in claim 8, and the container cloud is arranged just like power Benefit require 9 described in WEB application installation device.
CN201810952359.7A 2018-08-20 2018-08-20 Method, device and system for putting WEB application on shelf Active CN109167826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810952359.7A CN109167826B (en) 2018-08-20 2018-08-20 Method, device and system for putting WEB application on shelf

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810952359.7A CN109167826B (en) 2018-08-20 2018-08-20 Method, device and system for putting WEB application on shelf

Publications (2)

Publication Number Publication Date
CN109167826A true CN109167826A (en) 2019-01-08
CN109167826B CN109167826B (en) 2021-05-07

Family

ID=64896276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810952359.7A Active CN109167826B (en) 2018-08-20 2018-08-20 Method, device and system for putting WEB application on shelf

Country Status (1)

Country Link
CN (1) CN109167826B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656100A (en) * 2021-08-17 2021-11-16 城云科技(中国)有限公司 Interface switching method and device, electronic device and computer program product

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730025B1 (en) * 2004-11-30 2010-06-01 Oracle America, Inc. Migrating documents
CN104052769A (en) * 2013-03-13 2014-09-17 金蝶软件(中国)有限公司 Method, apparatus and system for updating resources contained by mobile terminal application
CN104516738A (en) * 2014-12-15 2015-04-15 北京金和软件股份有限公司 Integrated implementing method for development and release of APP
CN105224326A (en) * 2015-09-30 2016-01-06 北京恒华伟业科技股份有限公司 A kind of incremental deploying method of system code and device
CN105407088A (en) * 2015-10-28 2016-03-16 成都快发助手科技有限公司 Game shelf hitting method and device
CN105631196A (en) * 2015-12-22 2016-06-01 中国科学院软件研究所 Microservice-oriented container level flexible resource supply system and method
CN106155751A (en) * 2016-08-02 2016-11-23 传线网络科技(上海)有限公司 Application packing and issuing method and device
CN106371849A (en) * 2016-09-18 2017-02-01 网易(杭州)网络有限公司 Application data processing method and device
CN107248946A (en) * 2017-05-11 2017-10-13 北京潘达互娱科技有限公司 Application installation package sending method and device
CN108089865A (en) * 2017-12-04 2018-05-29 北京小米移动软件有限公司 Using method of cutting out, device and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730025B1 (en) * 2004-11-30 2010-06-01 Oracle America, Inc. Migrating documents
CN104052769A (en) * 2013-03-13 2014-09-17 金蝶软件(中国)有限公司 Method, apparatus and system for updating resources contained by mobile terminal application
CN104516738A (en) * 2014-12-15 2015-04-15 北京金和软件股份有限公司 Integrated implementing method for development and release of APP
CN105224326A (en) * 2015-09-30 2016-01-06 北京恒华伟业科技股份有限公司 A kind of incremental deploying method of system code and device
CN105407088A (en) * 2015-10-28 2016-03-16 成都快发助手科技有限公司 Game shelf hitting method and device
CN105631196A (en) * 2015-12-22 2016-06-01 中国科学院软件研究所 Microservice-oriented container level flexible resource supply system and method
CN106155751A (en) * 2016-08-02 2016-11-23 传线网络科技(上海)有限公司 Application packing and issuing method and device
CN106371849A (en) * 2016-09-18 2017-02-01 网易(杭州)网络有限公司 Application data processing method and device
CN107248946A (en) * 2017-05-11 2017-10-13 北京潘达互娱科技有限公司 Application installation package sending method and device
CN108089865A (en) * 2017-12-04 2018-05-29 北京小米移动软件有限公司 Using method of cutting out, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656100A (en) * 2021-08-17 2021-11-16 城云科技(中国)有限公司 Interface switching method and device, electronic device and computer program product

Also Published As

Publication number Publication date
CN109167826B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
US20180307472A1 (en) Simultaneous deployment on cloud devices and on on-premise devices
CN108768728A (en) O&M task processing method, device, computer equipment and storage medium
CN106843976B (en) Method and apparatus for generating image file
CN107967143A (en) Obtain the methods, devices and systems of the update instruction information of client application source code
US20230319054A1 (en) Tenant-specific solution subscriptions for an extensibility platform
CN112860282B (en) Cluster plug-in upgrading method, device and server
US20220103555A1 (en) Service deployment method, device, system, and computer-readable storage medium
CN111580833A (en) Application updating method and system, local management agent device and cloud server
KR101086620B1 (en) Server and operation method for smart office system and operation
US11924284B1 (en) Automated security, orchestration, automation, and response (SOAR) app generation based on application programming interface specification data
US20230315418A1 (en) Flexible meta model (fmm) for an extensibility platform
US20230315428A1 (en) Extensibility platform
CN113138886A (en) Method and device for testing embedded equipment and testing equipment
CN113312083A (en) Application generation method, device and equipment
CN113535220B (en) Code packet management method and device
CN109167826A (en) The restocking method, apparatus and system of WEB application
CN118466932A (en) Template configuration method and system for low-code platform and electronic equipment
CN110209409B (en) Customization method and system of application product and storage medium
CN112130889A (en) Resource management method and device, storage medium and electronic device
CN115567596B (en) Cloud service resource deployment method, device, equipment and storage medium
WO2023192418A1 (en) An extensibility platform
CN111026413B (en) Requirement-oriented complex system 'pull' mode deployment system and method thereof
CN109683920A (en) One kind being based on unity program arranging method and system
CN111581256B (en) Interaction method and system for intelligent measurement terminal application program
CN109814911A (en) Method, apparatus, computer equipment and storage medium for managing script programs

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