CN115756744A - Container-based application access method, device, system, electronic device and medium - Google Patents

Container-based application access method, device, system, electronic device and medium Download PDF

Info

Publication number
CN115756744A
CN115756744A CN202211457760.6A CN202211457760A CN115756744A CN 115756744 A CN115756744 A CN 115756744A CN 202211457760 A CN202211457760 A CN 202211457760A CN 115756744 A CN115756744 A CN 115756744A
Authority
CN
China
Prior art keywords
application
login
container
home page
interface information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211457760.6A
Other languages
Chinese (zh)
Inventor
肖丹
姜坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Coretek Systems Inc
Original Assignee
Coretek Systems Inc
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 Coretek Systems Inc filed Critical Coretek Systems Inc
Priority to CN202211457760.6A priority Critical patent/CN115756744A/en
Publication of CN115756744A publication Critical patent/CN115756744A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present disclosure disclose container-based application access methods, apparatus, systems, electronic devices, and media. One embodiment of the method comprises: acquiring a basic mirror image corresponding to a target application; creating a container corresponding to the base image; starting the container; responding to an access request, sent by a user through a browser, corresponding to a remote desktop address, and sending remote user login interface information corresponding to the remote desktop address to terminal equipment corresponding to the access request; responding to the received login information corresponding to the remote user login interface information sent by the terminal equipment, and determining whether the login information meets a preset login condition; and responding to the fact that the login information meets the preset login condition, and sending the application home page interface information corresponding to the target application to the terminal equipment. This embodiment simplifies the operation of the user to remotely access the application.

Description

