CN108521458B - Application platform access method and device - Google Patents

Application platform access method and device Download PDF

Info

Publication number
CN108521458B
CN108521458B CN201810295459.7A CN201810295459A CN108521458B CN 108521458 B CN108521458 B CN 108521458B CN 201810295459 A CN201810295459 A CN 201810295459A CN 108521458 B CN108521458 B CN 108521458B
Authority
CN
China
Prior art keywords
application
identification information
software package
uploaded
container mirror
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.)
Active
Application number
CN201810295459.7A
Other languages
Chinese (zh)
Other versions
CN108521458A (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.)
New H3C Cloud Technologies Co Ltd
Original Assignee
New H3C Cloud Technologies 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 New H3C Cloud Technologies Co Ltd filed Critical New H3C Cloud Technologies Co Ltd
Priority to CN201810295459.7A priority Critical patent/CN108521458B/en
Publication of CN108521458A publication Critical patent/CN108521458A/en
Application granted granted Critical
Publication of CN108521458B publication Critical patent/CN108521458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention relates to the technical field of cloud computing, and provides an application platform access method and an application platform access device, which are applied to a PaaS cloud platform, wherein a container mirror image warehouse and a software package warehouse are pre-created in the application platform, and the method comprises the following steps: acquiring an access request of a user to an application platform, wherein the access request comprises the type of an application to be accessed; and when the type of the application to be accessed is a software package, calling an interface of a software package warehouse to enable the software package warehouse to respond to the access request. Compared with the prior art, the application platform provided by the embodiment of the invention can be compatible with two applications, namely the container mirror image application and the software package application, meets the requirements of a user on using the two applications, and improves the user experience.

Description

