WO2018040914A1 - 生成容器的方法、装置、终端、服务器与系统 - Google Patents
生成容器的方法、装置、终端、服务器与系统 Download PDFInfo
- Publication number
- WO2018040914A1 WO2018040914A1 PCT/CN2017/097628 CN2017097628W WO2018040914A1 WO 2018040914 A1 WO2018040914 A1 WO 2018040914A1 CN 2017097628 W CN2017097628 W CN 2017097628W WO 2018040914 A1 WO2018040914 A1 WO 2018040914A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- basic service
- container
- variable program
- service variable
- server
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/62—Uninstallation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
Definitions
- the present application relates to server technology, and in particular, to a method, an apparatus, a terminal, a server and a system for generating a container.
- Container is an open source application container engine that provides an automated deployment solution for an application. Specifically, a container can be quickly created by mirroring.
- the container is a lightweight virtual machine, its deployment and It is very convenient to run the basic service variable program and easily realize the automatic installation, deployment and upgrade of the basic service variable program through the configuration file. Docker virtualizes multiple containers, each container is isolated from each other without an excuse, and can separate each other's production environment and development environment without affecting each other.
- the image used to create the container is a complete basic operating system environment, which includes a basic service firmware and a basic service variable program, wherein the services provided by the basic service firmware include a lot, for example, from Communication management, authentication, authorized security services, error management, etc. of communication between different applications, the basic service variable program is based on the basic service firmware to provide services for the user, for example, calling the basic service firmware to serve the user Provide services, ie some applications.
- the underlying service firmware and the underlying service variable program are also included in the container. Since the basic service variable program relies on the basic service firmware, the image needs to create some information to maintain the relationship between the two.
- the program after setting the basic service variable program in the image, not only the basic service is variable in the image.
- the program but also needs to record the location information of the basic service variable program, so that when the container is created by mirroring, the location information will also exist in the container, which will not only occupy the container space, but also affect the container creation speed.
- the present application provides a method, an apparatus, a terminal, a server and a system for generating a container to solve the problem of slow creation of a container in the prior art.
- the present application provides a system for generating a container, comprising:
- a server which stores a software package of a first basic service change program basic service variable program
- a terminal configured to generate a first container according to the image, where the image and the first container both include a basic service firmware, and are used to obtain the software package from the server, according to the software package in the first container
- the first basic service change program basic service variable program is installed, and the first basic service change program basic service variable program provides an application service to a user based on the basic service firmware.
- the present application provides a method of generating a container, comprising:
- the basic service firmware provides application services to users.
- the present application provides a method of generating a container, comprising:
- the first basic service variable program is configured to provide an application service to a user based on a basic service firmware, and the basic service firmware is generated when the first container is generated according to a mirror.
- the present application provides an apparatus for generating a container, comprising:
- a generating module configured to generate a first container according to the image, where the image and the first container include a basic service curing program;
- a first obtaining module configured to acquire, by using a server, a software package of a first basic service variable program, where the first basic service variable program provides an application service to the user based on the basic service curing program;
- a first installation module configured to install the first basic service variable program in the first container according to the software package.
- the present application provides an apparatus for generating a container, comprising:
- a processor configured to generate a first container according to the image, where the image and the first container include a basic service firmware;
- a first input device configured to acquire, by using a server, a software package of a first basic service variable program, where the first basic service variable program provides an application service to the user based on the basic service firmware;
- the processor is further configured to install the first basic service variable program in the first container according to the software package.
- the application provides a terminal, including the apparatus of any of the foregoing.
- the present application provides an apparatus for generating a container, comprising:
- a first receiving module configured to receive a third request that is sent by the first container to obtain a software package of the first basic service variable program
- a first sending module configured to send information about the software package to the first container according to the third request, so that the first container acquires the software package according to information of the software package
- the first basic service variable program is installed in the first container, and the first basic service variable program provides an application service to the user based on the basic service curing program, and the basic service curing program generates the first Generated when the container.
- the present application provides an apparatus for generating a container, comprising:
- a second input device configured to receive a third request sent by the first container to obtain a software package of the first basic service variable program
- an output device configured to send information about the software package to the first container according to the third request, so that the first container acquires the software package according to information of the software package, and in the
- the first basic service variable program is installed in a container, and the first basic service variable program provides an application service to the user based on the basic service curing program, and the basic service curing program generates the first container according to the image Generated.
- the application provides a server, comprising the apparatus of any of the foregoing.
- the present application provides a system for generating a container, including the aforementioned terminal, server, and image.
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then
- the server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first container may be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- FIG. 1 is a schematic flow chart of a method for generating a container according to an embodiment of the present application
- FIG. 2 is a schematic flow chart of a method for generating a container according to another embodiment of the present application.
- FIG. 3 is a schematic flow chart of a method for generating a container according to still another embodiment of the present application.
- FIG. 4 is a schematic structural diagram of an apparatus for generating a container according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of an apparatus for generating a container according to another embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of an apparatus for generating a container according to still another embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of an apparatus for generating a container according to another embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of an apparatus for generating a container according to another embodiment of the present invention.
- FIG. 9 is a schematic structural diagram of an apparatus for generating a container according to still another embodiment of the present invention.
- FIG. 10 is a schematic structural diagram of an apparatus for generating a container according to another embodiment of the present invention.
- FIG. 11 is a schematic structural diagram of a system for generating a container according to an embodiment of the present invention.
- a complete operating system environment including the basic service firmware, the basic service firmware provides a number of services, such as communication management for communication between different applications, authentication, authorized security services, error management Wait.
- Container A lightweight virtual machine that deploys and runs a base service variable program that is created by mirroring.
- FIG. 11 it is a schematic structural view of a system for generating a container according to the present embodiment.
- the system includes a server 1103 and a terminal 1110.
- the server 1103 stores a software package of the first basic service variable program
- the terminal 1110 is configured to generate a first container according to the image
- the image and the first container both include a basic service firmware, and are used to obtain the software package from the server, according to
- the software package installs the first basic service variable program in the first container, and the first basic service variable program provides the application service to the user based on the basic service firmware.
- the basic service firmware refers to the program related to the application operating environment, for example, from different applications.
- the basic service variable program is based on the basic service firmware to provide services for the user, for example, calling the basic service firmware to provide the user with Service, ie some applications.
- the basic service variable program in the server can be upgraded to optimize or perfect the function.
- the terminal 1110 can be various terminals, such as a mobile phone, a computer, a palmtop computer, and the like, and is not limited.
- the terminal 1110 specifically generates the first container according to the image, which belongs to the prior art, and details are not described herein again.
- the server 1103 may specifically send a first request for downloading the software package of the first basic service variable program, and the server 1103 receives the software for downloading the first basic service variable program sent by the terminal 1110.
- the first request of the package returns a software package to the terminal 1110 according to the first request, and the terminal 1110 can receive the software package returned by the server 1103, or the terminal 1110 sends the software package for downloading the first basic service variable program to the server 1103.
- the second request the server 1103 receives the second request of the software package for downloading the first basic service variable program sent by the terminal 1110, and returns the second address information of the software package according to the second request, so that the terminal 1110 can receive the server 1103 according to the server 1103.
- the second address information of the software package returned by the second request, and the software package is obtained according to the second address information.
- the installation operation can be performed, so that the first container has the first basic service variable program, and the first container can provide the user with the corresponding service.
- the terminal 1110 of this embodiment is further configured to:
- the first basic service variable program is upgraded according to the upgrade package.
- the software package of the first basic service variable program in the server 1103 can be replaced by the upgrade package, so that the terminal can obtain the upgrade package through the server 1103 and upgrade the first basic service variable program according to the upgrade package, thereby implementing function optimization. And perfect.
- the server 1103 is specifically configured to send the first address information of the upgrade package of the first basic service variable program to the terminal 1110.
- the terminal is specifically configured to: receive the first address information sent by the server, and obtain the first address information according to the first address information. Upgrade package.
- the server is specifically configured to: receive an acquisition request of the upgrade package of the first basic service variable program program sent by the terminal, and return the first address information of the upgrade package to the terminal according to the acquisition request.
- the terminal 1110 is specifically configured to:
- the two methods for obtaining the upgrade package are that the terminal 1110 obtains the first address information of the upgrade package, and then obtains the upgrade package according to the first address information.
- the server 1103 can also directly send the upgrade package to the terminal side 1110.
- the terminal 1110 directly receives the upgrade package of the first basic service variable program sent by the server 1103, or the server 1103 is specifically configured to: receive the download first by the terminal 1110.
- the receiving server 1103 returns an upgrade package according to the acquisition request.
- the terminal 1110 can directly install the upgrade package.
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then through the server.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first container may be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- the embodiment provides a method of generating a container, and the execution subject is a device for generating a container, and the device can be disposed in the terminal.
- FIG. 1 it is a schematic flow chart of a method of generating a container according to the present embodiment.
- the method of generating a container includes:
- Step 101 Generate a first container according to the image, and the basic service firmware is included in both the image and the first container.
- the basic service firmware is included in the image of this embodiment, and therefore, the base container is also included in the first container created by the mirror.
- Step 102 Obtain a software package of the first basic service variable program by using a server.
- the first basic service variable program provides an application service to the user based on the basic service firmware, that is, the first basic service variable program needs to run the application service in the environment of the basic service firmware.
- the step 102 may specifically include:
- the server learns the software package that needs to send the first basic service variable program according to the first request, and then sends the software package to the device.
- the step 102 may specifically include:
- the software package is obtained based on the second address information.
- the device When the server receives the second request, the device needs to obtain the software package of the first basic service variable program, and then sends the second address information of the software package to the device, so that the device downloads the software package by using the second address information.
- the device may perform step 102 after receiving the triggering command sent by the user, for example, the user selects the acquired first basic service variable program, or the user sends the instruction in the step 101 when the step 101 is triggered.
- the identification information of the basic service variable program so that the device can obtain the software package of the first basic service variable program through the server according to the identification information.
- the device can also actively perform step 102, so that the first basic service can be downloaded as soon as possible. Change the package of the program.
- Step 103 Install the first basic service variable program in the first container according to the software package.
- the first container can provide the user with the service function of the first basic service variable program.
- the image and the first container further include an acquisition application, where the acquisition application is used for data transmission with the server. That is, the operation of step 102 can be specifically performed by the acquisition application.
- the acquisition application may also include an entry point of the first base service variable program, ie where the first base service variable program begins to run.
- the mirror and the first container further include address information of the server to perform data transmission with the server according to the address information of the server. That is, the address information of the server is preset in the image. After the terminal generates the first container according to the image, the address information of the server is also stored in the first container. Correspondingly, the acquisition application can find the server according to the address information of the server, and then perform data transmission with the service.
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then The server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device can be The first container selects the downloaded basic service variable program, so that the personalized first container can be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- This embodiment further supplements the method for generating the first container in the first embodiment.
- This embodiment mainly supplements the method for upgrading the basic service variable program in the first container.
- FIG. 2 it is a schematic flowchart of a method of generating a first container according to the present embodiment.
- the method of generating the first container includes:
- Step 201 Generate a first container according to the image, and the basic service firmware is included in the image and the first container.
- the basic service firmware is included in the image of this embodiment, and therefore, the base container is also included in the first container created by the mirror.
- Step 202 Obtain a software package of the first basic service variable program by using a server.
- the first basic service variable program provides an application service to the user based on the basic service firmware, that is, the first basic service variable program needs to run the application service in the environment of the basic service firmware.
- the step 202 may specifically include:
- the server learns the software package that needs to send the first basic service variable program according to the first request, and then sends the software package to the device.
- the step 202 may specifically include:
- the software package is obtained based on the second address information.
- the device When the server receives the second request, the device needs to obtain the software package of the first basic service variable program, and then sends the second address information of the software package to the device, so that the device downloads the software package by using the second address information.
- the device may perform step 102 after receiving the triggering command sent by the user, for example, the user selects the acquired first basic service variable program, or the user sends the instruction in the step 101 when the step 101 is triggered.
- the identification information of the basic service variable program so that the device can obtain the software package of the first basic service variable program through the server according to the identification information.
- the device can also actively perform step 102, so that the first basic service can be downloaded as soon as possible. Change the package of the program.
- Step 203 Install the first basic service variable program in the first container according to the software package.
- the first container can provide the user with the service function of the first basic service variable program.
- Step 204 Acquire an upgrade package of the first basic service variable program by using a server.
- the first basic service variable program may be upgraded according to actual needs, so that the first basic service variable program needs to be upgraded in the first container.
- This step can include the following ways:
- Manner 1 receiving first address information of the upgrade package of the first basic service variable program sent by the server;
- the server obtains the first address information of the upgrade package of the first basic service variable program
- the first address information is sent to the device, and when the device receives the first address information, the device may be based on the first address. Information to download the upgrade package.
- the second address information of the first basic service variable program may be overwritten by the first address information.
- the upgrade package can be stored in any location, such as in a server or in an external storage. More specifically, after the server receives the first request sent by the device to download the software package of the first basic service variable program, the server records the identification information of the device, and stores the first location in the preset location of the server. After the address information or the download address of the original software package is overwritten by the first address information, the first address information is sent to the device, so that the device downloads the upgrade package by using the first address information.
- the software package is obtained based on the first address information.
- the device may actively send an acquisition request to the server to obtain an upgrade package of the first basic service variable program, so that when the server receives the acquisition request, the first address information is sent to the device according to the acquisition request.
- the second address information of the first basic service variable program may be overwritten by the first address information.
- the upgrade package can be stored in any location, such as in a server or in an external storage. More specifically, after receiving the acquisition request sent by the device, the server identifies whether there is first address information, and if so, sends the first address information to the device, so that the device downloads the upgrade package by using the first address information.
- Manner 3 The upgrade package of the first basic service variable program sent by the receiving server.
- the server After the server obtains the upgrade package, it actively sends the upgrade package to the device.
- the upgrade package can be used to cover the software package to save the storage space of the server.
- Manner 4 sending an acquisition request for downloading an upgrade package of the first basic service variable program to the server;
- the upgrade package returned by the receiving server according to the acquisition request is the upgrade package returned by the receiving server according to the acquisition request.
- the device may actively send an acquisition request to the server to obtain an upgrade package of the first basic service variable program, so that when the server receives the acquisition request, the device sends an upgrade package to the device according to the acquisition request.
- the upgrade package can be used to cover the software package to save server storage space.
- Step 205 Upgrade the first basic service variable program according to the upgrade package.
- This step can include the following ways:
- the first way install the upgrade package, generate a second basic service variable program
- the device generates a complete program in the first container, that is, the second basic service variable program, and after the installation is successful, uninstalls the first basic service variable program that is originally installed, and subsequently adopts the second basic service.
- the variable program is a user service
- the function of the second basic service variable program is superior to the first basic service variable program, and is an upgraded version of the first basic service variable program, where the two bases are used to distinguish the two.
- the service variable programs are respectively referred to as "first basic service variable program” and "second basic service variable program”, and may actually be referred to as the first basic service variable program, but only one original first basic service.
- Variable program a first basic service variable program optimized for function.
- the second way install the upgrade package to optimize the service function of the first basic service variable program.
- the service function of the first basic service variable program is optimized, that is, the first basic service variable program itself is upgraded. This way there is no need to uninstall the first base service variable program.
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then
- the server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first content can be set according to actual needs. In turn, it is possible to further save the generation time of the first container having the basic service variable program.
- the embodiment provides a method for generating a first container, the execution body of the method is a device for generating a first container, and the device for generating the first container may be located in a server.
- FIG. 3 it is a schematic flowchart of a method of generating a first container according to the present embodiment.
- the method includes:
- Step 301 Receive a third request sent by the first container to obtain a software package of the first basic service variable program.
- the first container is generated from the image.
- the underlying service firmware is included in the image, and the base server program can also be included in the first container.
- the first basic service variable program needs to be installed in the first container.
- the first container sends a third request for acquiring the software package of the first basic service variable program.
- the first basic service variable program provides an application service for the user based on the basic service firmware, and the basic service firmware is generated when the first container is generated according to the image.
- Step 302 Send information of the software package to the first container according to the third request, so that the first container acquires the software package according to the information of the software package, and installs the first basic service variable program in the first container.
- the server After receiving the third request, the server sends the information of the software package of the first basic service variable program to the first container, where the information of the software package of the first basic service variable program may be the first basic service variable program.
- the first address information may also be data information of the software package itself.
- the step may include the following methods:
- the first way sending the second address information of the software package to the first container according to the third request, so that the first container acquires the software package according to the second address information.
- this step first, it may be determined that the software package of the first basic service variable program corresponds to the plurality of address information, and if the determination result is yes, the latest address information is sent to the first container as the second address information. In this way, the first container acquires the software package of the first basic service variable program according to the second address information, and installs to serve the user with the latest version of the first basic service variable program.
- the second way sending the software package to the first container according to the third request.
- the server may first determine, according to the third request, whether the first basic service variable program corresponds to multiple software packages, and if the determination result is yes, send the latest software package to the first container, so that the first container is installed.
- the latest software package uses the latest version of the first basic service variable program to serve users based on a basic service variable program.
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then
- the server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first container may be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- This embodiment further supplements the method for generating the first container in the third embodiment.
- the method for upgrading the first container is mainly supplemented.
- the method for upgrading the first basic service variable program in the first container includes the following methods:
- Method 1 obtaining first address information of an upgrade package of the first basic service variable program
- the server After obtaining the first address information, the server actively sends the first address information to the first container, so that the first container can be upgraded in time.
- Manner 2 obtaining first address information of an upgrade package of the first basic service variable program
- the server sends the first address information to the server after obtaining the first address information and after receiving the acquisition request sent by the device.
- the time when the device sends the acquisition request may be sent according to a preset period, or may be sent at a special time, for example, at 2 am, so that the first basic service variable program can be implemented within a preset time period. It is very convenient to upgrade.
- the server stores the first basic service variable program package
- the second address information is used to cover the second address information by using the first address information, so that when the subsequent server sends the address information of the software package of the first basic service variable program to the first container, the first address information can be directly sent.
- Method 3 Obtain an upgrade package of the first basic service variable program
- the upgrade package is sent to the first container, so that the first container upgrades the first basic service variable program according to the upgrade package.
- the server After receiving the upgrade package of the first basic service variable program, the server actively sends the upgrade package to the first container, so that the first container can be upgraded in time.
- Method 4 Obtain an upgrade package of the first basic service variable program
- the server sends the upgrade package to the server after obtaining the upgrade package and after receiving the acquisition request sent by the device.
- the time when the device sends the acquisition request may be sent according to a preset period, or may be sent at a special time, for example, at 2 am, so that the first basic service variable program can be implemented within a preset time period. It is very convenient to upgrade.
- the method further includes:
- a package that covers the first basic service variable program with an upgrade package is
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then
- the server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first container may be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- upgrading the basic service variable program in the first container only the basic service variable program itself needs to be upgraded, and any information created by the user through the basic service variable program is not applied.
- the present embodiment provides a device for generating a container for performing the method of generating a container of the first embodiment, which device can be disposed in the first container described below.
- FIG. 4 it is a schematic structural view of an apparatus for generating a container according to the present embodiment.
- the apparatus for generating a container includes a generation module 401, a first acquisition module 402, and a first installation module 403.
- the generating module 401 is configured to generate a first container according to the image, and the first container includes the basic service firmware in the image and the first container.
- the first obtaining module 402 is configured to acquire the software package of the first basic service variable program by using the server.
- the basic service variable program provides an application service to the user based on the basic service firmware;
- the first installation module 403 is configured to install the first basic service variable program in the first container according to the software package.
- the first obtaining module 401 is specifically configured to:
- the first obtaining module 401 is specifically configured to:
- the software package is obtained based on the second address information.
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then
- the server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first container may be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- This embodiment further clarifies the apparatus of the fifth embodiment.
- FIG. 5 it is a schematic structural view of an apparatus for generating a container according to the present embodiment.
- the device includes a second acquisition module 501 and a second installation module 502 in addition to the generation module 401, the first acquisition module 402, and the first installation module 403 as shown in FIG.
- the second obtaining module 501 is configured to acquire, by using a server, an upgrade package of the first basic service variable program;
- the second installation module 502 is configured to upgrade the first basic service variable program according to the upgrade package.
- the second obtaining module 501 can be specifically used in the following manners:
- Manner 1 receiving first address information of the upgrade package of the first basic service variable program sent by the server;
- Manner 2 sending, to the server, an acquisition request for downloading an upgrade package of the first basic service variable program device
- the software package is obtained based on the first address information.
- Manner 3 The upgrade package of the first basic service variable program sent by the receiving server.
- Manner 4 sending an acquisition request for downloading an upgrade package of the first basic service variable program to the server;
- the upgrade package returned by the receiving server according to the acquisition request is the upgrade package returned by the receiving server according to the acquisition request.
- the second installation module 502 is used in the following manners:
- Method 1 Install the upgrade package to generate a second basic service variable program
- Method 2 Install the upgrade package to optimize the service function of the first basic service variable program.
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then
- the server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first container may be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- the embodiment provides a device for generating a container for performing the method of generating a container according to the first embodiment or the second embodiment, and the device may be disposed in the first container.
- the apparatus includes a processor 601 and a first input device 602.
- the processor 601 is configured to generate a first container according to the image, and the image and the first container each include a basic service firmware.
- the first input device 602 is configured to acquire the software package of the first basic service variable program by using the server.
- the basic service variable program provides an application service to the user based on the basic service firmware; the processor 601 is further configured to install the first basic service variable program in the first container according to the software package.
- the first input device 602 is further configured to acquire, by using a server, an upgrade package of the first basic service variable program;
- the processor 601 is further configured to upgrade the first basic service variable program according to the upgrade package.
- the processor 601 may be, for example, a central processing unit (CPU), an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), and a programmable logic.
- CPU central processing unit
- ASIC application specific integrated circuit
- DSP digital signal processor
- DSPD digital signal processing device
- PLD device
- FPGA field programmable gate array
- controller controller
- microcontroller microprocessor
- microprocessor or other electronic component coupled to the first input device 602 by a wired or wireless connection.
- the first input device 602 may include multiple input devices, for example, at least one of a user-oriented user interface, a device-oriented device interface, a software programmable interface, and a transceiver.
- the device-oriented device interface may be a wired interface for data transmission between the device and the device, or may be a hardware insertion interface (for example, a USB interface, a serial port, etc.) for data transmission between the device and the device.
- the user-oriented user interface may be, for example, a user-oriented control button, a voice input device for receiving voice input, and a touch-sensing device for receiving a user's touch input (eg, a touch screen with touch sensing function, touch
- the programmable interface of the software may be, for example, an input for the user to edit or modify the program, such as an input pin interface or an input interface of the chip; optionally, the transceiver may have Radio frequency transceiver chip, baseband processing chip, and transceiver antenna for communication functions.
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then
- the server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first container may be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- the embodiment provides a device for generating a container for performing the method of generating a container of the third embodiment.
- the device can be placed in the server.
- the device includes a first receiving module 701 and a first transmitting module 702.
- the first receiving module 701 is configured to receive a third request that is sent by the first container to obtain a software package of the first basic service variable program, where the first sending module 702 is configured to send the software package to the first container according to the third request.
- Information so that the first container acquires the software package according to the information of the software package, and installs the first basic service variable program in the first container, and the first basic service variable program provides the application service to the user based on the basic service firmware, the basis
- the service firmware is generated when the first container is generated from the image.
- the first sending module 702 is specifically configured to send the second address information of the software package to the first container according to the third request, so that the first container acquires the software package according to the second address information.
- the third sending module is specifically configured to:
- the latest address information is sent to the first container as the second address information.
- the first sending module 702 is specifically configured to send the software package to the first container according to the third request.
- the first sending module 702 is specifically configured to:
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then
- the server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first container may be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- This embodiment further clarifies the apparatus for generating a container of the eighth embodiment.
- FIG. 8 it is a schematic structural view of an apparatus for generating a container according to the present embodiment.
- the device 800 is in addition to the package
- the first receiving module 701 and the first sending module 702 shown in FIG. 7 further include a third obtaining module 801 and a second sending module 802.
- the third obtaining module 801 is configured to obtain first address information of the upgrade package of the first basic service variable program
- the second sending module 802 is configured to send the first address information to the first container, so that the first container is configured according to the first An address information obtains an upgrade package, and the first basic service variable program is upgraded according to the upgrade package.
- the apparatus 800 may further include a second receiving module 803, configured to receive an acquisition request sent by the first container for downloading the upgrade package of the first basic service variable program.
- the second sending module 802 is specifically configured to send the first address information to the first container according to the obtaining request.
- the apparatus 800 of this embodiment further includes a first coverage module 804, where the first coverage module 804 is configured to cover the second address information by using the first address information, where the second address information is the first basic service variable program.
- the address information of the package is not limited to the first coverage module 804
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then
- the server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first container may be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- This embodiment further clarifies the apparatus for generating a container of the eighth embodiment.
- the device 900 includes a first receiving module 701 and a first sending module 702 as shown in FIG. 7, and a fourth obtaining module 901 and a third sending module 902.
- the fourth obtaining module 901 is configured to acquire an upgrade package of the first basic service variable program; the third sending module 902 is configured to send an upgrade package to the first container, so that the first container upgrades the first basic service variable program according to the upgrade package.
- the apparatus 900 of this embodiment further includes a third receiving module 903, configured to receive an acquiring request that is sent by the first container and used to download the upgrade package of the first basic service variable program.
- the third sending module 902 is specifically configured to send the upgrade package to the first container according to the obtaining request.
- the apparatus 900 of this embodiment further includes a second coverage module 904, where the second coverage module 904 is configured to cover the software package of the first basic service variable program by using an upgrade package.
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then
- the server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first container may be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- the embodiment provides a device for generating a container for performing the method of generating a container of the third embodiment or the fourth embodiment.
- the device can be placed in the server.
- FIG. 10 it is a schematic structural view of an apparatus for generating a container according to the present embodiment.
- the device includes a second input device 1001 and an output device 1002.
- the second input device 1001 is configured to receive a third request that is sent by the first container to obtain a software package of the first basic service variable program
- the output device 1002 is configured to send information about the software package to the first container according to the third request, where So that the first container acquires the software package according to the information of the software package, and installs the first basic service variable program in the first container, and the first basic service variable program provides the application service to the user based on the basic service curing program, and the basic service is cured.
- the program is generated when the first container is generated from the image.
- the second input device 1001 is further configured to acquire first address information of the upgrade package of the first basic service variable program; the output device 1002 is further configured to send the first address information to the first container, so that the first container The upgrade package is obtained according to the first address information, and the first basic service variable program is upgraded according to the upgrade package.
- the basic service firmware is set in the image to generate the basic service firmware in the first container when the first container is created, and then
- the server obtains the software package of the basic service variable program and installs it, so that there is no maintenance information for maintaining the basic service firmware and the basic service variable program in the image, so the speed of generating the first container capable of providing the application service is Faster, and the space of the first container is not occupied by maintenance information.
- the device may select the downloaded basic service variable program for the first container, so that the personalized first container may be set according to actual needs, thereby further saving the generation time of the first container having the basic service variable program.
- the system for generating a container of the present embodiment includes the apparatus and mirror image for generating a container of any of the foregoing embodiments, that is, a container and a server including the apparatus for generating a container of any of the foregoing embodiments.
- FIG. 11 is a schematic structural diagram of a system for generating a container according to the embodiment.
- the image 1101 is set in the terminal 1110, and the acquisition application is also set.
- the acquisition application is, for example, an Entrypoint module 11011.
- the terminal 1110 of this embodiment may receive an upgrade package of the first basic service variable program sent by the server. In this way, the terminal 1110 can install the upgrade package, generate the second basic service variable program, and uninstall the first basic service variable program, or install the upgrade package to optimize the service function of the first basic service variable program.
- the terminal 1110 generates a first container 1102 according to the image 1101.
- the image 1101 includes a basic service firmware. Therefore, the first container 1102 also includes a basic service firmware, and an Entrypoint module 11021 is generated.
- the Entrypoint module 11021 is specifically configured. The subsequent operation of acquiring the software package of the first basic service variable program for the first container 1102 and performing the installation is performed. Since the Entrypoint module 11021 is disposed in the first container 1102, the operation of the Entrypoint module 11021 is also the operation of the first container 1102.
- the first container 1102 sends an acquisition request of the software package for acquiring the first basic service variable program to the server 1103.
- the server 1103 records the identifier of the first container 1102 and sends the identifier to the first container 1102.
- the second address information of the software package of the first basic service variable program the first container 1102 receives the After the second address information, the first basic service variable program is downloaded through the second address information, and the first basic service variable program 11022 is installed to adopt the first basic service based on the basic service firmware in the first container 1102.
- the variable program 11022 provides a service function to the user.
- the container 1103 can query, according to the previous record, which containers have the first basic service variable program installed, and when the first container is identified. 1102: The first basic service variable program is installed, and the first address information is sent to the first container 1102. After receiving the first address information, the first container 1102 downloads the upgrade package, and installs the second package.
- the basic service variable program, the second basic service variable program is the first basic service variable program after the function optimization, and then the first basic service variable program is uninstalled, and based on the basic service curing program in the first container 1102
- the second basic service variable program provides a service function for the user.
- the first container 1102 after receiving the first address information, the first container 1102 overwrites the second address information with the first address information.
- a second container 1104 may be created according to actual needs, the second container having a larger capacity than the first container 1102. Specifically, the second container 1104 is generated according to the image 1101. How to create the second container 1104 according to the image is specific to the prior art, and details are not described herein again.
- the second container 1104 includes an underlying service firmware and an Entrypoint module 11041 is also generated.
- the second container 1104 acquires the software package of the first basic service variable program through the server 1103. Since the first address information of the latest version of the first basic service variable program is included in the server 1103, after the second container 1104 downloads the software package of the first basic service variable program and installs, the latest version can be adopted.
- the first basic service variable program provides a service function for the user. In this way, it is possible to prevent the newly generated first container caused by the basic service variable program from being located in the image, and the operation of upgrading the installed basic service variable program is required, thereby saving operation steps.
- the present invention also provides a terminal comprising the apparatus for generating a container according to any of the embodiments 5 to 7.
- the present invention also provides a server comprising the apparatus for generating a container according to any of the embodiments 8 to 11.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
一种生成容器的方法、装置、终端、服务器与系统,该方法包括:根据镜像生成第一容器,所述镜像和第一容器中均包括基础服务固化程序;通过服务器获取第一基础服务可变程序的软件包,并根据所述软件包在所述第一容器中安装所述第一基础服务可变程序,所述第一基础服务可变程序基于所述基础服务固化程序为用户提供应用服务。该方法能够提高容器的创建速度。
Description
本申请要求2016年08月29日递交的申请号为201610757354.X、发明名称为“生成容器的方法、装置、终端、服务器与系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及服务器技术,尤其涉及一种生成容器的方法、装置、终端、服务器与系统。
集装箱(Docker)是一个开源的应用容器引擎,其可以提供一种应用的自动化部署解决方案,具体地,可以通过镜像迅速创建一个容器(container),容器即为轻量级虚拟机,其部署和运行基础服务可变程序,并通过配置文件可以轻松实现基础服务可变程序的自动化安装、部署和升级,非常方便。Docker虚拟出多个容器,每个容器之间相互隔离没有借口,可以将彼此的生产环境和开发环境分开,互不影响。
现有技术中,用于创建容器的镜像为一个完整的基础操作系统环境,其包括基础服务固化程序和基础服务可变程序,其中,基础服务固化程序所提供的服务包括很多,例如从用于不同应用之间的通信的通信管理、身份验证、授权的安全服务、错误管理等,基础服务可变程序是依托于基础服务固化程序来为用户提供服务的,例如调用基础服务固化程序来为用户提供服务,即一些应用程序。在根据镜像创建容器之后,容器中也会包括基础服务固化程序和基础服务可变程序。由于基础服务可变程序依托于基础服务固化程序,因此,镜像需要创建一些信息以维护两者之间的关系,例如在镜像中设置基础服务可变程序后,镜像中不仅多了基础服务可变程序,而且还需要记录基础服务可变程序的位置信息,这样在通过镜像创建容器时,这些位置信息也会存在于容器中,这样不仅会占用容器的空间,还会影响容器的创建速度。
发明内容
本申请提供一种生成容器的方法、装置、终端、服务器与系统,以解决现有技术中容器的创建速度慢的问题。
一个方面,本申请提供一种生成容器的系统,包括:
服务器,存储有第一基础服务变化程序基础服务可变程序的软件包;
终端,用于根据镜像生成第一容器,所述镜像和第一容器中均包括基础服务固化程序,并用于从所述服务器中获取所述软件包,根据所述软件包在所述第一容器中安装所述第一基础服务变化程序基础服务可变程序,所述第一基础服务变化程序基础服务可变程序基于所述基础服务固化程序为用户提供应用服务。
另一个方面,本申请提供一种生成容器的方法,包括:
根据镜像生成第一容器,所述镜像和第一容器中均包括基础服务固化程序;
通过服务器获取第一基础服务可变程序的软件包,并根据所述软件包在所述第一容器中安装所述第一基础服务可变程序,所述第一基础服务可变程序基于所述基础服务固化程序为用户提供应用服务。
另一方面,本申请提供一种生成容器的方法,包括:
接收第一容器发送的获取第一基础服务可变程序的软件包的第三请求;
根据所述第三请求向所述第一容器发送所述软件包的信息,以使所述第一容器根据所述软件包的信息获取所述软件包,并在所述第一容器内安装所述第一基础服务可变程序,所述第一基础服务可变程序基于基础服务固化程序为用户提供应用服务,所述基础服务固化程序是根据镜像生成所述第一容器时生成的。
再一方面,本申请提供一种生成容器的装置,包括:
生成模块,用于根据镜像生成第一容器,所述镜像和第一容器中均包括基础服务固化程序;
第一获取模块,用于通过服务器获取第一基础服务可变程序的软件包,所述第一基础服务可变程序基于所述基础服务固化程序为用户提供应用服务;
第一安装模块,用于根据所述软件包在所述第一容器中安装所述第一基础服务可变程序。
又一方面,本申请提供一种生成容器的装置,包括:
处理器,用于根据镜像生成第一容器,所述镜像和第一容器中均包括基础服务固化程序;
第一输入设备,用于通过服务器获取第一基础服务可变程序的软件包,所述第一基础服务可变程序基于所述基础服务固化程序为用户提供应用服务;
所述处理器还用于,根据所述软件包在所述第一容器中安装所述第一基础服务可变程序。
另一方面,本申请提供一种终端,包括前述任意一项的装置。
再一方面,本申请提供一种生成容器的装置,包括:
第一接收模块,用于接收第一容器发送的获取第一基础服务可变程序的软件包的第三请求;
第一发送模块,用于根据所述第三请求向所述第一容器发送所述软件包的信息,以使所述第一容器根据所述软件包的信息获取所述软件包,并在所述第一容器内安装所述第一基础服务可变程序,所述第一基础服务可变程序基于基础服务固化程序为用户提供应用服务,所述基础服务固化程序是根据镜像生成所述第一容器时生成的。
又一方面,本申请提供一种生成容器的装置,包括:
第二输入设备,用于接收第一容器发送的获取第一基础服务可变程序的软件包的第三请求;
输出设备,用于根据所述第三请求向所述第一容器发送所述软件包的信息,以使所述第一容器根据所述软件包的信息获取所述软件包,并在所述第一容器内安装所述第一基础服务可变程序,所述第一基础服务可变程序基于基础服务固化程序为用户提供应用服务,所述基础服务固化程序是根据镜像生成所述第一容器时生成的。
另一方面,本申请提供一种服务器,包括前述任意一项的装置。
再一方面,本申请提供一种生成容器的系统,包括前述的终端、服务器和镜像。
在本申请中,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请一实施例的生成容器的方法的流程示意图;
图2为本申请另一实施例的生成容器的方法的流程示意图;
图3为本申请再一实施例的生成容器的方法的流程示意图;
图4为本发明一实施例提供的生成容器的装置的结构示意图;
图5为本发明另一实施例提供的生成容器的装置的结构示意图;
图6为本发明再一实施例提供的生成容器的装置的结构示意图;
图7为本发明又一实施例提供的生成容器的装置的结构示意图;
图8为本发明另一实施例提供的生成容器的装置的结构示意图;
图9为本发明再一实施例提供的生成容器的装置的结构示意图;
图10为本发明又一实施例提供的生成容器的装置的结构示意图;
图11为本发明一实施例提供的生成容器的系统的结构示意图。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。
为了清楚起见,首先说明本发明使用的特定词或短语的定义。
镜像:一个完整的操作系统环境,包括基础服务固化程序,基础服务固化程序所提供的服务包括很多,例如从用于不同应用之间的通信的通信管理、身份验证、授权的安全服务、错误管理等。
容器:轻量级虚拟机,其部署和运行基础服务可变程序,其通过镜像创建。
首先对本发明的生成容器的系统进行相关介绍。
如图11所示,为根据本实施例的生成容器的系统的结构示意图。该系统包括服务器1103和终端1110。其中服务器1103存储有第一基础服务可变程序的软件包,终端1110用于根据镜像生成第一容器,镜像和第一容器中均包括基础服务固化程序,并用于从服务器中获取软件包,根据软件包在第一容器中安装第一基础服务可变程序,第一基础服务可变程序基于基础服务固化程序为用户提供应用服务。
其中,基础服务固化程序是指与应用程序运行环境相关的程序,例如从用于不同应
用之间的通信的通信管理、身份验证、授权的安全服务、错误管理等,基础服务可变程序是依托于基础服务固化程序来为用户提供服务的,例如调用基础服务固化程序来为用户提供服务,即一些应用程序。服务器中基础服务可变程序能够升级,进而实现功能的优化或者完善。
终端1110可以是各种终端,例如手机、电脑、掌上电脑等各种终端,具体不做限定。
终端1110具体如何根据镜像生成第一容器,属于现有技术,在此不再赘述。
当终端1110生成第一容器之后,具体可以向服务器1103发送下载第一基础服务可变程序的软件包的第一请求,服务器1103在接收到终端1110发送的下载第一基础服务可变程序的软件包的第一请求,根据第一请求向终端1110返回软件包,进而终端1110可以接收到服务器1103返回的软件包,或者,终端1110向服务器1103发送下载第一基础服务可变程序的软件包的第二请求,服务器1103接收终端1110发送的下载第一基础服务可变程序的软件包的第二请求,并根据第二请求返回软件包的第二地址信息,这样终端1110可以接收到服务器1103根据第二请求返回的软件包的第二地址信息,并根据第二地址信息获取软件包。
终端获取到该软件包之后,就可以执行安装操作,进而使得第一容器中具有第一基础服务可变程序,第一容器能够为用户提供相应地服务。
可选地,本实施例的终端1110还用于:
通过服务器1103获取第一基础服务可变程序的升级包;
根据升级包对第一基础服务可变程序进行升级。
服务器1103中的第一基础服务可变程序的软件包可以被升级包所代替,这样,终端可以通过服务器1103获取升级包并根据升级包对第一基础服务可变程序进行升级,进而实现功能优化与完善。
服务器1103具体可以用于向终端1110发送第一基础服务可变程序的升级包的第一地址信息,相应地,终端具体用于:接收服务器发送的第一地址信息,并根据第一地址信息获取升级包。
服务器具体用于:接收终端发送的下载第一基础服务可变程序器的升级包的获取请求,并根据获取请求向终端返回升级包的第一地址信息。相应地,终端1110具体用于:
向服务器1103发送下载第一基础服务可变程序器的升级包的获取请求;
接收服务器1103返回的升级包的第一地址信息;
根据第一地址信息获取升级包。
上述两种获取升级包的方式为终端1110侧获取升级包的第一地址信息,进而根据第一地址信息获取升级包。
服务器1103也可以直接向终端侧1110发送该升级包,这样,终端1110直接接收服务器1103发送的第一基础服务可变程序的升级包,或者服务器1103具体用于:接收终端1110发送的下载第一基础服务可变程序器的升级包的获取请求,并根据获取请求向终端返回升级包;相应地,终端1110具体用于:
向服务器1103发送下载第一基础服务可变程序器的升级包的获取请求;
接收服务器1103根据获取请求返回的升级包。
这样,终端1110接收到升级包之后,可以直接安装该升级包。
本发明中,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。
实施例一
本实施例提供一种生成容器的方法,执行主体为生成容器的装置,该装置可以设置在终端中。
如图1所示,为根据本实施例的生成容器的方法的流程示意图。该生成容器的方法包括:
步骤101,根据镜像生成第一容器,镜像和第一容器中均包括基础服务固化程序。
本实施例的镜像中包括的是基础服务固化程序,因此,通过镜像所创建的第一容器中也包括基础服务。
具体如何通过镜像生成第一容器属于现有技术,在此不再赘述。
步骤102,通过服务器获取第一基础服务可变程序的软件包。
第一基础服务可变程序基于基础服务固化程序为用户提供应用服务,即,该第一基础服务可变程序需运行在基础服务固化程序的环境下为用户提供应用服务。
该步骤102具体可以包括:
向服务器发送下载第一基础服务可变程序的软件包的第一请求;
接收服务器根据第一请求返回的软件包。
即,装置向服务器发送第一请求后,服务器根据该第一请求获知需发送第一基础服务可变程序的软件包,接下来就向装置发送该软件包。
或者是,该步骤102具体可以包括:
向服务器发送下载第一基础服务可变程序的软件包的第二请求;
接收服务器根据第二请求返回的软件包的第二地址信息;
根据第二地址信息获取软件包。
当服务器接收到第二请求时,获知装置需获取第一基础服务可变程序的软件包,则向装置发送该软件包的第二地址信息,这样,装置通过该第二地址信息下载软件包。
需指出的是,装置可以在接收到用户发送的触发指令之后执行步骤102,例如由用户选择所获取的第一基础服务可变程序,或者用户在触发步骤101时所发送的指令中带有第一基础服务可变程序的标识信息,这样装置可以根据该标识信息通过服务器获取第一基础服务可变程序的软件包,当然,装置也可以主动执行步骤102,进而能够尽快下载第一基础服务可变程序的软件包。
步骤103,根据软件包在第一容器中安装第一基础服务可变程序。
软件包安装至第一容器中后,第一容器就可以为用户提供第一基础服务可变程序的服务功能。
可选地,镜像和第一容器中均还包括获取应用,该获取应用用于与服务器进行数据传输。即步骤102的操作具体可以通过该获取应用来完成。该获取应用还可以包括第一基础服务可变程序的入口点,即第一基础服务可变程序开始运行的地方。
可选地,镜像和第一容器中均还包括服务器的地址信息,以根据服务器的地址信息与服务器进行数据传输。即镜像中预先设置有服务器的地址信息,当终端根据镜像生成第一容器之后,第一容器中也会存储有服务器的地址信息。相应地,获取应用可以根据该服务器的地址信息查找到服务器,进而与服务进行数据传输。
根据本实施例,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为
第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。
实施例二
本实施例对实施例一的生成第一容器的方法做进一步补充说明。本实施例主要对第一容器中的基础服务可变程序进行升级的方法做补充说明。
如图2所示,为根据本实施例的生成第一容器的方法的流程示意图。该生成第一容器的方法包括:
步骤201,根据镜像生成第一容器,镜像和第一容器中均包括基础服务固化程序。
本实施例的镜像中包括的是基础服务固化程序,因此,通过镜像所创建的第一容器中也包括基础服务。
具体如何通过镜像生成第一容器属于现有技术,在此不再赘述。
步骤202,通过服务器获取第一基础服务可变程序的软件包。
第一基础服务可变程序基于基础服务固化程序为用户提供应用服务,即,该第一基础服务可变程序需运行在基础服务固化程序的环境下为用户提供应用服务。
该步骤202具体可以包括:
向服务器发送下载第一基础服务可变程序的软件包的第一请求;
接收服务器根据第一请求返回的软件包。
即,装置向服务器发送第一请求后,服务器根据该第一请求获知需发送第一基础服务可变程序的软件包,接下来就向装置发送该软件包。
或者是,该步骤202具体可以包括:
向服务器发送下载第一基础服务可变程序的软件包的第二请求;
接收服务器根据第二请求返回的软件包的第二地址信息;
根据第二地址信息获取软件包。
当服务器接收到第二请求时,获知装置需获取第一基础服务可变程序的软件包,则向装置发送该软件包的第二地址信息,这样,装置通过该第二地址信息下载软件包。
需指出的是,装置可以在接收到用户发送的触发指令之后执行步骤102,例如由用户选择所获取的第一基础服务可变程序,或者用户在触发步骤101时所发送的指令中带有第一基础服务可变程序的标识信息,这样装置可以根据该标识信息通过服务器获取第一基础服务可变程序的软件包,当然,装置也可以主动执行步骤102,进而能够尽快下载第一基础服务可变程序的软件包。
步骤203,根据软件包在第一容器中安装第一基础服务可变程序。
软件包安装至第一容器中后,第一容器就可以为用户提供第一基础服务可变程序的服务功能。
步骤204,通过服务器获取第一基础服务可变程序的升级包。
第一容器在安装第一基础服务可变程序之后,第一基础服务可变程序有可能根据实际需要进行升级,这样就需要在第一容器内对第一基础服务可变程序进行升级。
该步骤可以包括以下几种方式:
方式一:接收服务器发送的第一基础服务可变程序的升级包的第一地址信息;
根据第一地址信息获取升级包。
当服务器获取到第一基础服务可变程序的升级包的第一地址信息时,就主动将该第一地址信息发送给装置,装置接收到该第一地址信息时,就可以根据该第一地址信息下载该升级包。
需指出的是,若服务器中存储的是第一基础服务可变程序的第二地址信息,则可以采用第一地址信息覆盖该第二地址信息。
具体地,该升级包可以存储在任何位置,例如服务器中或外置存储器中。更为具体地,当服务器接收到装置发送的下载第一基础服务可变程序的软件包的第一请求之后,服务器记录该装置的标识信息,并在识别出服务器的预设位置存储有第一地址信息或原软件包的下载地址被第一地址信息覆盖之后,向装置发送该第一地址信息,以便装置通过该第一地址信息下载升级包。
方式二:
向服务器发送下载第一基础服务可变程序器的升级包的获取请求;
接收服务器返回的升级包的第一地址信息;
根据第一地址信息获取软件包。
该种方式中,装置可以主动向服务器发送获取请求以获取第一基础服务可变程序的升级包,这样,当服务器接收到获取请求时,根据该获取请求向装置发送第一地址信息。
需指出的是,若服务器中存储的是第一基础服务可变程序的第二地址信息,则可以采用第一地址信息覆盖该第二地址信息。
具体地,该升级包可以存储在任何位置,例如服务器中或外置存储器中。更为具体地,当服务器接收到装置发送的获取请求后,识别是否有第一地址信息,若有,则向装置发送该第一地址信息,以便装置通过该第一地址信息下载升级包。
方式三:接收服务器发送的第一基础服务可变程序的升级包。
当服务器获取到升级包之后,主动向装置发送该升级包。
需指出的是,若服务器中预先存储的是第一基础服务可变程序的软件包,则可以采用该升级包覆盖软件包,以节省服务器的存储空间。
方式四:向服务器发送下载第一基础服务可变程序器的升级包的获取请求;
接收服务器根据获取请求返回的升级包。
该种方式中,装置可以主动向服务器发送获取请求以获取第一基础服务可变程序的升级包,这样,当服务器接收到获取请求时,根据该获取请求向装置发送升级包。
需指出的是,若服务器中预先存储的是第一基础服务可变程序的软件包,则可以采用该升级包覆盖软件包,以节省服务器存储空间。
步骤205,根据升级包对第一基础服务可变程序进行升级。
该步骤可以包括以下几种方式:
第一种方式:安装升级包,生成第二基础服务可变程序;
卸载第一基础服务可变程序。
该种方式中,装置在第一容器中生成一个完整的程序,即第二基础服务可变程序,并在安装成功后,卸载原先安装的第一基础服务可变程序,后续采用第二基础服务可变程序为用户服务,该第二基础服务可变程序的功能优于第一基础服务可变程序,为第一基础服务可变程序的升级版本,该处为了区别两者而将两个基础服务可变程序分别称为“第一基础服务可变程序”和“第二基础服务可变程序”,实际上均可以称为第一基础服务可变程序,只是一个为原始的第一基础服务可变程序,一个为功能优化后的第一基础服务可变程序。
第二种方式:安装升级包,以优化第一基础服务可变程序的服务功能。
该种方式对第一基础服务可变程序的服务功能进行优化,即对第一基础服务可变程序本身进行升级。这种方式无需卸载第一基础服务可变程序。
根据本实施例,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容
器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。另外,在升级第一容器中的基础服务可变程序时,仅需要对基础服务可变程序本身进行升级,并不会影响用户通过基础服务可变程序创建的任何信息。这样,也不会造成容器需要停机的问题,即容器不会被其它容器替代以为用户提供服务,使用该容器产生的服务内容会一直存在。此外,在对第一容器扩容时,例如通过镜像生成第二容器,由于服务器中具有的是最新的基础服务可变程序,通过镜像生成的更大容量的容器时,该更大容量的容器中也是最新的基础服务可变程序。
实施例三
本实施例提供一种生成第一容器的方法,该方法的执行主体为生成第一容器的装置,该生成第一容器的装置可以位于服务器中。
如图3所示,为根据本实施例的生成第一容器的方法的流程示意图。该方法包括:
步骤301,接收第一容器发送的获取第一基础服务可变程序的软件包的第三请求。
该第一容器是根据镜像生成的。镜像中包括基础服务固化程序,第一容器中也可以包括基础服务器程序。接下来,需要再第一容器中安装第一基础服务可变程序,此时,第一容器发送获取第一基础服务可变程序的软件包的第三请求。其中,第一基础服务可变程序基于基础服务固化程序为用户提供应用服务,基础服务固化程序是根据镜像生成第一容器时生成的。
步骤302,根据第三请求向第一容器发送软件包的信息,以使第一容器根据软件包的信息获取软件包,并在第一容器内安装第一基础服务可变程序。
服务器接收到第三请求后,就向第一容器发送第一基础服务可变程序的软件包的信息,该第一基础服务可变程序的软件包的信息可以是第一基础服务可变程序的第一地址信息,也可以是软件包本身的数据信息。
具体地,该步骤可以包括以下几种方式:
第一种方式:根据第三请求向第一容器发送软件包的第二地址信息,以使第一容器根据第二地址信息获取软件包。
该步骤中,首先可以判断第一基础服务可变程序的软件包对应多个地址信息,若判断结果为是,则将最新的地址信息作为第二地址信息发送至第一容器。这样,第一容器根据该第二地址信息获取第一基础服务可变程序的软件包,并进行安装,以采用最新版本的第一基础服务可变程序为用户进行服务。
第二种方式:根据第三请求向第一容器发送软件包。
该步骤中,服务器可以首先根据第三请求判断第一基础服务可变程序是否对应多个软件包,若判断结果为是,则将最新的软件包发送至第一容器,以使第一容器安装该最新的软件包,采用最新版本的第一基础服务可变程序基于基础服务可变程序为用户提供服务。
根据本实施例,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。
实施例四
本实施例对实施例三的生成第一容器的方法做进一步补充说明。本实施例中,主要对第一容器升级的方法做进一步补充说明。
本实施例中,在在根据第三请求向第一容器发送软件包之后,对第一容器中的第一基础服务可变程序进行升级的方法包括以下几种方式:
方式一:获取第一基础服务可变程序的升级包的第一地址信息;
向第一容器发送第一地址信息,以使第一容器根据第一地址信息获取升级包,并根据升级包对第一基础服务可变程序进行升级。
服务器获取到第一地址信息之后,就主动向第一容器发送第一地址信息,以便第一容器能够及时升级。
方式二:获取第一基础服务可变程序的升级包的第一地址信息;
接收第一容器发送的用于下载第一基础服务可变程序器的升级包的获取请求;
根据获取请求向第一容器发送第一地址信息,以使第一容器根据第一地址信息获取升级包,并根据升级包对第一基础服务可变程序进行升级。
服务器在获取到第一地址信息之后且在接收到装置发送的获取请求后,才将第一地址信息发送给服务器。装置发送获取请求的时间可以是按照预设周期发送,也可以是在某个特殊的时间发送,例如在凌晨2点发送,这样就可以实现在预设时间段内对第一基础服务可变程序进行升级,非常便利。
需指出的是,上述两种方式中,若服务器中存储有第一基础服务可变程序的软件包
的第二地址信息,则采用第一地址信息覆盖第二地址信息,这样,后续服务器向第一容器发送第一基础服务可变程序的软件包的地址信息时,可以直接发送第一地址信息。
方式三:获取第一基础服务可变程序的升级包;
向第一容器发送升级包,以使第一容器根据升级包对第一基础服务可变程序进行升级。
服务器接收到第一基础服务可变程序的升级包之后,就主动向第一容器发送升级包,以便第一容器能够及时得到升级。
方式四:获取第一基础服务可变程序的升级包;
接收第一容器发送的用于下载第一基础服务可变程序器的升级包的获取请求;
根据获取请求向第一容器发送升级包,以使第一容器根据升级包对第一基础服务可变程序进行升级。
服务器在获取到升级包之后且在接收到装置发送的获取请求后,才将升级包发送给服务器。装置发送获取请求的时间可以是按照预设周期发送,也可以是在某个特殊的时间发送,例如在凌晨2点发送,这样就可以实现在预设时间段内对第一基础服务可变程序进行升级,非常便利。
需指出的是,方式三和方式四中,在获取第一基础服务可变程序的升级包之后,且在向第一容器发送升级包之前,还包括:
采用升级包覆盖第一基础服务可变程序的软件包。
这样,既可以节省服务器的存储空间,又可以避免由于有多个第一基础服务可变程序的软件包而导致的需判断的操作,简化流程。
根据本实施例,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。另外,在升级第一容器中的基础服务可变程序时,仅需要对基础服务可变程序本身进行升级,并不会应用用户通过基础服务可变程序创建的任何信息。
实施例五
本实施例提供一种生成容器的装置,用于执行实施例一的生成容器的方法,该装置可以设置在下述的第一容器中。
如图4所示,为根据本实施例的生成容器的装置的结构示意图。该生成容器的装置包括生成模块401、第一获取模块402和第一安装模块403。
其中,生成模块401用于根据镜像生成第一容器,镜像和第一容器中均包括基础服务固化程序;第一获取模块402用于通过服务器获取第一基础服务可变程序的软件包,第一基础服务可变程序基于基础服务固化程序为用户提供应用服务;第一安装模块403用于根据软件包在第一容器中安装第一基础服务可变程序。
可选地,第一获取模块401具体用于:
向服务器发送下载第一基础服务可变程序的软件包的第一请求;
接收服务器根据第一请求返回的软件包。
或者,可选地,第一获取模块401具体用于:
向服务器发送下载第一基础服务可变程序的软件包的第二请求;
接收服务器根据第二请求返回的软件包的第二地址信息;
根据第二地址信息获取软件包。
关于本实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
根据本实施例,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。
实施例六
本实施例对实施例五的装置做进一步补充说明。
如图5所示,为根据本实施例的生成容器的装置的结构示意图。该装置除了包括如图4所示的生成模块401、第一获取模块402和第一安装模块403,还包括第二获取模块501和第二安装模块502。
其中,第二获取模块501用于通过服务器获取第一基础服务可变程序的升级包;第
二安装模块502用于根据升级包对第一基础服务可变程序进行升级。
可选地,第二获取模块501可以具体用于以下几种方式:
方式一:接收服务器发送的第一基础服务可变程序的升级包的第一地址信息;
根据第一地址信息获取升级包。
方式二:向服务器发送下载第一基础服务可变程序器的升级包的获取请求;
接收服务器返回的升级包的第一地址信息;
根据第一地址信息获取软件包。
方式三:接收服务器发送的第一基础服务可变程序的升级包。
方式四:向服务器发送下载第一基础服务可变程序器的升级包的获取请求;
接收服务器根据获取请求返回的升级包。
可选地,第二安装模块502用于以下几种方式:
方式一:安装升级包,生成第二基础服务可变程序;
卸载第一基础服务可变程序。
方式二:安装升级包,以优化第一基础服务可变程序的服务功能。
关于本实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
根据本实施例,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。另外,在升级第一容器中的基础服务可变程序时,仅需要对基础服务可变程序本身进行升级,并不会影响用户通过基础服务可变程序创建的任何信息。这样,也不会造成容器需要停机的问题,即容器不会被其它容器替代以为用户提供服务,使用该容器产生的服务内容会一直存在。
实施例七
本实施例提供一种生成容器的装置,用于执行实施例一或实施例二的生成容器的方法,该装置可以设置在第一容器中。
如图6所示,为根据本实施例的装置的结构示意图。该装置包括处理器601和第一输入设备602。其中,处理器601用于根据镜像生成第一容器,镜像和第一容器中均包括基础服务固化程序;第一输入设备602用于通过服务器获取第一基础服务可变程序的软件包,第一基础服务可变程序基于基础服务固化程序为用户提供应用服务;处理器601还用于根据软件包在第一容器中安装第一基础服务可变程序。
可选地,第一输入设备602还用于通过服务器获取第一基础服务可变程序的升级包;
处理器601还用于根据升级包对第一基础服务可变程序进行升级。
可选的,上述处理器601例如可以为中央处理器(Central Processing Unit,简称CPU)、应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,该处理器601通过有线或无线连接耦合到上述第一输入设备602。
可选的,上述第一输入设备602可以包括多种输入设备,例如可以包括面向用户的用户接口、面向设备的设备接口、软件的可编程接口、收发信机中的至少一个。可选的,该面向设备的设备接口可以是用于设备与设备之间进行数据传输的有线接口、还可以是用于设备与设备之间进行数据传输的硬件插入接口(例如USB接口、串口等);可选的,该面向用户的用户接口例如可以是面向用户的控制按键、用于接收语音输入的语音输入设备以及用户接收用户触摸输入的触摸感知设备(例如具有触摸感应功能的触摸屏、触控板等);可选的,上述软件的可编程接口例如可以是供用户编辑或者修改程序的入口,例如芯片的输入引脚接口或者输入接口等;可选的,上述收发信机可以是具有通信功能的射频收发芯片、基带处理芯片以及收发天线等。
关于本实施例中的装置,其中处理器601和第一输入设备602执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
根据本实施例,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。
实施例八
本实施例提供一种生成容器的装置,用于执行实施例三的生成容器的方法。该装置可以设置在服务器中。
如图7所示,为根据本实施例的生成容器的装置的结构示意图。该装置包括第一接收模块701和第一发送模块702。
其中,第一接收模块701用于接收第一容器发送的获取第一基础服务可变程序的软件包的第三请求;第一发送模块702用于根据第三请求向第一容器发送软件包的信息,以使第一容器根据软件包的信息获取软件包,并在第一容器内安装第一基础服务可变程序,第一基础服务可变程序基于基础服务固化程序为用户提供应用服务,基础服务固化程序是根据镜像生成第一容器时生成的。
可选地,第一发送模块702具体用于根据第三请求向第一容器发送软件包的第二地址信息,以使第一容器根据第二地址信息获取软件包。
更为具体地,第三发送模块具体用于:
根据第三请求判断第一基础服务可变程序是否对应多个地址信息;
若判断结果为是,则将最新的地址信息作为第二地址信息发送至第一容器。
或者,可选地,第一发送模块702具体用于根据第三请求向第一容器发送软件包。
更为具体地,第一发送模块702具体用于:
根据第三请求判断第一基础服务可变程序是否对应多个软件包;
若判断结果为是,则将最新的软件包发送至第一容器。
关于本实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
根据本实施例,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。
实施例九
本实施例对实施例八的生成容器的装置做进一步补充说明。
如图8所示,为根据本实施例的生成容器的装置的结构示意图。该装置800除了包
括如图7所示的第一接收模块701和第一发送模块702,还包括第三获取模块801和第二发送模块802。
其中,第三获取模块801用于获取第一基础服务可变程序的升级包的第一地址信息;第二发送模块802用于向第一容器发送第一地址信息,以使第一容器根据第一地址信息获取升级包,并根据升级包对第一基础服务可变程序进行升级。
可选地,该装置800还可以包括第二接收模块803,该第二接收模块803用于接收第一容器发送的用于下载第一基础服务可变程序器的升级包的获取请求。相应地,第二发送模块802具体用于根据获取请求向第一容器发送第一地址信息。
可选地,本实施例的装置800还包括第一覆盖模块804,该第一覆盖模块804用于采用第一地址信息覆盖第二地址信息,第二地址信息为第一基础服务可变程序的软件包的地址信息。
关于本实施例中的装置800,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
根据本实施例,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。另外,在升级第一容器中的基础服务可变程序时,仅需要对基础服务可变程序本身进行升级,并不会影响用户通过基础服务可变程序创建的任何信息。这样,也不会造成容器需要停机的问题,即容器不会被其它容器替代以为用户提供服务,使用该容器产生的服务内容会一直存在。
实施例十
本实施例对实施例八的生成容器的装置做进一步补充说明。
如图9所示,为根据本实施例的生成容器的装置的结构示意图。该装置900除了包括如图7所示的第一接收模块701和第一发送模块702,还包括第四获取模块901和第三发送模块902。
其中,第四获取模块901用于获取第一基础服务可变程序的升级包;第三发送模块
902用于向第一容器发送升级包,以使第一容器根据升级包对第一基础服务可变程序进行升级。
可选地,本实施例的装置900还包括第三接收模块903,该第三接收模块903用于接收第一容器发送的用于下载第一基础服务可变程序器的升级包的获取请求;相应地,第三发送模块902具体用于根据获取请求向第一容器发送升级包。
可选地,本实施例的装置900还包括第二覆盖模块904,该第二覆盖模块904用于采用升级包覆盖第一基础服务可变程序的软件包。
关于本实施例中的装置900,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
根据本实施例,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。另外,在升级第一容器中的基础服务可变程序时,仅需要对基础服务可变程序本身进行升级,并不会影响用户通过基础服务可变程序创建的任何信息。这样,也不会造成容器需要停机的问题,即容器不会被其它容器替代以为用户提供服务,使用该容器产生的服务内容会一直存在。
实施例十一
本实施例提供一种生成容器的装置,该装置用于执行实施例三或实施例四的生成容器的方法。该装置可以设置在服务器中。
如图10所示,为根据本实施例的生成容器的装置的结构示意图。该装置包括第二输入设备1001和输出设备1002。
其中,第二输入设备1001用于接收第一容器发送的获取第一基础服务可变程序的软件包的第三请求;输出设备1002用于根据第三请求向第一容器发送软件包的信息,以使第一容器根据软件包的信息获取软件包,并在第一容器内安装第一基础服务可变程序,第一基础服务可变程序基于基础服务固化程序为用户提供应用服务,基础服务固化程序是根据镜像生成第一容器时生成的。
可选地,第二输入设备1001还用于获取第一基础服务可变程序的升级包的第一地址信息;输出设备1002还用于向第一容器发送第一地址信息,以使第一容器根据第一地址信息获取升级包,并根据升级包对第一基础服务可变程序进行升级。
关于本实施例中的装置,其中第二输入设备1001和输出设备1002执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
根据本实施例,通过将基础服务固化程序和基础服务可变程序分开,即将基础服务固化程序设置在镜像中,以在创建第一容器时在第一容器中也生成基础服务固化程序,然后通过服务器获取基础服务可变程序的软件包并安装,这样,镜像中不会存在需维护基础服务固化程序和基础服务可变程序的维护信息,因此,生成能够提供应用服务的第一容器的速度会较快,而且第一容器的空间不会被维护信息所占用。此外,装置可以为第一容器选择所下载的基础服务可变程序,这样可以根据实际需要设置个性化的第一容器,进而能够进一步节省具有基础服务可变程序的第一容器的生成时间。
实施例十二
本实施例的生成容器的系统包括前述任意实施例的生成容器的装置和镜像,即包括前述任意实施例的包括生成容器的装置的容器和服务器。
下面采用具体举例的方式对上述本实施例的生成容器的系统做具体说明。
如图11所示,为本实施例的生成容器的系统的结构示意图。本实施例中,在终端1110中设置镜像1101,还可以设置获取应用,该获取应用例如为一Entrypoint(接入点)模块11011。
本实施例的终端1110可以接收服务器发送的第一基础服务可变程序的升级包。这样,终端1110可以安装升级包,生成第二基础服务可变程序,并卸载第一基础服务可变程序,或者安装升级包,以优化第一基础服务可变程序的服务功能。
首先,终端1110根据镜像1101生成第一容器1102,镜像1101中包括基础服务固化程序,因此,第一容器1102中也会包括有基础服务固化程序,也会生成Entrypoint模块11021,该Entrypoint模块11021具体执行后续的为第一容器1102获取第一基础服务可变程序的软件包并进行安装的操作。由于Entrypoint模块11021设置在第一容器1102中,因此Entrypoint模块11021的操作也就是第一容器1102的操作。
接下来,第一容器1102向服务器1103发送获取第一基础服务可变程序的软件包的获取请求,服务器1103接收到该获取请求后,记录第一容器1102的标识,并向第一容器1102发送第一基础服务可变程序的软件包的第二地址信息,第一容器1102接收到该
第二地址信息后,通过该第二地址信息下载第一基础服务可变程序,并安装该第一基础服务可变程序11022,以基于第一容器1102内的基础服务固化程序采用第一基础服务可变程序11022为用户提供服务功能。
一段时间后,服务器1103接收到第一基础服务可变程序的升级包的第一地址信息,则可以根据预先的记录查询有哪些容器安装了第一基础服务可变程序,当识别出第一容器1102安装了第一基础服务可变程序,则可以主动向第一容器1102发送该第一地址信息,第一容器1102接收到该第一地址信息后,下载升级包,并进行安装,生成第二基础服务可变程序,第二基础服务可变程序为功能优化后的第一基础服务可变程序,然后卸载第一基础服务可变程序,并基于第一容器1102内的基础服务固化程序采用第二基础服务可变程序为用户提供服务功能。
此外,第一容器1102接收到第一地址信息后,采用第一地址信息覆盖第二地址信息。
接下来,可以需根据实际需要创建一个第二容器1104,该第二容器的容量大于第一容器1102。具体地,根据镜像1101生成第二容器1104,具体如何根据镜像创建第二容器1104属于现有技术,在此不再赘述。第二容器1104中包括基础服务固化程序,也会生成Entrypoint模块11041。
接下来,第二容器1104通过服务器1103获取第一基础服务可变程序的软件包。由于服务器1103中包括的是最新版本的第一基础服务可变程序的第一地址信息,因此,第二容器1104下载第一基础服务可变程序的软件包并安装之后,就可以采用最新版本的第一基础服务可变程序为用户提供服务功能。这样,就可以避免基础服务可变程序位于镜像中而造成的新生成的第一容器需要对安装后的基础服务可变程序升级的操作,节省操作步骤。
本发明还提供一种终端,包括实施例五至实施例七中任意实施例的生成容器的装置。
本发明还提供一种服务器,包括实施例八至实施例十一中任意实施例的生成容器的装置。
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。
Claims (44)
- 一种生成容器的系统,其特征在于,包括:服务器,存储有第一基础服务可变程序的软件包;终端,用于根据镜像生成第一容器,所述镜像和第一容器中均包括基础服务固化程序,并用于从所述服务器中获取所述软件包,根据所述软件包在所述第一容器中安装所述第一基础服务可变程序,所述第一基础服务可变程序基于所述基础服务固化程序为用户提供应用服务。
- 根据权利要求1所述的系统,其特征在于,所述终端还用于:通过服务器获取所述第一基础服务可变程序的升级包;根据所述升级包对所述第一基础服务可变程序进行升级。
- 根据权利要求2所述的系统,其特征在于,所述服务器具体用于:向所述终端发送第一基础服务可变程序的升级包的第一地址信息;所述终端具体用于:接收所述服务器发送的所述第一地址信息,并根据所述第一地址信息获取所述升级包。
- 根据权利要求2所述的系统,其特征在于,所述服务器具体用于:接收所述终端发送的下载所述第一基础服务可变程序器的升级包的获取请求,并根据所述获取请求向所述终端返回所述升级包的第一地址信息;所述终端具体用于:向所述服务器发送下载所述第一基础服务可变程序器的升级包的获取请求;接收所述服务器返回的所述升级包的第一地址信息;根据所述第一地址信息获取所述升级包。
- 根据权利要求2所述的系统,其特征在于,所述终端具体用于:接收所述服务器发送的所述第一基础服务可变程序的升级包。
- 根据权利要求2所述的系统,其特征在于,所述服务器具体用于:接收所述终端发送的下载所述第一基础服务可变程序器的升级包的获取请求,并根据所述获取请求向所述终端返回所述升级包;所述终端具体用于:向所述服务器发送下载所述第一基础服务可变程序器的升级包的获取请求;接收所述服务器根据所述获取请求返回的所述升级包。
- 根据权利要求2-6中任一项所述的系统,其特征在于,所述终端具体用于:安装所述升级包,生成第二基础服务可变程序;卸载所述第一基础服务可变程序。
- 根据权利要求2-6中任一项所述的系统,其特征在于,所述终端具体用于:安装所述升级包,以优化所述第一基础服务可变程序的服务功能。
- 根据权利要求1-6中任一项所述的系统,其特征在于,所述服务器具体用于:接收所述终端发送的下载所述第一基础服务可变程序的软件包的第一请求,并根据所述第一请求向所述终端返回所述软件包;所述终端具体用于:向所述服务器发送下载所述第一基础服务可变程序的软件包的第一请求;接收所述服务器根据所述第一请求返回的所述软件包。
- 根据权利要求1-6中任一项所述的系统,其特征在于,所述服务器具体用于:接收所述终端发送的下载所述第一基础服务可变程序的软件包的第二请求,并根据所述第二请求返回所述软件包的第二地址信息;所述终端具体用于:向所述服务器发送下载所述第一基础服务可变程序的软件包的第二请求;接收所述服务器根据所述第二请求返回的所述软件包的第二地址信息;根据所述第二地址信息获取所述软件包。
- 一种生成容器的方法,其特征在于,包括:根据镜像生成第一容器,所述镜像和第一容器中均包括基础服务固化程序;通过服务器获取第一基础服务可变程序的软件包,并根据所述软件包在所述第一容器中安装所述第一基础服务可变程序,所述第一基础服务可变程序基于所述基础服务固化程序为用户提供应用服务。
- 根据权利要求11所述的方法,其特征在于,在根据所述软件包在所述第一容器中安装所述第一基础服务可变程序之后,还包括:通过服务器获取所述第一基础服务可变程序的升级包;根据所述升级包对所述第一基础服务可变程序进行升级。
- 根据权利要求12所述的方法,其特征在于,所述通过所述服务器获取所述第一基础服务可变程序的升级包包括:接收所述服务器发送的第一基础服务可变程序的升级包的第一地址信息;根据所述第一地址信息获取所述升级包。
- 根据权利要求12所述的方法,其特征在于,所述通过所述服务器获取所述第一基础服务可变程序的升级包包括:向所述服务器发送下载所述第一基础服务可变程序器的升级包的获取请求;接收所述服务器返回的所述升级包的第一地址信息;根据所述第一地址信息获取所述升级包。
- 根据权利要求12所述的方法,其特征在于,所述通过所述服务器获取所述第一基础服务可变程序的升级包包括:接收所述服务器发送的所述第一基础服务可变程序的升级包。
- 根据权利要求12所述的方法,其特征在于,所述通过所述服务器获取所述第一基础服务可变程序的升级包包括:向所述服务器发送下载所述第一基础服务可变程序器的升级包的获取请求;接收所述服务器根据所述获取请求返回的所述升级包。
- 根据权利要求12-16中任一项所述的方法,其特征在于,所述根据所述升级包对所述第一基础服务可变程序进行升级包括:安装所述升级包,生成第二基础服务可变程序;卸载所述第一基础服务可变程序。
- 根据权利要求12-16中任一项所述的方法,其特征在于,所述根据所述升级包对所述第一基础服务可变程序进行升级包括:安装所述升级包,以优化所述第一基础服务可变程序的服务功能。
- 根据权利要求11-16中任一项所述的方法,其特征在于,所述通过服务器获取第一基础服务可变程序的软件包包括:向所述服务器发送下载所述第一基础服务可变程序的软件包的第一请求;接收所述服务器根据所述第一请求返回的所述软件包。
- 根据权利要求11-16中任一项所述的方法,其特征在于,所述通过服务器获取第一基础服务可变程序的软件包包括:向所述服务器发送下载所述第一基础服务可变程序的软件包的第二请求;接收所述服务器根据所述第二请求返回的所述软件包的第二地址信息;根据所述第二地址信息获取所述软件包。
- 根据权利要求11-16任一项所述的方法,其特征在于,所述镜像和所述第一容 器中均还包括获取应用,所述获取应用用于与所述服务器进行数据传输。
- 根据权利要求21所述的方法,其特征在于,所述通过服务器获取第一基础服务可变程序的软件包包括:通过所述获取应用从所述服务器中获取所述第一基础服务器变化程序的软件包。
- 根据权利要求21所述的方法,其特征在于,所述获取应用包括所述第一基础服务可变程序的入口点。
- 根据权利要求11-16任一项所述的方法,其特征在于,所述镜像和所述第一容器中均还包括所述服务器的地址信息,以根据所述服务器的地址信息与所述服务器进行数据传输。
- 一种生成容器的方法,其特征在于,包括:接收第一容器发送的获取第一基础服务可变程序的软件包的第三请求;根据所述第三请求向所述第一容器发送所述软件包的信息,以使所述第一容器根据所述软件包的信息获取所述软件包,并在所述第一容器内安装所述第一基础服务可变程序,所述第一基础服务可变程序基于基础服务固化程序为用户提供应用服务,所述基础服务固化程序是根据镜像生成所述第一容器时生成的。
- 根据权利要求25所述的方法,其特征在于,在根据所述第三请求向所述第一容器发送所述软件包之后,还包括:获取所述第一基础服务可变程序的升级包的第一地址信息;向所述第一容器发送所述第一地址信息,以使所述第一容器根据所述第一地址信息获取所述升级包,并根据所述升级包对所述第一基础服务可变程序进行升级。
- 根据权利要求26所述的方法,其特征在于,在获取所述第一基础服务可变程序的升级包的第一地址信息之后,且在向所述第一容器发送所述第一地址信息之前,还包括:接收所述第一容器发送的用于下载所述第一基础服务可变程序器的升级包的获取请求;所述向所述第一容器发送所述第一地址信息包括:根据所述获取请求向所述第一容器发送所述第一地址信息。
- 根据权利要求26所述的方法,其特征在于,在获取所述第一基础服务可变程序的升级包的第一地址信息之后,且在向所述第一容器发送所述第一地址信息之前,还包括:采用所述第一地址信息覆盖第二地址信息,所述第二地址信息为所述第一基础服务可变程序的软件包的地址信息。
- 根据权利要求25所述的方法,其特征在于,在根据所述第三请求向所述第一容器发送所述软件包之后,还包括:获取所述第一基础服务可变程序的升级包;向所述第一容器发送所述升级包,以使所述第一容器根据所述升级包对所述第一基础服务可变程序进行升级。
- 根据权利要求29所述的方法,其特征在于,在获取所述第一基础服务可变程序的升级包之后,且在向所述第一容器发送所述升级包之前,还包括:接收所述第一容器发送的用于下载所述第一基础服务可变程序器的升级包的获取请求;向所述第一容器发送所述升级包包括:根据所述获取请求向所述第一容器发送所述升级包。
- 根据权利要求29所述的方法,其特征在于,在获取所述第一基础服务可变程序的升级包之后,且在向所述第一容器发送所述升级包之前,还包括:采用所述升级包覆盖所述第一基础服务可变程序的软件包。
- 根据权利要求25-31中任一项所述的方法,其特征在于,所述根据所述第三请求向所述第一容器发送所述软件包的信息包括:根据所述第三请求向所述第一容器发送所述软件包的第二地址信息,以使所述第一容器根据所述第二地址信息获取所述软件包。
- 根据权利要求32所述的方法,其特征在于,所述根据所述第三请求向所述第一容器发送所述软件包的第二地址信息包括:根据所述第三请求判断所述第一基础服务可变程序是否对应多个地址信息;若判断结果为是,则将最新的地址信息作为所述第二地址信息发送至所述第一容器。
- 根据权利要求25-31中任一项所述的方法,其特征在于,所述根据所述第三请求向所述第一容器发送所述软件包的信息包括:根据所述第三请求向所述第一容器发送所述软件包。
- 根据权利要求34所述的方法,其特征在于,所述根据所述第三请求向所述第一容器发送所述软件包包括:根据所述第三请求判断所述第一基础服务可变程序是否对应多个软件包;若判断结果为是,则将最新的软件包发送至所述第一容器。
- 一种生成容器的装置,其特征在于,包括:生成模块,用于根据镜像生成第一容器,所述镜像和第一容器中均包括基础服务固化程序;第一获取模块,用于通过服务器获取第一基础服务可变程序的软件包,所述第一基础服务可变程序基于所述基础服务固化程序为用户提供应用服务;第一安装模块,用于根据所述软件包在所述第一容器中安装所述第一基础服务可变程序。
- 一种生成容器的装置,其特征在于,包括:处理器,用于根据镜像生成第一容器,所述镜像和第一容器中均包括基础服务固化程序;第一输入设备,用于通过服务器获取第一基础服务可变程序的软件包,所述第一基础服务可变程序基于所述基础服务固化程序为用户提供应用服务;所述处理器还用于,根据所述软件包在所述第一容器中安装所述第一基础服务可变程序。
- 根据权利要求37所述的装置,其特征在于,所述第一输入设备还用于通过服务器获取所述第一基础服务可变程序的升级包;所述处理器还用于根据所述升级包对所述第一基础服务可变程序进行升级。
- 一种终端,其特征在于,包括权利要求36-38中任一项所述的装置。
- 一种生成容器的装置,其特征在于,包括:第一接收模块,用于接收第一容器发送的获取第一基础服务可变程序的软件包的第三请求;第一发送模块,用于根据所述第三请求向所述第一容器发送所述软件包的信息,以使所述第一容器根据所述软件包的信息获取所述软件包,并在所述第一容器内安装所述第一基础服务可变程序,所述第一基础服务可变程序基于基础服务固化程序为用户提供应用服务,所述基础服务固化程序是根据镜像生成所述第一容器时生成的。
- 一种生成容器的装置,其特征在于,包括:第二输入设备,用于接收第一容器发送的获取第一基础服务可变程序的软件包的第三请求;输出设备,用于根据所述第三请求向所述第一容器发送所述软件包的信息,以使所述第一容器根据所述软件包的信息获取所述软件包,并在所述第一容器内安装所述第一基础服务可变程序,所述第一基础服务可变程序基于基础服务固化程序为用户提供应用服务,所述基础服务固化程序是根据镜像生成所述第一容器时生成的。
- 根据权利要求41所述的装置,其特征在于,所述第二输入设备还用于获取所述第一基础服务可变程序的升级包的第一地址信息;所述输出设备还用于向所述第一容器发送所述第一地址信息,以使所述第一容器根据所述第一地址信息获取所述升级包,并根据所述升级包对所述第一基础服务可变程序进行升级。
- 一种服务器,其特征在于,包括根据权利要求40-42中任一项所述的装置。
- 一种生成容器的系统,包括权利要求39所述的终端、权利要求43所述的服务器和镜像。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US16/289,562 US10846073B2 (en) | 2016-08-29 | 2019-02-28 | Methods, apparatuses, terminals, servers, and systems for container generation |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610757354.XA CN107797807B (zh) | 2016-08-29 | 2016-08-29 | 生成容器的方法、装置、终端、服务器与系统 |
CN201610757354.X | 2016-08-29 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/289,562 Continuation US10846073B2 (en) | 2016-08-29 | 2019-02-28 | Methods, apparatuses, terminals, servers, and systems for container generation |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018040914A1 true WO2018040914A1 (zh) | 2018-03-08 |
Family
ID=61300059
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/097628 WO2018040914A1 (zh) | 2016-08-29 | 2017-08-16 | 生成容器的方法、装置、终端、服务器与系统 |
Country Status (4)
Country | Link |
---|---|
US (1) | US10846073B2 (zh) |
CN (1) | CN107797807B (zh) |
TW (1) | TW201807571A (zh) |
WO (1) | WO2018040914A1 (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109739518A (zh) * | 2018-12-25 | 2019-05-10 | 杭州数梦工场科技有限公司 | 生成离线软件资源的方法及装置 |
TWI684347B (zh) * | 2019-01-10 | 2020-02-01 | 中華電信股份有限公司 | 自動調節無伺服器程式之系統與其方法 |
US10846073B2 (en) | 2016-08-29 | 2020-11-24 | Alibaba Group Holding Limited | Methods, apparatuses, terminals, servers, and systems for container generation |
WO2021129038A1 (zh) * | 2019-12-23 | 2021-07-01 | 华中科技大学 | 一种水资源管理系统服务集群化框架构建方法 |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11836505B2 (en) * | 2019-05-07 | 2023-12-05 | Ab Initio Technology Llc | Dynamic distribution of container images |
CN110187912B (zh) * | 2019-05-16 | 2022-03-29 | 华为技术有限公司 | 一种节点选择方法和装置 |
CN112087516A (zh) * | 2020-09-10 | 2020-12-15 | 星辰天合(北京)数据科技有限公司 | 基于Docker虚拟化技术的存储升级方法和装置 |
CN112084007A (zh) * | 2020-09-10 | 2020-12-15 | 星辰天合(北京)数据科技有限公司 | 基于虚拟机技术的nas存储升级方法和装置 |
CN112596740A (zh) * | 2020-12-28 | 2021-04-02 | 北京千方科技股份有限公司 | 一种程序部署方法及装置 |
CN114610357A (zh) * | 2022-03-31 | 2022-06-10 | 中国电子科技集团公司第三十研究所 | 一种容器镜像和软件系统资源分离发布、部署及升级方法 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7925749B1 (en) * | 2007-04-24 | 2011-04-12 | Netapp, Inc. | System and method for transparent data replication over migrating virtual servers |
US20140330787A1 (en) * | 2013-05-01 | 2014-11-06 | Netapp, Inc. | Namespace mirroring in an expandable storage volume |
CN105069353A (zh) * | 2015-08-11 | 2015-11-18 | 武汉大学 | 一种基于Docker的可信容器安全加固方法 |
CN105099706A (zh) * | 2015-08-25 | 2015-11-25 | 华为技术有限公司 | 一种数据通信方法、用户设备和服务器 |
CN105763602A (zh) * | 2016-01-29 | 2016-07-13 | 腾讯科技(深圳)有限公司 | 一种数据请求处理的方法、服务器及系统 |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8677351B2 (en) * | 2007-03-29 | 2014-03-18 | Vmware, Inc. | System and method for delivering software update to guest software on virtual machines through a backdoor software communication pipe thereof |
CN102387165B (zh) * | 2010-08-27 | 2014-11-05 | 腾讯科技(深圳)有限公司 | 软件升级系统及方法 |
US9891939B2 (en) * | 2011-03-03 | 2018-02-13 | Microsoft Technology Licensing, Llc | Application compatibility with library operating systems |
CN102801755B (zh) * | 2011-05-27 | 2016-03-23 | 腾讯科技(深圳)有限公司 | 一种应用的管理方法和一种应用平台 |
US9922192B1 (en) * | 2012-12-07 | 2018-03-20 | Bromium, Inc. | Micro-virtual machine forensics and detection |
EP3063622A4 (en) * | 2013-10-30 | 2017-07-05 | Intel Corporation | Platform non-volatile store management and platform configuration |
US9436456B2 (en) * | 2014-04-17 | 2016-09-06 | Myine Electronics, Inc. | System and method for management of software updates at a vehicle computing system |
US9575797B2 (en) * | 2015-03-20 | 2017-02-21 | International Business Machines Corporation | Virtual machine migration between hypervisor virtual machines and containers |
US9904534B2 (en) * | 2015-05-29 | 2018-02-27 | Oracle International Corporation | Inter-tenant and intra-tenant flock management |
CN105468362B (zh) * | 2015-11-17 | 2019-03-08 | 广州杰赛科技股份有限公司 | 应用部署方法和云计算系统 |
CN105577779A (zh) * | 2015-12-21 | 2016-05-11 | 用友网络科技股份有限公司 | 一种容器化部署大企业私有云的方法和系统 |
KR101644958B1 (ko) * | 2015-12-23 | 2016-08-12 | 한국과학기술정보연구원 | 다중 사용자 맞춤형 컴퓨팅 자원 제공을 위한 클러스터 구축 방법 및 클러스터 구축 장치 |
US20170308705A1 (en) * | 2016-04-22 | 2017-10-26 | Qualcomm Incorporated | System, device and method for anti-rollback protection of over-the-air updated device images |
CN107797807B (zh) | 2016-08-29 | 2021-04-06 | 阿里巴巴集团控股有限公司 | 生成容器的方法、装置、终端、服务器与系统 |
-
2016
- 2016-08-29 CN CN201610757354.XA patent/CN107797807B/zh active Active
-
2017
- 2017-06-15 TW TW106120041A patent/TW201807571A/zh unknown
- 2017-08-16 WO PCT/CN2017/097628 patent/WO2018040914A1/zh active Application Filing
-
2019
- 2019-02-28 US US16/289,562 patent/US10846073B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7925749B1 (en) * | 2007-04-24 | 2011-04-12 | Netapp, Inc. | System and method for transparent data replication over migrating virtual servers |
US20140330787A1 (en) * | 2013-05-01 | 2014-11-06 | Netapp, Inc. | Namespace mirroring in an expandable storage volume |
CN105069353A (zh) * | 2015-08-11 | 2015-11-18 | 武汉大学 | 一种基于Docker的可信容器安全加固方法 |
CN105099706A (zh) * | 2015-08-25 | 2015-11-25 | 华为技术有限公司 | 一种数据通信方法、用户设备和服务器 |
CN105763602A (zh) * | 2016-01-29 | 2016-07-13 | 腾讯科技(深圳)有限公司 | 一种数据请求处理的方法、服务器及系统 |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10846073B2 (en) | 2016-08-29 | 2020-11-24 | Alibaba Group Holding Limited | Methods, apparatuses, terminals, servers, and systems for container generation |
CN109739518A (zh) * | 2018-12-25 | 2019-05-10 | 杭州数梦工场科技有限公司 | 生成离线软件资源的方法及装置 |
TWI684347B (zh) * | 2019-01-10 | 2020-02-01 | 中華電信股份有限公司 | 自動調節無伺服器程式之系統與其方法 |
WO2021129038A1 (zh) * | 2019-12-23 | 2021-07-01 | 华中科技大学 | 一种水资源管理系统服务集群化框架构建方法 |
Also Published As
Publication number | Publication date |
---|---|
TW201807571A (zh) | 2018-03-01 |
CN107797807B (zh) | 2021-04-06 |
CN107797807A (zh) | 2018-03-13 |
US20190196804A1 (en) | 2019-06-27 |
US10846073B2 (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018040914A1 (zh) | 生成容器的方法、装置、终端、服务器与系统 | |
US9977668B2 (en) | Automatic updating of applications | |
US7242929B2 (en) | Method and apparatus for dynamic extension of device management tree data model on a mobile | |
US20050227683A1 (en) | Apparatus and method for over the air software repair | |
CN106796508B (zh) | 在云平台上的快速部署 | |
US20150220326A1 (en) | Mobile Terminal and Software Upgrade Method Thereof | |
CN107992308B (zh) | 一种安卓终端应用程序的插件化管理方法 | |
CN110543327B (zh) | 业务组件复用方法、装置、计算机设备及存储介质 | |
JP2013517578A (ja) | アプリケーションの稼働方法、装置及びシステム | |
EP2786249A1 (en) | Creation or installation of a disk image for a target device having one of a plurality of hardware platforms | |
WO2013081680A2 (en) | Deployment of a driver or an application on a client device having a write-filter | |
US9501270B2 (en) | System and method for providing customized resources on a handheld electronic device | |
KR101541112B1 (ko) | Fota 시스템 및 그 실행 방법 | |
CN113168332A (zh) | 数据处理方法、装置以及移动终端 | |
KR101427561B1 (ko) | 안드로이드 어플리케이션의 타이젠 설치가능 패키지 자동변환을 이용한 적응 실행 방법 및 이를 위한 컴퓨터로 판독가능한 기록매체 | |
CN106911500B (zh) | 物理机的配置方法、装置和物理机 | |
CN112527301B (zh) | 一种实现应用插件化的方法及电子设备 | |
US20160198018A1 (en) | Mobile device for executing radio application | |
CN105740027A (zh) | 应用程序更新方法和装置 | |
CN113727333A (zh) | 定制应用的下载方法和系统 | |
CN110750286A (zh) | OTA升级Mbn的管理方法、装置、系统、设备和介质 | |
US20160378553A1 (en) | Resource Management Method and Device for Terminal System | |
WO2021057411A1 (zh) | 一种组件加载方法、装置及系统 | |
CN115437696B (zh) | 信创平台自适应配置方法及装置 | |
CN106980792B (zh) | 一种应用权限的控制方法、电子设备和服务器 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17845216 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17845216 Country of ref document: EP Kind code of ref document: A1 |