Container-based application access method, device, system, electronic device and medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a container-based application access method, apparatus, system, electronic device, and medium.
Background
To facilitate resource sharing and efficient processing of data at high speed, many applications are deployed on servers. At present, when a user corresponding to a client remotely accesses a server application, the method generally adopted is as follows: and carrying out remote access operation by installing relevant screen projection software at the client.
However, the inventors have found that when an application is remotely accessed in the above manner, there are often technical problems as follows: the application remote access is carried out by installing screen projection software at the client, so that the operation steps before the remote access are increased, and the operation of remotely accessing the application by a user is complicated.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art in this country.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose container-based application access methods, apparatuses, systems, electronic devices, and computer-readable media to address one or more of the technical problems noted in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method of container-based application access, the method comprising: acquiring a basic mirror image corresponding to a target application; creating a container corresponding to the basic mirror image, wherein the container corresponds to a remote desktop address; starting the container; responding to an access request which is sent by a user through a browser and corresponds to the remote desktop address, and sending remote user login interface information corresponding to the remote desktop address to terminal equipment corresponding to the access request; responding to the received login information which is sent by the terminal equipment and corresponds to the remote user login interface information, and determining whether the login information meets preset login conditions; and in response to determining that the login information meets the preset login condition, sending application home page interface information corresponding to the target application to the terminal equipment, so that the terminal equipment displays an application home page interface corresponding to the application home page interface information in the browser.
In a second aspect, some embodiments of the present disclosure provide a container-based application access apparatus, the apparatus comprising: an acquisition unit configured to acquire a base image of a corresponding target application; a creating unit configured to create a container corresponding to the base image, wherein the container corresponds to a remote desktop address; an activation unit configured to activate the container; a first sending unit, configured to respond to receiving an access request corresponding to the remote desktop address sent by a user through a browser, and send remote user login interface information corresponding to the remote desktop address to a terminal device corresponding to the access request; a determining unit configured to determine whether the login information satisfies a preset login condition in response to receiving login information corresponding to the remote user login interface information transmitted by the terminal device; and a second sending unit, configured to send, in response to determining that the login information satisfies the preset login condition, application home page interface information corresponding to the target application to the terminal device, so that the terminal device displays an application home page interface corresponding to the application home page interface information in the browser.
In a third aspect, some embodiments of the present disclosure provide a container-based application access system, comprising: the client side is configured to send an access request corresponding to a remote desktop address to the server side, wherein the remote desktop address corresponds to a container; receiving remote user login interface information which is sent by the server and corresponds to the remote desktop address; sending login information corresponding to the remote user login interface information; receiving application home page interface information of a corresponding target application sent by the server, and displaying an application home page interface corresponding to the application home page interface information in a browser; the server is configured to obtain a basic mirror image corresponding to a target application; creating a container corresponding to the basic mirror image, wherein the container corresponds to a remote desktop address; starting the container; responding to an access request which is sent by the client and corresponds to the remote desktop address, and sending remote user login interface information corresponding to the remote desktop address to the client; responding to the received login information which is sent by the client and corresponds to the remote user login interface information, and determining whether the login information meets a preset login condition; and in response to the fact that the login information meets the preset login condition, sending application home page interface information corresponding to the target application to the client, so that the client displays an application home page interface corresponding to the application home page interface information in the browser.
In a fourth aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device, on which one or more programs are stored, which when executed by one or more processors cause the one or more processors to implement the method described in any implementation of the first aspect.
In a fifth aspect, some embodiments of the present disclosure provide a computer-readable medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method described in any implementation manner of the first aspect.
The above embodiments of the present disclosure have the following advantages: by the container-based application access method of some embodiments of the disclosure, a user corresponding to the terminal device can remotely access the target application in a browser mode, thereby simplifying the operation of remotely accessing the application by the user. Specifically, the reason why the operation of remotely accessing the application by the user is cumbersome is that: the application remote access is carried out by installing screen projection software at the client, so that the operation steps before the remote access are increased, and the operation of remotely accessing the application by a user is complicated. Based on this, the container-based application access method of some embodiments of the present disclosure first obtains a base image of a corresponding target application. Thus, the base image can be obtained, and can be used for creating a container corresponding to the target application. Next, a container corresponding to the base image is created. Wherein, the container corresponds to a remote desktop address. The container is started. Thus, the container can be obtained, and the container can be used for being remotely accessed by a user corresponding to the terminal equipment. And then, responding to an access request which is sent by a user through a browser and corresponds to the remote desktop address, and sending the remote user login interface information corresponding to the remote desktop address to the terminal equipment corresponding to the access request. Therefore, the remote user login interface information can be sent to the terminal equipment corresponding to the remote access request, and the remote access connection can be established. And then, in response to receiving login information which is sent by the terminal equipment and corresponds to the remote user login interface information, determining whether the login information meets preset login conditions. Therefore, whether the login information meets the preset login condition or not can be determined, and whether the remote access connection can be established successfully or not can be judged. And finally, in response to the fact that the login information meets the preset login condition, sending the application home page interface information corresponding to the target application to the terminal equipment, so that the terminal equipment displays the application home page interface corresponding to the application home page interface information in the browser. Therefore, the application home page interface information corresponding to the target application can be sent to the terminal equipment. Therefore, a user corresponding to the terminal equipment can remotely access the target application through the browser. And because the container corresponding to the target application is established at the server side and the remote access connection is established with the terminal equipment, the user corresponding to the terminal equipment can remotely access the target application in a browser mode. Thereby simplifying the operation of the user for remotely accessing the application.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a flow diagram of some embodiments of a container-based application access method according to the present disclosure;
FIG. 2 is a schematic block diagram of some embodiments of a container-based application access device according to the present disclosure;
FIG. 3 is a timing diagram for some embodiments of a container-based application access system according to the present disclosure;
FIG. 4 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates a flow 100 of some embodiments of a container-based application access method according to the present disclosure. The container-based application access method comprises the following steps:
step 101, acquiring a basic mirror image corresponding to a target application.
In some embodiments, an executing agent (e.g., a computing device) of the container-based application access method may obtain the base image of the corresponding target application from the target image repository through a wired connection or a wireless connection. The target mirror image warehouse can be a data warehouse which stores any basic mirror images. The target mirror repository is not specifically limited herein. The base image may be a base image of a file including the target application. The base image may include: the system comprises a virtual screen execution file, a remote control execution file, a webpage conversion execution file and a target application execution file corresponding to the target application. Here, the base image may include a wu Ban Tu (Ubuntu) image. The target application may be any visual graphical application that is executable. For example, the target application may be a visual clock application. The above-described virtual screen execution file may be an execution file capable of constructing a display function application. For example, the virtual screen execution file may be an execution file corresponding to an Xvfb (X virtual frame buffer) program. The remote control execution file may be an execution file capable of constructing a remote connection control application with the terminal device. The remote control execution file may be an execution file corresponding to a VNC (Virtual Network Console) program. The terminal device may be a device capable of establishing a remote connection with the container. The terminal devices may include, but are not limited to: notebook computers, desktop computers, and smart phones. The web page conversion execution file may be an execution file capable of constructing an application for converting data transmitted from a previous node into web page data. For example, the web page conversion execution file may be an execution file corresponding to a nonvnc program. The previous node may be a node corresponding to the remote control execution file. The target application execution file may be an execution file capable of building a target application. It is noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a UWB (ultra wideband) connection, and other wireless connection means now known or developed in the future.
Step 102, create a container corresponding to the base image.
In some embodiments, the execution agent may create a container corresponding to the base image. Wherein, the container corresponds to a remote desktop address. The container may be an independently operable process corresponding to the base image. The remote desktop address may be an address at which the terminal device can remotely access the container.
In practice, the execution body may create a container corresponding to the base image by a previously packaged container creation method. The previously packaged container creating method may be a preset method capable of creating a container. For example, the previously-packaged container creation method described above may be a docker create method.
Step 103, the container is started.
In some embodiments, the execution body may activate the container. In practice, the execution body may start the container by a previously encapsulated container start-up method. The previously sealed container starting method may be a method that is previously set to start the container. The previously-packaged container activation method described above may be a preset method capable of activating the container. For example, the previously described method of starting up a container for packaging may be the docker run method.
In some optional implementations of some embodiments, the executing body may start the container by:
the first step is to start the virtual screen execution file to obtain a virtual screen node. The virtual screen node may be a node capable of displaying a target application. Here, the above-mentioned virtual screen section may characterize an Xvfb (X virtual frame buffer) server. In practice, the execution body may start the virtual screen execution file by a virtual screen execution file start method packaged in advance, so as to obtain a virtual screen node. The method for starting the previously encapsulated virtual screen execution file may be a method for starting a virtual screen execution file to obtain a virtual screen node, which is set in advance. For example, the previously packaged virtual screen execution file starting method may be Xvfb:0-screen 0 1920x1080x24-listen tcp-ac + extension GLX + extension RENDER.
And secondly, starting the remote control execution file to obtain a remote control node. The remote control node may be a control node capable of establishing a remote connection with a terminal device. Here, the above-mentioned remote control node may characterize a VNC server. In practice, the execution main body may start the remote control execution file by a previously encapsulated remote control execution file starting method, so as to obtain the remote control node. The method for starting the previously encapsulated remote control execution file may be a method for starting the remote control execution file to obtain a remote control node, which is set in advance. For example, the previously encapsulated remote control execution file launch method may be x11vnc-forever-shared-noipv 6-passswd tsjsdbd.
And thirdly, starting the webpage conversion execution file to obtain a webpage conversion node. The web page conversion node may be a node that converts data transmitted by a previous node into web page data. Here, the above-described web page conversion node may characterize the nonvc server. In practice, the execution body may start the web page conversion execution file by a previously encapsulated web page conversion execution file starting method, so as to obtain the web page conversion node. The method for starting the previously encapsulated web page conversion execution file may be a method for starting the web page conversion execution file to obtain a web page conversion node, which is set in advance. For example, the above-mentioned previously packaged web page conversion execution file starting method may be websocket — web/usr/share/novnc 808080localhost.
And fourthly, starting the target application execution file to obtain the application home page interface information corresponding to the target application. The application home page interface information may be interface source file information of an application home page interface. For example, the application home interface information may include an H5 file of the application home interface. In practice, the execution body may start the target application execution file by a previously packaged target application execution file starting method, so as to obtain application home page interface information corresponding to the target application.
Optionally, after the virtual screen execution file is started to obtain a virtual screen node, the execution main body may further determine network address information corresponding to the container as address information of an environment variable corresponding to the virtual screen node. The address information of the environment variable may be information indicating an address of a target application. The environment variable may be a variable indicating where to display the target application. Here, the environment variable may be a Display environment variable. For example, the address information of the environment variable may be 100.92.3.182. The network address information may be information that enables network access to the container. Specifically, the network address information may be an IP (Internet Protocol) address.
And 104, responding to the received access request of the corresponding remote desktop address sent by the user through the browser, and sending the remote user login interface information of the corresponding remote desktop address to the terminal equipment of the corresponding access request.
In some embodiments, in response to receiving an access request corresponding to the remote desktop address sent by a user through a browser, the execution main body may send remote user login interface information corresponding to the remote desktop address to a terminal device corresponding to the access request. The remote user login interface information may be interface source file information of a remote user login interface. For example, the remote user login interface information may include an H5 file of the remote user login interface. The remote user login interface may include a username entry control and a user password entry control. The user name input control can be a control for inputting a user name by a user. The user password input control can be a control for inputting a password by a user. The terminal device corresponding to the access request may be a device that transmits the access request.
In practice, the execution main body may send the remote user login interface information corresponding to the remote desktop address to the terminal device corresponding to the access request by:
and step one, sending the remote user login interface information to the webpage conversion node. In practice, the execution subject may send the remote user login interface information to the web page conversion node through the websocket proxy server.
And secondly, sending the remote user login interface information from the webpage conversion node to the terminal equipment. In practice, the execution body may send the remote user login interface information from the web page conversion node to the terminal device through a Websocket communication protocol.
Optionally, before the remote user login interface information corresponding to the remote desktop address is sent to the terminal device corresponding to the access request, the execution main body may further send application home page interface information corresponding to the target application to the virtual screen node, so as to display an application home page interface corresponding to the application home page interface information on the virtual screen node.
And 105, responding to the received login information of the remote user login interface information sent by the terminal equipment, and determining whether the login information meets the preset login condition.
In some embodiments, in response to receiving login information corresponding to the remote user login interface information sent by the terminal device, the execution subject may determine whether the login information satisfies a preset login condition. The login information may include a user name and a user password. The preset login condition may be that the user password is the same as a user password corresponding to the user name stored in advance.
And 106, responding to the fact that the login information meets the preset login condition, sending the application home page interface information of the corresponding target application to the terminal equipment, and enabling the terminal equipment to display the application home page interface corresponding to the application home page interface information in the browser.
In some embodiments, in response to determining that the login information satisfies the preset login condition, the execution body may send application home interface information corresponding to the target application to the terminal device, so that the terminal device displays an application home interface corresponding to the application home interface information in the browser. The application home page interface may be an interface displayed by default after the target application is opened.
In practice, in response to determining that the login information meets the preset login condition, the execution main body may send the application home page interface information corresponding to the target application to the terminal device through the following steps, so that the terminal device displays the application home page interface corresponding to the application home page interface information in the browser:
firstly, sending the application home page interface information to the remote control node.
And secondly, controlling the remote control node to send the application home page interface information serving as remote control information to the webpage conversion node. The remote control information may be information processed by the remote control node. In practice, the execution body may control the VNC server to send the application home page interface information as remote control information to the web page conversion node through the websocket proxy server.
And thirdly, controlling the webpage conversion node to send the remote control information to the terminal equipment as webpage conversion information. The web page conversion information may be information processed by the web page conversion node. In practice, the execution subject may control the noVNC server to send the remote control information to the terminal device as web page conversion information through a Websocket communication protocol.
The above embodiments of the present disclosure have the following advantages: by the container-based application access method of some embodiments of the disclosure, a user corresponding to the terminal device can remotely access the target application in a browser mode, thereby simplifying the operation of remotely accessing the application by the user. Specifically, the reason why the operation of remotely accessing the application by the user is cumbersome is that: the application remote access is carried out by installing screen projection software at the client, so that the operation steps before the remote access are increased, and the operation of remotely accessing the application by a user is complicated. Based on this, the container-based application access method of some embodiments of the present disclosure, first, obtains a base image of a corresponding target application. Thus, the base image can be obtained, and can be used for creating a container corresponding to the target application. Next, a container corresponding to the base image is created. Wherein, the container corresponds to a remote desktop address. The container is started. Thus, the container can be obtained, and therefore the container can be used for being remotely accessed by a user corresponding to the terminal equipment. And then, responding to an access request which is sent by a user through a browser and corresponds to the remote desktop address, and sending the remote user login interface information corresponding to the remote desktop address to the terminal equipment corresponding to the access request. Therefore, the remote user login interface information can be sent to the terminal equipment corresponding to the remote access request, and the remote access connection can be established. And then, in response to receiving login information which is sent by the terminal equipment and corresponds to the remote user login interface information, determining whether the login information meets preset login conditions. Therefore, whether the login information meets the preset login condition or not can be determined, and whether the remote access connection can be established successfully or not can be judged. And finally, in response to the fact that the login information meets the preset login condition, sending application home page interface information corresponding to the target application to the terminal equipment, so that the terminal equipment displays an application home page interface corresponding to the application home page interface information in the browser. Therefore, the application home page interface information corresponding to the target application can be sent to the terminal equipment. Therefore, a user corresponding to the terminal equipment can remotely access the target application through the browser. And because the container corresponding to the target application is established at the server side and the remote access connection is established with the terminal equipment, the user corresponding to the terminal equipment can remotely access the target application in a browser mode. Thereby simplifying the operation of the user to remotely access the application.
With further reference to fig. 2, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of a container-based application access apparatus, which correspond to those method embodiments illustrated in fig. 1, and which may be particularly applicable in various electronic devices.
As shown in FIG. 2, the container-based application access device 200 of some embodiments includes: an acquisition unit 201, a creation unit 202, an activation unit 203, a first transmission unit 204, a determination unit 205, and a second transmission unit 206. Wherein the obtaining unit 201 is configured to obtain a base image of the corresponding target application; the creating unit 202 is configured to create a container corresponding to the base image, wherein the container corresponds to a remote desktop address; the activation unit 203 is configured to activate the container; the first sending unit 204 is configured to, in response to receiving an access request corresponding to the remote desktop address sent by a user through a browser, send remote user login interface information corresponding to the remote desktop address to a terminal device corresponding to the access request; the determining unit 205 is configured to determine whether the login information satisfies a preset login condition in response to receiving login information corresponding to the remote user login interface information sent by the terminal device; the second sending unit 206 is configured to, in response to determining that the login information meets the preset login condition, send application home page interface information corresponding to the target application to the terminal device, so that the terminal device displays an application home page interface corresponding to the application home page interface information in the browser.
It will be appreciated that the elements recited in the container-based application access device 200 correspond to the various steps in the method described with reference to fig. 1. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 200 and the units included therein, and are not described herein again.
Fig. 3 is a timing diagram of some embodiments of a container-based application access system according to the present disclosure, including the steps of:
step 301, the server side obtains a basic mirror image corresponding to the target application.
Step 302, the server creates a container corresponding to the basic mirror image, wherein the container corresponds to a remote desktop address.
Step 303, the server starts the container.
Step 304, the client sends an access request corresponding to a remote desktop address to the server, wherein the remote desktop address corresponds to a container.
In step 305, the server sends the remote user login interface information corresponding to the remote desktop address to the corresponding client in response to receiving the access request corresponding to the remote desktop address sent by the client.
And step 306, the client receives the remote user login interface information corresponding to the remote desktop address sent by the server.
Step 307, the client sends login information corresponding to the login interface information of the remote user.
And 308, the server responds to the received login information, which is sent by the client and corresponds to the login interface information of the remote user, and determines whether the login information meets the preset login conditions.
Step 309, in response to determining that the login information meets the preset login condition, the server sends the application home page interface information of the corresponding target application to the client, so that the client displays the application home page interface corresponding to the application home page interface information in the browser.
In step 310, the client receives application home page interface information corresponding to the target application sent by the server, and displays an application home page interface corresponding to the application home page interface information in the browser.
The client and the server may be hardware or software. When the client and the server are hardware, the client and the server may be implemented as a distributed cluster formed by a plurality of servers or terminal devices, or may be implemented as a single server or a single terminal device. When the client and the server are software, they may be installed in the listed hardware devices. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
Referring now to fig. 4, a block diagram of an electronic device 400 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device 400 may include a processing means 401 (e.g., a computing device) that may perform various appropriate actions and processes in accordance with a program stored in a read only memory 402 (ROM) or a program loaded from a storage means 408 into a random access memory 403 (RAM). In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively implemented or provided. Each block shown in fig. 4 may represent one device or may represent multiple devices, as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 409, or from the storage device 408, or from the ROM 402. The computer program, when executed by the processing apparatus 401, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (Hyper Text Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a basic mirror image corresponding to a target application; creating a container corresponding to the basic mirror image, wherein the container corresponds to a remote desktop address; starting the container; responding to an access request which is sent by a user through a browser and corresponds to the remote desktop address, and sending remote user login interface information corresponding to the remote desktop address to terminal equipment corresponding to the access request; responding to the received login information which is sent by the terminal equipment and corresponds to the remote user login interface information, and determining whether the login information meets preset login conditions; and in response to determining that the login information meets the preset login condition, sending application home page interface information corresponding to the target application to the terminal equipment, so that the terminal equipment displays an application home page interface corresponding to the application home page interface information in the browser.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. 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.
The units described in some embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a creation unit, a start unit, a first transmission unit, a determination unit, and a second transmission unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, the retrieving unit may also be described as a "unit that retrieves the base image of the corresponding target application".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combinations of the above-mentioned features, and other embodiments in which the above-mentioned features or their equivalents are combined arbitrarily without departing from the spirit of the invention are also encompassed. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A container-based application access method, comprising:
acquiring a basic mirror image corresponding to a target application;
creating a container corresponding to the basic mirror image, wherein the container corresponds to a remote desktop address;
starting the container;
responding to an access request which is sent by a user through a browser and corresponds to the remote desktop address, and sending remote user login interface information corresponding to the remote desktop address to terminal equipment corresponding to the access request;
responding to the received login information which is sent by the terminal equipment and corresponds to the remote user login interface information, and determining whether the login information meets a preset login condition;
and responding to the fact that the login information meets the preset login condition, and sending the application home page interface information corresponding to the target application to the terminal equipment, so that the terminal equipment displays the application home page interface corresponding to the application home page interface information in the browser.
2. The method of claim 1, wherein the base mirroring comprises: the system comprises a virtual screen execution file, a remote control execution file, a webpage conversion execution file and a target application execution file corresponding to the target application.
3. The method of claim 2, wherein the actuating the container comprises:
starting the virtual screen execution file to obtain a virtual screen node;
starting the remote control execution file to obtain a remote control node;
starting the webpage conversion execution file to obtain a webpage conversion node;
and starting the target application execution file to obtain application home page interface information corresponding to the target application.
4. The method of claim 3, wherein after said initiating the virtual screen execution file resulting in a virtual screen node, the method further comprises:
and determining the network address information corresponding to the container as the address information of the environment variable corresponding to the virtual screen node.
5. The method of claim 3, wherein prior to the sending the remote user login interface information corresponding to the remote desktop address to the terminal device corresponding to the access request, the method further comprises:
and sending the application home page interface information corresponding to the target application to the virtual screen node so as to display the application home page interface corresponding to the application home page interface information on the virtual screen node.
6. The method according to claim 3, wherein the sending, in response to determining that the login information satisfies the preset login condition, application home page interface information corresponding to the target application to the terminal device so that the terminal device displays an application home page interface corresponding to the application home page interface information in the browser includes:
sending the application home page interface information to the remote control node;
controlling the remote control node to send the application home page interface information serving as remote control information to the webpage conversion node;
and controlling the webpage conversion node to send the remote control information to the terminal equipment as webpage conversion information.
7. A container-based application access device, comprising:
an acquisition unit configured to acquire a base image of a corresponding target application;
the creating unit is configured to create a container corresponding to the base mirror image, wherein the container corresponds to a remote desktop address;
an activation unit configured to activate the container;
the remote desktop management system comprises a first sending unit, a second sending unit and a terminal device, wherein the first sending unit is configured to respond to an access request which is sent by a user through a browser and corresponds to a remote desktop address, and send remote user login interface information corresponding to the remote desktop address to the terminal device corresponding to the access request;
a determining unit configured to determine whether login information corresponding to the remote user login interface information sent by the terminal device satisfies a preset login condition in response to receiving the login information;
a second sending unit, configured to send, in response to determining that the login information satisfies the preset login condition, application home page interface information corresponding to the target application to the terminal device, so that the terminal device displays an application home page interface corresponding to the application home page interface information in the browser.
8. A container-based application access system, comprising: a client and a server, wherein,
the client side is configured to send an access request corresponding to a remote desktop address to the server side, wherein the remote desktop address corresponds to a container; receiving remote user login interface information which is sent by the server and corresponds to the remote desktop address; sending login information corresponding to the remote user login interface information; receiving application home page interface information of the corresponding target application sent by the server, and displaying an application home page interface corresponding to the application home page interface information in a browser;
the server is configured to obtain a base image of a corresponding target application; creating a container corresponding to the basic mirror image, wherein the container corresponds to a remote desktop address; starting the container; responding to an access request which is sent by the client and corresponds to the remote desktop address, and sending remote user login interface information corresponding to the remote desktop address to the client; responding to the received login information which is sent by the client and corresponds to the remote user login interface information, and determining whether the login information meets a preset login condition; and in response to the fact that the login information meets the preset login condition, sending application home page interface information corresponding to the target application to the client, so that the client displays an application home page interface corresponding to the application home page interface information in the browser.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-6.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202211457760.6A 2022-11-21 2022-11-21 Container-based application access method, device, system, electronic device and medium Pending CN115756744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211457760.6A CN115756744A (en) 2022-11-21 2022-11-21 Container-based application access method, device, system, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211457760.6A CN115756744A (en) 2022-11-21 2022-11-21 Container-based application access method, device, system, electronic device and medium

Publications (1)

Publication Number Publication Date
CN115756744A true CN115756744A (en) 2023-03-07

Family

ID=85333821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211457760.6A Pending CN115756744A (en) 2022-11-21 2022-11-21 Container-based application access method, device, system, electronic device and medium

Country Status (1)

Country Link
CN (1) CN115756744A (en)

Similar Documents

Publication Publication Date Title
US11172042B2 (en) Platform-independent application publishing to a front-end interface by encapsulating published content in a web container
US11611633B2 (en) Systems and methods for platform-independent application publishing to a front-end interface
CN111246228B (en) Method, device, medium and electronic equipment for updating gift resources of live broadcast room
CN111459364B (en) Icon updating method and device and electronic equipment
CN115600629B (en) Vehicle information two-dimensional code generation method, electronic device and computer readable medium
JP2024506462A (en) Information presentation methods, devices and electronic equipment
CN113760536A (en) Data caching method and device, electronic equipment and computer readable medium
CN112965673A (en) Content printing method, device, equipment and storage medium
CN111694629A (en) Information display method and device and electronic equipment
CN112559898B (en) Item information sending method, item information sending device, electronic equipment and computer readable medium
CN113126985B (en) Method, apparatus, electronic device and computer readable medium for page rendering
CN115022106B (en) Group information processing method, device, equipment and medium
CN115576458A (en) Application window display method, device, equipment and medium
CN110619101A (en) Method and apparatus for processing information
CN112732457B (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN115756744A (en) Container-based application access method, device, system, electronic device and medium
CN111444457B (en) Data release method and device, storage medium and electronic equipment
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN112543228A (en) Data transmission method and device, electronic equipment and computer readable medium
CN112464039A (en) Data display method and device of tree structure, electronic equipment and medium
CN111240718A (en) Theme updating method and device, electronic equipment and medium
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN112486826B (en) Test method, test device, electronic equipment and computer readable medium
CN114398098B (en) Application script execution method, device, electronic equipment and computer readable medium
CN110704767B (en) Page opening method and device, electronic equipment and storage medium

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