Application platform access method and device
Technical Field
The embodiment of the invention relates to the technical field of cloud computing, in particular to an application platform access method and device.
Background
The Platform as a Service (PaaS) cloud Platform simplifies the development, delivery and operation processes of the application, provides the application as a Service for users, and greatly improves the capability of the users in deploying, operating and expanding the application through the PaaS Service. An application storage warehouse is configured on the PaaS cloud platform, and the application storage warehouse uniformly collects, packages and releases all applications, so that the PaaS cloud platform can provide high-quality applications which can be directly deployed in real time for users.
At present, an application storage warehouse generally refers to a container mirror image warehouse for storing container mirror images, a user can deploy the container mirror images in real time by using the application storage warehouse, the container mirror images comprise an operating system, a runtime environment and application programs, and when the user only needs the application programs, the application storage warehouse cannot be compatible with traditional software package applications, so that the requirement of the user cannot be met, and a great deal of inconvenience is brought to the user.
Disclosure of Invention
The embodiment of the invention aims to provide an application platform access method and device, which are used for solving the problem that the existing application storage warehouse cannot be compatible with software package applications.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides an application platform access method, which is applied to a platform as a service, PaaS, cloud platform, where a container mirror repository and a software package repository are created in advance in the application platform, and the method includes: acquiring an access request of a user to the application platform, wherein the access request comprises the type of an application to be accessed; when the type of the application to be accessed is a container mirror image, calling an interface of the container mirror image warehouse to enable the container mirror image warehouse to respond to the access request, and when the type of the application to be accessed is a software package, calling an interface of the software package warehouse to enable the software package warehouse to respond to the access request.
In a second aspect, an embodiment of the present invention further provides an application platform access apparatus, which is applied to a platform as a service, PaaS, cloud platform, where the application platform is created with a container mirror repository and a software package repository in advance, and the apparatus includes an access request acquisition module and an application management module. The access request acquisition module is used for acquiring an access request of a user to the application platform, wherein the access request comprises the type of an application to be accessed; the application management module is used for calling an interface of the container mirror image warehouse to enable the container mirror image warehouse to respond to the access request when the type of the application to be accessed is a container mirror image, and calling an interface of the software package warehouse to enable the software package warehouse to respond to the access request when the type of the application to be accessed is a software package.
Compared with the prior art, the application platform provided by the embodiment of the invention can be compatible with the two applications of the container mirror image and the software package, so that the requirement of the user for using the two applications is met, and the user experience is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a block schematic diagram of a PaaS cloud platform provided in an embodiment of the present invention.
Fig. 2 is a block diagram illustrating an application platform according to an embodiment of the present invention.
Fig. 3 shows a flowchart of an application platform access method provided by an embodiment of the present invention.
Fig. 4 is a block diagram illustrating a server provided by an embodiment of the present invention.
Fig. 5 is a block diagram illustrating an application platform access apparatus according to an embodiment of the present invention.
Icon: 10-PaaS cloud platform; 20-a server; 30-an external storage device; 40-an application platform; 50-background database; 41-container mirror image warehouse; 42-software package repository; 43-visual graphical interface; 201-a processor; 202-a memory; 203-bus; 204-a communication interface; 300-application platform access means; 301-access request acquisition module; 302-a data management module; 303-application management module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 shows a block schematic diagram of a PaaS cloud platform 10 according to an embodiment of the present invention. The PaaS cloud platform 10 includes at least one server 20 and an external storage device 30 communicatively connected to each of the at least one server 20, and the external storage device 30 is dedicated to storage resources, can be used by a plurality of servers 20 at the same time, and is shared among the plurality of servers 20. The server 20 may be a physical server, a cloud server, or the like. The external storage device 30 may use centralized storage or distributed storage, and in the embodiment of the present invention, the external storage device 30 is used for applications including container images and software packages.
In the embodiment of the present invention, the server 20 is configured with an application platform 40 and a background database 50. Referring to fig. 2, fig. 2 is a block schematic diagram illustrating an application platform 40 according to an embodiment of the present invention, where the application platform 40 includes a container mirror repository 41, a software package repository 42, a visual graphical interface 43, and an application platform access device 300.
The container image repository 41 and the software package repository 42 each store an application to the external storage device 30, that is, the container image repository 41 stores a container image and the software package repository 42 stores a software package to the external storage device 30.
The background database 50 is used for storing user tables, role tables, metadata tables and the like of the application platform 40, wherein user information, authority information, and metadata corresponding to the container image and the software package are correspondingly stored in the tables.
The visual graphical interface 43 is used for realizing interaction between the application platform 40 and a user, the visual graphical interface 43 may be provided with, but not limited to, options such as "upload", "download", "deploy", "operation and maintenance", and the like, and the user may directly click the options such as "upload", "download", "deploy", "operation and maintenance" and the like on the visual graphical interface 43 to complete related operations such as upload, download, deployment, operation and maintenance and the like of the application in the application platform 40, wherein the operation and maintenance operations include operations such as application loading, application unloading, version update, deletion and the like. Therefore, the difficulty of using the application platform 40 by the user can be reduced through the visual graphical interface 43, and the use efficiency of the PaaS cloud platform 10 by the user is improved.
The application platform accessing device 300 is used for uniformly managing the container mirror repository 41, the software package repository 42 and the visual graphical interface 43 so as to realize the access of the user to the application platform 40.
In the embodiment of the present invention, the construction process of the application platform 40 may include, but is not limited to, firstly, constructing a container mirror repository 41 on the server 20, where the container mirror repository 41 may be constructed based on Docker Registry; then, a background database 50 is added to the server 20, a user table, a role table, a metadata table and the like are added to the background database 50, and the background database 50 may be, but is not limited to, a MySQL database; next, another partition on the server 20 different from the container mirror repository 41 is used as a software package repository 42, and a visual graphical interface 43 is designed to realize the interaction of the user with the application platform 40; finally, the application platform accessing device 300 is used to perform unified management on the container mirror image repository 41, the software package repository 42, the visual graphical interface 43 and the background database 50, so as to implement access of the user to the application platform 40, which is described in detail below.
First embodiment
Referring to fig. 2, fig. 4 is a flowchart illustrating an application platform access method according to an embodiment of the present invention. The application platform access method comprises the following steps:
step S101, obtaining an access request of a user to the application platform, wherein the access request comprises the type of an application to be accessed.
In the embodiment of the present invention, the user may send an access request to the application platform 40 through the visual graphical interface 43, where the access request may be, but is not limited to, a confirmation instruction for the user to access the application on the application platform 40. The type of the application to be accessed may be a container image or a software package, the application platform 40 obtains an access request of the user to the application platform 40 through the visual graphical interface 43, that is, the user may select an application with the application type being the container image or the software package through the visual graphical interface 43 for access.
In the embodiment of the present invention, the access request is sent after the user logs in the application platform 40 and performs the authority authentication, that is, after the application platform 40 performs the authority authentication on the user, the user can send the access request through the visual graphical interface 43. The method for the application platform 40 to authenticate the authority of the user may be:
firstly, acquiring the identity information of a user, judging whether the user information consistent with the identity information exists in a user table pre-stored in a background database 50, and if so, passing the identity authentication;
then, after the identity authentication is passed, according to the user information consistent with the identity information, authority information corresponding to the user information is searched in the role table, namely, role authentication is carried out on the user to determine the access authority of the user to the application platform 40, wherein the authority information prestored in the role table comprises development authority, use authority and management authority;
finally, after the role authentication of the user is completed, according to the access authority of the user to the application platform 40, the operation that the user can perform in the access authority is displayed through the visual graphical interface 43, for example, the name of the application that the user can view or download is displayed.
In the embodiment of the present invention, the access request of the user to the application platform 40 may include, but is not limited to, an application uploading request, an application downloading request, an application deploying request, and an operation and maintenance application request, and after the access request of the user to the application platform 40 is obtained, a response to the access request is required.
In this embodiment, a specific response process of the application request is first introduced, and when the access request is an application request to be uploaded, the application platform access method may further include steps S102 to S104.
Step S102, when the access request is an uploading application request and the uploading application request provides the name of the application to be uploaded, obtaining the metadata corresponding to the application to be uploaded.
In the embodiment of the present invention, the application uploading request may be a confirmation instruction for the user to perform an application uploading operation on the application platform 40, when the application needs to be uploaded to the application platform 40, the user may click an uploading option set on the visual graphical interface 43, after the click, the visual graphical interface 43 pops up a popup window prompting the user to select a type of the application to be uploaded, and the type of the application to be uploaded may include a container mirror image and a software package.
After the user selects the type of the application to be uploaded, the visual graphical interface 43 pops up a popup prompting the user to input basic information, configuration information, and a runtime environment of the application to be uploaded, wherein the basic information may include, but is not limited to, the name, public availability, version information, application tags, application profiles, version characteristics, and the like of the application to be uploaded; configuration information may include operating system version, port information, and the like; the operating environment may include environment variables, operating minimum specifications, and the like. It should be noted that, if the type of the application to be uploaded is a container mirror, the configuration information further includes a software name included in the application to be uploaded.
In the embodiment of the present invention, the metadata corresponding to the application to be uploaded may include configuration information and a running environment of the application to be uploaded, for example, an operating system version, port information, an environment variable, a running minimum specification, and the like, and if the type of the application to be uploaded is a container mirror image, the metadata further includes a software name included in the application to be uploaded.
Step S103, generating application identification information corresponding to the application to be uploaded according to the name of the application to be uploaded.
In the embodiment of the present invention, after the name of the application to be uploaded is obtained, application identification information corresponding to the application to be uploaded can be generated according to a preset algorithm, and the application identification information is used for representing the application to be uploaded and is unique. As an implementation manner, the preset algorithm may be a hash algorithm, where a hash value of a name of an application to be uploaded is calculated by using the hash algorithm, and the hash value is used as application identification information corresponding to the application to be uploaded.
Step S104, writing the metadata and the application identification information corresponding to the application to be uploaded into a background database, wherein the background database is arranged on the PaaS cloud platform.
In the embodiment of the present invention, after the metadata and the application identification information corresponding to the application to be uploaded are obtained, the metadata and the application identification information corresponding to the application to be uploaded are written into the metadata table of the background database 50 as a piece of data to be stored.
In this embodiment, a specific response process of the request for downloading the application is described next, and when the access request is a request for downloading the application, the application platform access method may further include steps S202 to S204.
Step S202, when the access request is a request for downloading the application and the request for downloading the application provides the name of the application to be downloaded, the application identification information corresponding to the application to be downloaded is generated according to the name of the application to be downloaded.
In the embodiment of the present invention, the application downloading request may be a confirmation instruction for the user to perform the application downloading operation on the application platform 40, and when the application needs to be downloaded from the application platform 40, the user may select a desired application according to an application name displayed in the visual graphical interface 43, and then click the "download" option set on the visual graphical interface 43 to perform downloading.
After the user selects the application to be downloaded according to the application name, the application identification information corresponding to the application to be downloaded can be generated according to a preset algorithm, and the application identification information is used for representing the application to be downloaded and is unique. In this embodiment, a preset algorithm consistent with the application identification information corresponding to the application to be uploaded generated in step S103 is adopted, where the preset algorithm may be to calculate a hash value of the name of the application to be downloaded by using a hash algorithm, and use the hash value as the application identification information corresponding to the application to be downloaded.
Step S203, determining target identification information consistent with the application identification information corresponding to the application to be downloaded, from the application identification information pre-stored in the background database.
In the embodiment of the present invention, the metadata table of the background database 50 stores application identification information and metadata corresponding to a plurality of applications stored in the external storage device 30 in advance, and after calculating the application identification information corresponding to the application to be downloaded, target identification information that is consistent with the application identification information corresponding to the application to be downloaded is found from the plurality of application identification information stored in advance in the metadata table.
Step S204, target metadata associated with the target identification information is obtained, and the target metadata is metadata responding to the downloading application request.
In this embodiment, after determining the target identification information consistent with the application identification information corresponding to the application to be downloaded, the target metadata associated with the target identification information is obtained in the metadata table, and the target metadata is metadata of the application platform 40 responding to the application downloading request of the user, where the target metadata may include an operating system version, port information, an environment variable, a minimum operating specification, and the like of the application to be downloaded.
And step S105, when the type of the application to be accessed is the container mirror image, calling an interface of a container mirror image warehouse to enable the container mirror image warehouse to respond to the access request, and when the type of the application to be accessed is the software package, calling an interface of a software package warehouse to enable the software package warehouse to respond to the access request.
In the embodiment of the present invention, the container mirror repository 41 maintains a first corresponding relationship between application names of types of container mirrors and application identification information thereof, and the software package repository 42 maintains a second corresponding relationship between application names of types of software packages and application identification information thereof. The first corresponding relationship and the second corresponding relationship may both be data mapping tables, for example, SQLserver, etc., that is, the first corresponding relationship may be a data mapping table of an application name whose type is a container mirror image and application identification information thereof, and the second corresponding relationship may be a data mapping table of an application name whose type is a software package and application identification information thereof.
When the access request is an upload application request, step S105 may include the following execution procedures: firstly, obtaining an application to be uploaded, wherein the application to be uploaded can be an application uploaded to the application platform 40 by a user through the visual graphical interface 43; then, when the type of the application to be uploaded is the container mirror image, storing the corresponding relationship between the name of the application to be uploaded and the application identification information of the application to be uploaded in the first corresponding relationship maintained by the container mirror image repository 41, and calling an interface of the container mirror image repository 41 to store the application to be uploaded in the external storage device 30; when the type of the application to be uploaded is the software package, the corresponding relationship between the name of the application to be uploaded and the application identification information of the application to be uploaded is stored in the second corresponding relationship maintained by the software package repository 42, and the interface of the software package repository 42 is called to store the application to be uploaded to the external storage device 30.
In the embodiment of the present invention, after the uploading is completed, the application platform 40 notifies the manager to perform an audit on the uploaded application, and after the manager receives the notification, the manager performs the audit on the uploaded application, where the audit content may include, but is not limited to, whether basic information, configuration information, and an operating environment of the application meet the specification, and after the administrator passes the audit, the application is completed on the application platform 40 and displayed through the visual graphical interface 43.
In this embodiment of the present invention, when the access request is a request for downloading an application, step S105 may further include the following steps:
when the type of the application to be downloaded is a container mirror image, calling an interface of the container mirror image warehouse 41 according to the application identification information corresponding to the application to be downloaded, determining a name of a target application associated with the application identification information corresponding to the application to be downloaded in the first corresponding relationship, and acquiring the target application stored in the external storage device 30 according to the name of the target application, wherein the target application is an application responding to a request for downloading the application;
when the type of the application to be downloaded is a software package, the interface of the software package repository 42 is called according to the application identification information corresponding to the application to be downloaded, the name of the target application associated with the application identification information corresponding to the application to be downloaded is determined in the second correspondence, and the target application stored in the external storage device 30 is acquired according to the name of the target application, which is an application responding to the request for downloading the application.
Therefore, a user sends a request for downloading the application to the application platform 40 through the visual graphical interface 43, after the application platform 40 responds to the request for downloading the application, the user can finally download the target application and the target metadata, the target metadata can greatly reduce the use cost of the target application, and after the user downloads the target application, the user can deploy and run the target application by one key without filling information such as the operating system version, the port information, the environment variable, the minimum running specification and the like of the target application.
It should be noted that the specific response process of the deployment application request and the download application request is consistent, and the specific response process of the operation and maintenance application request is consistent with the specific response process of the upload application request or the download application request, which is not described herein again.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
firstly, a visual graphical interface 43 is designed to realize interaction between the application platform 40 and a user, so that the difficulty of using the application platform 40 by the user is reduced, and the use efficiency of the PaaS cloud platform 10 by the user is improved;
secondly, the application platform access device 300 is used for realizing the unified management of the container mirror image warehouse 41 and the software package warehouse 42, so that the application platform 40 can be compatible with two applications, namely the container mirror image application and the software package application, the requirements of users on using the two applications are met, and the user experience is improved;
thirdly, the background database 50 is used to store the application identification information corresponding to the application stored in the external storage device 30, so that the user does not need to fill in information such as the operating system version, the port information, the environment variable, the minimum running specification and the like of the application when deploying the application, and can directly obtain the information from the background database 50 to implement one-touch deployment and run the target application.
Second embodiment
Referring to fig. 4, fig. 4 is a block diagram illustrating a server 20 according to an embodiment of the present invention. The server 20 comprises a processor 201, a memory 202, a bus 203 and a communication interface 204, wherein the processor 201, the memory 202 and the communication interface 204 are connected through the bus 203; the processor 201 is used to execute executable modules, such as computer programs, stored in the memory 202.
The Memory 202 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the server 20 and at least one other server 20, and the external storage device 30 is realized through at least one communication interface 204 (which may be wired or wireless).
Bus 203 may be an ISA bus, PCI bus, EISA bus, or the like. Only one bi-directional arrow is shown in fig. 4, but this does not indicate only one bus or one type of bus.
The memory 202 is used for storing programs, such as the application platform accessing device 300 shown in fig. 5. The application platform access device 300 includes at least one software function module which can be stored in the memory 202 in the form of software or firmware (firmware) or fixed in an Operating System (OS) of the server 20. After receiving the execution instruction, the processor 201 executes the program to implement the application platform access method disclosed in the above embodiment of the present invention.
The processor 201 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 201. The Processor 201 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor 201, the application platform access method disclosed in the above embodiment is implemented.
Third embodiment
Referring to fig. 5, fig. 5 is a block diagram illustrating an application platform access apparatus 300 according to an embodiment of the present invention. The application platform accessing apparatus 300 includes an access request obtaining module 301, a data management module 302, and an application management module 303.
An access request obtaining module 301, configured to obtain an access request of a user to an application platform, where the access request includes a type of an application to be accessed.
In this embodiment of the present invention, the access request obtaining module 301 is specifically configured to obtain, through a visual graphical interface, an access request of a user to an application platform.
In an embodiment of the present invention, the access request includes an upload application request and a download application request.
When the access request is an upload application request and the upload application request provides a name of an application to be uploaded, the data management module 302 is specifically configured to obtain metadata corresponding to the application to be uploaded; generating application identification information corresponding to the application to be uploaded according to the name of the application to be uploaded; and writing the metadata and the application identification information corresponding to the application to be uploaded into a background database, wherein the background database is arranged on the PaaS cloud platform.
When the access request is a request for downloading an application and the request for downloading the application provides a name of the application to be downloaded, the data management module 302 is specifically configured to generate application identification information corresponding to the application to be downloaded according to the name of the application to be downloaded; determining target identification information consistent with application identification information corresponding to the application to be downloaded from application identification information pre-stored in a background database; target metadata associated with the target identification information is obtained, the target metadata being metadata responsive to the download application request.
The application management module 303 is configured to call an interface of the container mirror repository to enable the container mirror repository to respond to the access request when the type of the application to be accessed is a container mirror, and call an interface of the software package repository to enable the software package repository to respond to the access request when the type of the application to be accessed is a software package.
In the embodiment of the present invention, when the access request is an upload application request and the upload application request provides a name of an application to be uploaded, the application management module 303 is specifically configured to obtain the application to be uploaded; when the application type of the application to be uploaded is the container mirror image, storing the corresponding relation between the name of the application to be uploaded and the application identification information of the application to be uploaded into a first corresponding relation maintained by a container mirror image warehouse, and calling an interface of the container mirror image warehouse to store the application to be uploaded to external storage equipment; and when the application type of the application to be uploaded is a software package, storing the corresponding relation between the name of the application to be uploaded and the application identification information of the application to be uploaded into a second corresponding relation maintained by the container mirror image warehouse, and calling an interface of the software package warehouse to store the application to be uploaded to the external storage device.
When the access request is a request for downloading an application and the request for downloading the application provides a name of the application to be downloaded, the application management module 303 is specifically configured to, when the type of the application to be downloaded is a container mirror image, call an interface of a container mirror image repository according to application identification information corresponding to the application to be downloaded, determine, in the first correspondence, a target application associated with the application identification information corresponding to the application to be downloaded, and obtain the target application stored in the external storage device, where the target application is an application responding to the request for downloading the application; and when the type of the application to be downloaded is a software package, calling an interface of a software package warehouse according to the application identification information corresponding to the application to be downloaded, determining a target application associated with the application identification information corresponding to the application to be downloaded in the second corresponding relation, and acquiring the target application stored in the external storage device, wherein the target application is an application responding to the request of the downloaded application.
In summary, the application platform access method and apparatus provided in the embodiments of the present invention are applied to a PaaS cloud platform, where a container mirror repository and a software package repository are created in advance in the application platform, and the method includes: acquiring an access request of a user to an application platform, wherein the access request comprises the type of an application to be accessed; and when the type of the application to be accessed is a software package, calling an interface of a software package warehouse to enable the software package warehouse to respond to the access request. Compared with the prior art, the application platform provided by the embodiment of the invention can be compatible with two applications, namely the container mirror image application and the software package application, meets the requirements of a user on using the two applications, and improves the user experience.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

Claims (9)

1. An application platform access method is applied to a platform as a service (PaaS) cloud platform, wherein a container mirror repository and a software package repository are created in advance by the application platform, and the method comprises the following steps:
acquiring an access request of a user to the application platform, wherein the access request comprises the type of an application to be accessed;
when the type of the application to be accessed is a container mirror image, calling an interface of a container mirror image warehouse to enable the container mirror image warehouse to respond to the access request, and when the type of the application to be accessed is a software package, calling an interface of a software package warehouse to enable the software package warehouse to respond to the access request;
the PaaS cloud platform is communicated with external storage equipment, a plurality of applications are stored in the external storage equipment in advance, the PaaS cloud platform comprises a background database, and application identification information and metadata corresponding to the applications stored in the external storage equipment are stored in the background database in advance;
when the access request is an application downloading request and the application downloading request provides the name of the application to be downloaded;
the method further comprises the following steps:
generating application identification information corresponding to the application to be downloaded according to the name of the application to be downloaded;
determining target identification information consistent with the application identification information corresponding to the application to be downloaded in the application identification information pre-stored in the background database;
and obtaining target metadata associated with the target identification information, wherein the target metadata is metadata responding to the downloading application request.
2. The method of claim 1, wherein when the access request is an upload application request and the upload application request provides a name of an application to be uploaded, the method further comprises:
acquiring metadata corresponding to the application to be uploaded;
generating application identification information corresponding to the application to be uploaded according to the name of the application to be uploaded;
and writing the metadata and the application identification information corresponding to the application to be uploaded into a background database, wherein the background database is arranged on the PaaS cloud platform.
3. The method of claim 2, wherein the external storage device is used for the container mirror repository and the software package repository to store applications, the container mirror repository maintaining a first correspondence of application names of type container mirrors and application identification information thereof, the software package repository maintaining a second correspondence of application names of type software packages and application identification information thereof;
the step of calling the interface of the container mirror repository to enable the container mirror repository to respond to the access request when the type of the application to be accessed is a container mirror, and calling the interface of the software package repository to enable the software package repository to respond to the access request when the type of the application to be accessed is a software package, includes:
obtaining the application to be uploaded;
when the type of the application to be uploaded is a container mirror image, storing the corresponding relation between the name of the application to be uploaded and the application identification information of the application to be uploaded into a first corresponding relation maintained by a container mirror image warehouse, and calling an interface of the container mirror image warehouse to store the application to be uploaded to the external storage device;
and when the type of the application to be uploaded is a software package, storing the corresponding relation between the name of the application to be uploaded and the application identification information of the application to be uploaded into a second corresponding relation maintained by the software package warehouse, and calling an interface of the software package warehouse to store the application to be uploaded into the external storage device.
4. The method of claim 1, wherein the external storage device is used for the container mirror repository and the software package repository to store applications, the container mirror repository maintains a first correspondence of application names and application identification information thereof with application types being container mirrors, the software package repository maintains a second correspondence of application names and application identification information thereof with application types being software packages;
the step of calling the interface of the container mirror repository to enable the container mirror repository to respond to the access request when the type of the application to be accessed is a container mirror, and calling the interface of the software package repository to enable the software package repository to respond to the access request when the type of the application to be accessed is a software package, includes:
when the type of the application to be downloaded is a container mirror image, calling an interface of a container mirror image warehouse according to application identification information corresponding to the application to be downloaded, determining a name of a target application associated with the application identification information corresponding to the application to be downloaded in the first corresponding relation, and acquiring the target application stored in the external storage device according to the name of the target application, wherein the target application is an application responding to the request of downloading the application;
when the type of the application to be downloaded is a software package, calling an interface of the software package warehouse according to application identification information corresponding to the application to be downloaded, determining a name of a target application associated with the application identification information corresponding to the application to be downloaded in the second corresponding relationship, and acquiring the target application stored in the external storage device according to the name of the target application, wherein the target application is an application responding to the request of downloading the application.
5. The method of claim 1, wherein the application platform is further configured with a visual graphical interface, the application platform managing the visual graphical interface; the step of obtaining the access request of the user to the application platform comprises the following steps:
and acquiring an access request of a user to the application platform through the visual graphical interface.
6. An application platform access device applied to a platform as a service (PaaS) cloud platform, wherein a container mirror repository and a software package repository are created in advance by the application platform, and the device comprises:
the access request acquisition module is used for acquiring an access request of a user to the application platform, wherein the access request comprises the type of an application to be accessed;
the application management module is used for calling an interface of the container mirror image warehouse to enable the container mirror image warehouse to respond to the access request when the type of the application to be accessed is a container mirror image, and calling an interface of the software package warehouse to enable the software package warehouse to respond to the access request when the type of the application to be accessed is a software package;
the PaaS cloud platform is communicated with external storage equipment, a plurality of applications are stored in the external storage equipment in advance, the PaaS cloud platform comprises a background database, and application identification information and metadata corresponding to the applications stored in the external storage equipment are stored in the background database in advance;
the device further comprises a data management module, and when the access request is an application downloading request and the application downloading request provides a name of an application to be downloaded, the data management module is specifically configured to:
generating application identification information corresponding to the application to be downloaded according to the name of the application to be downloaded;
determining target identification information consistent with the application identification information corresponding to the application to be downloaded in the application identification information pre-stored in the background database;
and obtaining target metadata associated with the target identification information, wherein the target metadata is metadata responding to the downloading application request.
7. The apparatus of claim 6, wherein when the access request is an upload application request and the upload application request provides a name of an application to be uploaded, the data management module is specifically configured to:
acquiring metadata corresponding to the application to be uploaded;
generating application identification information corresponding to the application to be uploaded according to the name of the application to be uploaded;
and writing the metadata and the application identification information corresponding to the application to be uploaded into a background database, wherein the background database is arranged on the PaaS cloud platform.
8. The apparatus of claim 7, wherein the external storage device is to store applications for the container mirror repository and the software package repository, the container mirror repository to maintain a first correspondence of application names of type container mirrors and their application identification information, the software package repository to maintain a second correspondence of application names of type software packages and their application identification information;
the application management module is specifically configured to:
obtaining the application to be uploaded;
when the application type of the application to be uploaded is a container mirror image, storing the corresponding relation between the name of the application to be uploaded and the application identification information of the application to be uploaded into a first corresponding relation maintained by a container mirror image warehouse, and calling an interface of the container mirror image warehouse to store the application to be uploaded to the external storage device;
and when the application type of the application to be uploaded is a software package, storing the corresponding relation between the name of the application to be uploaded and the application identification information of the application to be uploaded into a second corresponding relation maintained by the software package warehouse, and calling an interface of the software package warehouse to store the application to be uploaded into the external storage device.
9. The apparatus of claim 6, wherein the external storage device is to store the application for the container mirror repository and the software package repository, the container mirror repository to maintain a first correspondence of application names and application identification information thereof with application types being container mirrors, the software package repository to maintain a second correspondence of application names and application identification information thereof with application types being software packages;
the application management module is specifically configured to:
when the type of the application to be downloaded is a container mirror image, calling an interface of a container mirror image warehouse according to application identification information corresponding to the application to be downloaded, determining a name of a target application associated with the application identification information corresponding to the application to be downloaded in the first corresponding relation, and acquiring the target application stored in the external storage device according to the name of the target application, wherein the target application is an application responding to the request of downloading the application;
when the type of the application to be downloaded is a software package, calling an interface of the software package warehouse according to application identification information corresponding to the application to be downloaded, determining a name of a target application associated with the application identification information corresponding to the application to be downloaded in the second corresponding relationship, and acquiring the target application stored in the external storage device according to the name of the target application, wherein the target application is an application responding to the request of downloading the application.
CN201810295459.7A 2018-03-30 2018-03-30 Application platform access method and device Active CN108521458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810295459.7A CN108521458B (en) 2018-03-30 2018-03-30 Application platform access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810295459.7A CN108521458B (en) 2018-03-30 2018-03-30 Application platform access method and device

Publications (2)

Publication Number Publication Date
CN108521458A CN108521458A (en) 2018-09-11
CN108521458B true CN108521458B (en) 2021-01-01

Family

ID=63431375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810295459.7A Active CN108521458B (en) 2018-03-30 2018-03-30 Application platform access method and device

Country Status (1)

Country Link
CN (1) CN108521458B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213955B (en) * 2018-09-14 2022-11-11 腾讯科技(深圳)有限公司 Data processing method and related equipment
CN109240740B (en) * 2018-11-15 2022-08-02 北京金山云网络技术有限公司 Console version compatibility method and device and electronic equipment
CN110138582A (en) * 2019-01-04 2019-08-16 北京车和家信息技术有限公司 Information processing method, device and O&M environmental improvement system
CN109936571B (en) * 2019-02-22 2020-05-29 全球能源互联网研究院有限公司 Mass data sharing method, open sharing platform and electronic equipment
CN110830571A (en) * 2019-11-05 2020-02-21 许继集团有限公司 Business data backup and extraction method and computer readable medium
CN111200595B (en) * 2019-12-20 2022-04-29 北京淇瑀信息科技有限公司 Authority management method and device for accessing container and electronic equipment
CN111427664B (en) * 2020-03-25 2024-04-12 杭州电子科技大学 Container-based protocol analysis method, device, system and storage medium
CN111881470A (en) * 2020-07-20 2020-11-03 易通星云(北京)科技发展有限公司 Data access method and device and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102577237A (en) * 2010-12-20 2012-07-11 华为技术有限公司 Method for scheduling web hosting service, method for processing application access, apparatus and system thereof
CN104572085A (en) * 2014-12-23 2015-04-29 华为技术有限公司 Method and device for analyzing application program
CN105468362A (en) * 2015-11-17 2016-04-06 广州杰赛科技股份有限公司 Application deployment method and cloud computing system
CN105577779A (en) * 2015-12-21 2016-05-11 用友网络科技股份有限公司 Method and system for containerized deployment of large enterprise private cloud
CN106202429A (en) * 2016-07-13 2016-12-07 武大吉奥信息技术有限公司 GIS cloud service based on mixing container with virtualized host provides method and device
CN106293701A (en) * 2016-07-26 2017-01-04 浪潮软件股份有限公司 The application engine method for designing of many tenants version management based on cloud server
CN107220100A (en) * 2016-03-22 2017-09-29 中国移动(深圳)有限公司 One kind exploitation O&M method, device and cloud computing PaaS platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9058198B2 (en) * 2012-02-29 2015-06-16 Red Hat Inc. System resource sharing in a multi-tenant platform-as-a-service environment in a cloud computing system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102577237A (en) * 2010-12-20 2012-07-11 华为技术有限公司 Method for scheduling web hosting service, method for processing application access, apparatus and system thereof
CN104572085A (en) * 2014-12-23 2015-04-29 华为技术有限公司 Method and device for analyzing application program
CN105468362A (en) * 2015-11-17 2016-04-06 广州杰赛科技股份有限公司 Application deployment method and cloud computing system
CN105577779A (en) * 2015-12-21 2016-05-11 用友网络科技股份有限公司 Method and system for containerized deployment of large enterprise private cloud
CN107220100A (en) * 2016-03-22 2017-09-29 中国移动(深圳)有限公司 One kind exploitation O&M method, device and cloud computing PaaS platform
CN106202429A (en) * 2016-07-13 2016-12-07 武大吉奥信息技术有限公司 GIS cloud service based on mixing container with virtualized host provides method and device
CN106293701A (en) * 2016-07-26 2017-01-04 浪潮软件股份有限公司 The application engine method for designing of many tenants version management based on cloud server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于Docker构件化集成交付的软件仓库模式设计与实现;叶翼安;《中国优秀硕士学位论文全文数据库 信息科技辑》;20151215(第12期);全文 *

Also Published As

Publication number Publication date
CN108521458A (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN108521458B (en) Application platform access method and device
CN108153670B (en) Interface testing method and device and electronic equipment
CN109032691B (en) Applet running method and device and storage medium
CN111736956B (en) Container service deployment method, device, equipment and readable storage medium
US9785425B2 (en) Managed clone applications
JP6633059B2 (en) Rating files
CN108696372B (en) Method and system for keeping system configuration consistency
US11188515B2 (en) Preview processing and automatic correction of bulk data for software as a service applications
CN108829588B (en) Processing method, deployment system and device for testing application program
US11281452B2 (en) Tenant declarative deployments
EP3244320A1 (en) File path storing and local file accessing method and device
US10740080B2 (en) Preview and publishing of mobile applications
CN114328029B (en) Backup method and device of application resources, electronic equipment and storage medium
CN110597513B (en) WEB interface generation method and related device
US9612927B1 (en) Managing server processes with proxy files
CN112256343B (en) Software loading method, equipment and system
CN111752797A (en) Terminal log processing method and device, terminal and storage medium
CN110795674A (en) Configuration updating method and device
CN112583761B (en) Management method and device of security entity, computer equipment and storage medium
US11481232B2 (en) Registry image management
CN109788054B (en) Configuration method, server and medium for distributed application coordination service node
CN112579189A (en) Configuration file updating method and device
US10860433B1 (en) Directional consistency in capture and recovery of cloud-native applications
CN114860350B (en) Data processing method and device based on cloud diskless tree-like mirror image
US20230101397A1 (en) Identifying Binary Objects Using Signature of Input Items Used to Create Binary Object

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