CN115828231A - Application program running method and device, vehicle and storage medium - Google Patents
Application program running method and device, vehicle and storage medium Download PDFInfo
- Publication number
- CN115828231A CN115828231A CN202211337557.5A CN202211337557A CN115828231A CN 115828231 A CN115828231 A CN 115828231A CN 202211337557 A CN202211337557 A CN 202211337557A CN 115828231 A CN115828231 A CN 115828231A
- Authority
- CN
- China
- Prior art keywords
- target
- container
- application program
- file
- package
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 72
- 230000006870 function Effects 0.000 claims abstract description 69
- 230000004913 activation Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 6
- 230000001419 dependent effect Effects 0.000 claims description 5
- 230000000977 initiatory effect Effects 0.000 claims 1
- 230000008569 process Effects 0.000 description 32
- 238000007726 management method Methods 0.000 description 28
- 238000011161 development Methods 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 10
- 125000000524 functional group Chemical group 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000005856 abnormality Effects 0.000 description 5
- 230000006837 decompression Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000003213 activating effect Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Stored Programmes (AREA)
Abstract
The application discloses an application program running method, an application program running device, a vehicle and a storage medium, wherein the method comprises the following steps: acquiring a container deployment package of a target container; the target container corresponds to a target function group and a target software cluster, the target application program is an application program in the target software cluster, and the target application program depends on a target state in the target function group; starting a target container based on the container template package; and running the target application program in the target container based on the executive program file of the target application program and the configuration file of the target application program. According to the technical scheme, the application programs related to functions can be packaged into one container to be executed, the containers are isolated from each other and do not affect each other, and the influence of the exception of one application program on the whole AP platform is reduced.
Description
Technical Field
The present application relates to the field of automotive technologies, and in particular, to an application program running method, an application program running device, a vehicle, and a storage medium.
Background
An Adaptive AUTomotive Open System Architecture (AP Architecture), referred to as AP Architecture, is widely used in the AUTomotive field to implement increasingly complex functions in vehicles.
In the related art, under an AP architecture, an execution program file and a configuration file of an application program are placed in a designated directory in an independent and designated format folder, an execution management service determines the application program to be started based on a state management service, then traverses the designated directory to search for the application program to be started, and finally starts the application program.
In the related art, since the resource allocation and the authority control of the application program are not limited by the execution of the management service, the operation of a certain application program is abnormal, which may cause the whole AP platform to stop working.
Disclosure of Invention
The application provides an application program running method and device, a vehicle and a storage medium.
In a first aspect, an embodiment of the present application provides an application program running method, where the method includes: acquiring a container deployment package of a target application program, wherein the container deployment package is a file obtained by compressing a container template package of the target container, an executive program file of the target application program and a configuration file of the target application program; the target container corresponds to a target function group and a target software cluster, the target application program is an application program in the target software cluster, and the target application program depends on a target state in the target function group; starting the target container based on the container template package of the target container; and running the target application program in the target container based on the executive program file of the target application program and the configuration file of the target application program.
In a second aspect, an embodiment of the present application provides an application running apparatus, including: the acquisition module is used for acquiring a container deployment package of the target application program, wherein the container deployment package is a file obtained by compressing a container template package of the target container, an executive program file of the target application program and a configuration file of the target application program; the target container corresponds to a target function group and a target software cluster, the target application program is an application program in the target software cluster, and the target application program depends on a target state in the target function group; a container starting module for starting a target container based on a container template package; and the application running module is used for running the target application program in the target container based on the executive program file of the target application program and the configuration file of the target application program.
In a third aspect, an embodiment of the present application provides a vehicle, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs being configured to perform the application execution method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which computer program instructions are stored, and the computer program instructions can be called by a processor to execute the application program running method according to the first aspect.
In a fifth aspect, the present application provides a computer program product, which when executed, is used to implement the application running method according to the first aspect.
Compared with the prior art, the application program running method provided by the embodiment of the application program obtains the container deployment package of the container template package in which the target container is packaged by introducing the container technology on the basis of keeping the function points of the AP architecture basic module unchanged (namely ensuring the one-to-one correspondence relationship between the container and the function group to the software cluster to the application program) in the development process of the application program, when the application program has a running requirement, the target container can be started on the basis of the container template package of the target container, then the target application program is run in the target container, and because the container can perform resource isolation, the application programs run in each container are isolated from each other and do not affect each other, when one application program runs abnormally, other application programs can still run normally, and the influence of the abnormality of the single application program on the whole AP platform is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application.
Fig. 2 is a flowchart of an application running method according to an embodiment of the present application.
Fig. 3 is a flowchart of an application running method according to another embodiment of the present application.
Fig. 4 is a flowchart of an application development method according to an embodiment of the present application.
Fig. 5 is a block diagram of an application development apparatus according to an embodiment of the present application.
Fig. 6 is a block diagram of a vehicle according to an embodiment of the present application.
Fig. 7 is a block diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are exemplary only for explaining the present application and are not to be construed as limiting the present application.
In order to make those skilled in the art better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, technical terms related to embodiments of the present application will be described.
AP architecture: a heterogeneous software platform is used for uniformly managing subordinate operating systems and peripheral resources, so that all scheduling, states and resource consumption during system operation are in a controllable range to meet the requirements of vehicle-mounted safety and certainty, and the heterogeneous software platform has the characteristics of soft real-time (millisecond level), capability of meeting functional safety requirements (above ASIL-B), suitability for a multi-core high-resource consumption environment, support of dynamic deployment and the like. The AP architecture includes a hardware layer, a base service layer, a run layer, and a component layer. Wherein the base service layer includes an executive management service and a state management service.
Execution Management service (EM) responsible for all aspects of the AP platform Execution Management, including: lifecycle management of the AP platform (such as startup, shutdown, initialization, etc. of the AP platform), lifecycle management of the application (such as startup and shutdown of the application).
State Management Service (SM): defining the operation state of the AP platform, comprising: execution state, process state, machine state, functional group state. The execution state refers to the internal state of each started process. The process state is the state of the process. The machine state represents the global state of the machine, used to control the lifecycle (start/stop/restart) of the machine and platform level applications. Each function group has its own set of processes and states (function group states), each function group state defining which processes will be initiated by the EM when the SM requests which state to activate, each function group having at least one process, limited at most by implementation.
The container technology comprises the following steps: a virtualization technology can realize process isolation and effectively divide resources of a single operating system into isolated groups so as to better balance conflicting resource use requirements among the isolated groups.
Please refer to fig. 1, which illustrates a schematic diagram of an implementation environment provided by an embodiment of the present application. The execution environment includes a vehicle 100, and the vehicle 100 is an execution environment of an application program. The vehicle 100 includes an electronic controller having an AP platform developed based on an AP architecture, where the AP platform includes a status management component, an execution management component, a function group, software clusters, and each software cluster includes one or more application programs. The related descriptions of the state management component, the execution management component, and the function group may refer to the above embodiments, which are not described herein again. The running process of the application program is as follows: and under the condition that the execution management component determines that the running condition of the target application program is met, starting a target container corresponding to the target application program, and then running the target application program in the target container.
In some embodiments, the implementation environment further includes an electronic device 200, the electronic device 200 is a development environment of an application program, and the electronic device 200 may be a personal computer or a server. After the developer completes development of the application program on the electronic device 200, the developer distributes the application program to the vehicle 100 through the electronic device 200. In an embodiment of the present application, the electronic device 200 includes an AP framework-based configuration tool, a compiled Software Development Kit (SDK), and a container deployment script.
The configuration tool refers to a host computer interface software tool chain developed based on the AP architecture, and is provided by a supplier and used for a developer to create a function group, a software cluster and an application program (including a configuration file and a code file). The compiling SDK is a compiling tool chain developed based on the AP architecture, and is provided by a supplier, and is used for compiling the code file and the configuration file of the application program to obtain a software package (including a container template package, an execution file, and a configuration file) of the application program. The container deployment script is used for converting the software package of the application program into a container deployment package in a specified format.
It should be noted that, before creating the functional group and the software cluster, a container template package needs to be created in advance in the electronic device 200, during the process of creating the functional group and the software cluster, a one-to-one correspondence relationship between the container and the functional group is ensured based on the container template package, and then an application program is developed under the node of the software cluster, so that the one-to-one correspondence relationship between the container and the functional group is realized, the container template package is also encapsulated in the software package of the application program, and when a subsequent application program runs, a container can be newly created based on the container template package, and then the application program runs in the container.
In the embodiment of the application, in the development process of the application, a container technology is introduced on the basis of keeping the function points of the AP architecture basic module unchanged, and the operation process of the application in the AP platform can be completed in the container by ensuring the one-to-one correspondence relationship of the container, the function group, the software cluster and the application, and the containers are isolated from each other and do not influence each other, so that the influence of the exception of one application on the whole AP platform is reduced.
Referring to fig. 2, a flowchart of an application running method according to an embodiment of the present application is shown. The application running method may be executed by the vehicle 100 or the electronic device 200 in the embodiment of fig. 1. The method comprises the following processes.
S201, obtaining a container deployment package of the target application program.
The container deployment package for the target application includes the resources required for the target container to start and for the target application to run correctly in the target container. In this embodiment of the present application, the container deployment package of the target container is a file obtained by compressing a container template package of the target container, an execution program file of the target application program, and a configuration file of the target application program. The process of acquiring the container deployment package of the target container will be explained in the following embodiments.
The target container is a container for running the target application. In the embodiment of the present application, the target container corresponds to a target function group and a target software cluster. The target application is an application in the target software cluster and the target application depends on the target state in the target function group. The target application depends on the target state in the target function group, which means that the target application should start running when the target state of the target function group is activated. In the embodiment of the application, a container technology is introduced in the development process of the application, and the one-to-one correspondence relationship of the container, the functional group, the software cluster and the software package of the application is maintained, so that a plurality of applications related to functions are packaged into one container to be executed, the containers are isolated from one another and do not affect one another, and the influence of the exception of one application on the whole AP platform is reduced.
In the above embodiments it is mentioned that under the AP architecture, each function group has its own set of processes and states, each function group state defining which processes will be initiated by the EM when the SM requests which state to activate. The execution management component determines a target application based on the current activation state of the function group and the above function group state, and then determines a container for running the target application as a target container.
Illustratively, the functional group status is shown in Table-1 below.
Status of state | Application program |
State 1 | Application A |
State 2 | Application program B and application program C |
TABLE-1
With reference to table-1, if the execution management component determines that the current activation state of the function group is state 1, the application a needs to start running, and the container corresponding to the application a is determined as the target container.
S202, starting the target container based on the container template packet of the target container.
The container template package of the target container includes a resource file required for starting the target container, which is a file obtained by compressing a root file system directory (rootfs), a container configuration template file (config.json), and a container service file (container.service) of the target container. The container service file is a service unit configuration file read by a system daemon (system), and the content comprises starting and stopping execution commands and dependent front/rear dependent application service unit configurations. The container configuration template file includes specific information related to an application that is run based on the container, such as security rights, environment variables, parameters, and the like. The container service file is a service unit configuration file read by a system daemon, and the content comprises starting and stopping execution commands and dependent front/rear dependent application service unit configurations. The root file system directory contains the necessary environment dependencies required for container execution, such as the directories/bin,/var,/lib,/dev,/usr, etc. and the corresponding files.
In an embodiment of the application, the vehicle obtains a container template package of the target container from a container deployment package of the target application, and then starts the target container based on the container template package of the target container. In some embodiments, S202 may include the following process.
S2021, decompressing the container deployment package of the target application program to a specified directory of the operating environment to obtain a container template package of the target container, an executive program file of the target application program and a configuration file of the target application program.
The electronic controller may select a first decompression tool matching the format of the container deployment package, and then decompress the container deployment package of the target application program into a specified directory of the operating environment through the first decompression tool, so as to obtain a container template package of the target container, an execution program file of the target application program, and a configuration file of the target application program.
S2022, obtain the container service file of the target container from the container template package.
The electronic controller may select a second decompression tool that matches the format of the container template package, and then decompress the container template package through the second decompression tool, where the decompressed file includes the container service file.
S2023, creating the soft link of the container service file to the system daemon.
Soft link, also known as symbolic link. Symbolic links are short files that contain any one pathname that is friend of another file. The pathname may point to any file or directory located in any file system or even to a non-existent file. In the embodiment of the application, the container service file is created and softly linked to the system daemon, so that the system daemon can conveniently access the container service file.
S2024, starting the target container through the system daemon.
The system daemon accesses the container service file through the soft link and starts the target container through the container control tool. Optionally, the container control tool is a runc tool, which is a lightweight container management tool based on the OCI standard. Specifically, the system daemon starts the target container through a run tool, the run tool reads a container configuration template file before starting the target container, and a related development board file directory is mounted under a system root file directory to run independently, so that the target container has a root file system and allocated resources of the target container.
S203, the target application program is operated in the target container based on the executive program of the target application program and the configuration information of the target application program.
The executive program file of the target application program is used for realizing various logic functions of the target application program. The configuration file of the target application is used for defining the target state of the target application depending on the function group, namely when the target state of the function group is activated, the target application should be started to run.
In the embodiment of the application, after the target container is started, the target application program can run in the target container, the running process of the target application program can be isolated from the running processes of other application programs, when the target application program runs abnormally, the other application programs can run normally in other containers, when the other application programs run abnormally, the target application program can also run continuously in the target container, and the target application program and the other application programs do not influence each other, so that the influence of the abnormality of a single application program on the whole AP platform is reduced.
To sum up, in the technical solution provided in the embodiment of the present application, in the development process of the application program, a container technology is introduced on the basis of keeping the function points of the AP architecture basic module unchanged (i.e. ensuring the one-to-one correspondence relationship between the container-function group-software cluster-application program), so as to obtain a container deployment package of the container template package in which the target container is packaged, the target container can be started based on the container template packet of the target container, then the target application program is operated in the target container, and the containers can be isolated from resources, so that the application programs operated by each container are isolated from each other and are not influenced mutually, when one application program is abnormally operated, other application programs can still be normally operated, and the influence of the abnormality of the single application program on the whole AP platform is reduced.
Referring to fig. 3, a flowchart of an application running method provided in an embodiment of the present application is shown, where the application running method may be executed by the vehicle 100 or the electronic device 200 in the embodiment of fig. 1. The application program running method comprises the following processes. In the FIG. 3 embodiment, S203 is instead implemented as S303-S306.
S301, acquiring a container deployment package of the target application program.
The container deployment package of the target application program is a file obtained by compressing a container template package of the target container, an execution program file of the target application program and a configuration file of the target application program. The target container corresponds to a target function group and a target software cluster, the target application is an application program in the target software cluster, and the target application program depends on a target state in the target function group.
S302, starting the target container based on the container template packet of the target container.
And S303, acquiring an application starting instruction sent by the execution management service under the condition that the running condition of the target application program is determined to be met.
Meeting the operating conditions of the target application means that the active state in the target function group matches the target state on which the target application depends. Specifically, the execution management service determines that the operating condition of the target application program is satisfied under the condition that the activation state of the target function group is determined to be the target state that the target application program depends on, and then issues an application start instruction to the container control tool. In some embodiments, the application launch instruction is a run.
S304, starting the target application program in the target container through the container control tool based on the execution program file of the target application and the configuration file of the target application program.
And after receiving the application starting instruction, the container control tool starts the target application program in the target container. The container control tool is the runc tool above.
S305, acquiring an application ending instruction sent by the execution management service under the condition that the running condition of the target application program is determined not to be met.
Not meeting the operating condition of the target application means that the active state in the target function group does not match the target state on which the target application depends. Specifically, the execution management service determines that the running condition of the target application program is not satisfied under the condition that the activation state of the target function group is determined not to be the target state on which the target application program depends, and then issues an application end instruction to the target container. In some embodiments, the application end instruction is also a run.
S306, the target application program is finished running in the target container through the container control tool.
And after receiving the application ending instruction, the container control tool ends running the target application program in the target container.
Optionally, after the container control tool finishes the target application program, it may also detect whether there are other running application programs in the target container, and if not, the container may be destroyed.
To sum up, in the technical solution provided in the embodiment of the present application, in the development process of the application program, a container technology is introduced on the basis of keeping the function points of the AP architecture basic module unchanged (i.e. ensuring the one-to-one correspondence relationship between the container-function group-software cluster-application program), so as to obtain a container deployment package of the container template package in which the target container is packaged, the target container can be started based on the container template packet of the target container, then the target application program is operated in the target container, and the containers can be isolated from resources, so that the application programs operated by each container are isolated from each other and are not influenced mutually, when one application program is abnormally operated, other application programs can still be normally operated, and the influence of the abnormality of the single application program on the whole AP platform is reduced.
The development process of the application program is explained below. Referring to fig. 4, a flowchart of an application development method according to an embodiment of the present application is shown. The application running method may be executed by the electronic device 200 in the embodiment of fig. 1. The application program development method includes the following processes.
S401, acquiring a container template package of the target container.
The container template package of the target container is obtained by compressing the container configuration template file, the container service file and the root file system directory of the target container.
In some embodiments, S401 is specifically implemented as: acquiring a root file system directory, a container configuration template file and a container service file of a target container; and compressing the root file system directory, the container configuration template file and the container service file of the target container to obtain a container template package of the target container.
The root file system directory, the container configuration template file, and the container service file of the target container are created by a developer based on the OCI container standard. The OCI container standard currently contains two parts: a container runtime specification and a container mirror specification. The container runtime specification defines how the container runtime is built according to the corresponding configuration. The container mirror specification defines a packaging specification for the mirror used at the container runtime. After the electronic equipment acquires the root file system directory, the container configuration template file and the container service file of the target container, the root file system directory, the container configuration template file and the container service file are compressed through a specified compression tool, and a container template package with a specified format is obtained. Optionally, the format is tgz format.
In some embodiments, the electronic device stores the container template file for the target container in the designated storage location after obtaining it. The appointed storage position refers to an appointed folder below a container folder of a directory where the configuration project is located, and the name of the appointed folder is the unique identifier of the target container.
S402, creating a target function group and a target software cluster corresponding to the target function group through a configuration tool.
The electronic device displays a user interface of the configuration tool, and then the developer can create a target function group corresponding to the target container and a target software cluster corresponding to the target container in the user interface. In some embodiments, the name of the target function group and the name of the target software cluster are both unique identifiers of the target container, thereby ensuring a one-to-one correspondence between container-function group-software cluster.
And S403, generating a software package of the target application program under the target software cluster based on the container template package.
The target application depends on the target state in the target function group, i.e. the target application should be in a running state when the target state is activated. The target state may be one or more.
Firstly, the electronic device performs application configuration development through a configuration tool to obtain a configuration file of a target application program, and adds the configuration file of the target application program to the target software cluster in S402. Wherein the configuration file defines a target state on which the target application depends.
Then, the electronic device creates a software package under the target software cluster, the name of the software package is also the unique identifier of the target container, so that the one-to-one correspondence relationship between the container, the functional group, the software cluster and the software package is ensured, then a code frame is generated through a configuration tool, and developers can complete the coding work of the business logic of the target application program under the code frame.
And finally, the electronic equipment compiles the container template package, the configuration file of the target application program and the execution code file of the target application program through the compiling SDK, and generates a software package under a specified directory, wherein the software package comprises the relevant content of the container template package of the target container, the execution program file of the target application program and the configuration file of the target application program.
In some embodiments, before acquiring the software package of the target application, it may be detected whether a corresponding relationship of the target container, the target function group, and the target software cluster exists in the electronic device, and in a case that the corresponding relationship exists, S403 is executed.
S404, generating a container deployment package of the target application program based on the software package of the target application program.
In some embodiments, the electronic device adjusts the software package of the target application through the container deployment script to obtain a container deployment package with a specified format.
The container deployment script is a custom script program that adjusts a software package of a target application program into a container deployment package of a specified format, and can be developed by a developer. Specifically, the electronic device transmits three parameters, such as a unique identifier of the target container, a path of a software package of the target application program, and a directory for generating the container deployment package, to the container deployment script, and the container deployment script modifies the software package of the target application program into a directory structure meeting the UCM requirements based on the three parameters, creates a relevant link, and finally outputs the container deployment package to the specified path.
To sum up, according to the technical solution provided in the embodiment of the present application, in the development process of an application program, a container technology is introduced on the basis of keeping the function points of an AP architecture basic module unchanged (i.e., ensuring the one-to-one correspondence relationship between a container and a function group and a software cluster and an application program), so as to obtain a container deployment package of a container template package in which a target container is encapsulated.
Referring to fig. 5, a block diagram of an application running apparatus according to an embodiment of the present application is shown. The device includes: an acquisition module 510, a container activation module 520, and an application execution module 530.
An obtaining module 510, configured to obtain a container deployment package of a target application program, where the container deployment package is a file obtained by compressing a container template package of a target container, an execution program file of the target application program, and a configuration file of the target application program; the target container corresponds to a target function group and a target software cluster, the target application program is an application program in the target software cluster, and the target application program depends on a target state in the target function group.
A container activation module 520 for activating the target container based on the container template package.
An application running module 530 for running the target application in the target container based on the execution program file of the target application and the configuration file of the target application.
To sum up, in the technical solution provided in the embodiment of the present application, in the development process of the application program, a container technology is introduced on the basis of keeping the function points of the AP architecture basic module unchanged (i.e. ensuring the one-to-one correspondence relationship between the container-function group-software cluster-application program), so as to obtain a container deployment package of the container template package in which the target container is packaged, the target container can be started based on the container template packet of the target container, then the target application program is operated in the target container, and the containers can be isolated from resources, so that the application programs operated by each container are isolated from each other and are not influenced mutually, when one application program is abnormally operated, other application programs can still be normally operated, and the influence of the abnormality of the single application program on the whole AP platform is reduced.
In some embodiments, the application execution module 530 is configured to: acquiring an application starting instruction sent by an execution management service under the condition that the execution management service confirms that the operation condition of a target application program is met, wherein the condition that the operation condition of the target application program is met refers to the condition that an activation state in a target function group is matched with a target state depended by the target application program; and starting the target application program in the target container through the container control tool based on the executive program file of the target application program and the configuration file of the target application program.
In some embodiments, the application execution module 530 is configured to: acquiring an application ending instruction sent by an execution management service under the condition that the execution management service does not meet the running condition of a target application program; and finishing the target application program in the target container through the container control tool.
In some embodiments, a container activation module 520 to: decompressing the container deployment package into a specified directory of the operating environment to obtain a container template package of the target container, an executive program file of the target application program and a configuration file of the target application program; acquiring a container service file of a target container from a container template package; creating a soft link for the container service file to a system daemon; and starting the target container through the system daemon.
In some embodiments, the step of obtaining the container deployment package of the target application comprises the steps of: acquiring a container template packet of a target container; creating a target function group and a target software cluster corresponding to the target function group through a configuration tool; generating a software package of a target application program under the target software cluster based on the container template package, wherein the target application program depends on a target state in the target function group; and generating a container deployment package of the target application program based on the software package of the target application program.
In some embodiments, generating a container deployment package for a target application based on a software package for the target application comprises: transmitting the name of the target container, the path of the software package of the target application program and the catalog for generating the container deployment package to a container deployment script; and generating a container deployment package of the target application program through the container deployment script.
In some embodiments, obtaining a container template package for a target container comprises: acquiring a root file system directory, a container configuration template file and a container service file of a target container; and compressing the root file system directory, the container configuration template file and the container service file of the target container to obtain a container template package of the target container.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 6, it shows that the embodiment of the present application further provides a vehicle 600, where the vehicle 600 includes: one or more processors 610, memory 620, and one or more applications. Wherein one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs configured to perform the methods described in the above embodiments.
The processor 610 may include one or more processing cores. The processor 610, using various interfaces and lines to connect various parts throughout the battery management system, performs various functions of the battery management system and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 620 and invoking data stored in the memory 620. Alternatively, the processor 610 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 610 may integrate one or more of a Central Processing Unit (CPU) 610, a Graphics Processing Unit (GPU) 610, a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 610, but may be implemented by a communication chip.
The Memory 620 may include a Random Access Memory (RAM) 620, and may also include a Read-Only Memory (ROM) 620. The memory 620 may be used to store instructions, programs, code sets, or instruction sets. The memory 620 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (e.g., a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created during use of the vehicle map (e.g., phone book, audio-visual data, chat log data), and the like.
Referring to fig. 7, a computer-readable storage medium 700 is provided according to an embodiment of the present application, in which computer program instructions 710 are stored, and the computer program instructions 710 can be called by a processor to execute the method described in the above embodiment.
The computer-readable storage medium 700 may be, for example, a flash Memory, an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Electrically Programmable Read-Only Memory (EPROM), a hard disk, or a Read-Only Memory (ROM). Optionally, the Computer-readable Storage Medium includes a Non-volatile Computer-readable Storage Medium (Non-transitory Computer-readable Storage Medium). The computer readable storage medium 700 has storage space for computer program instructions 710 to perform any of the method steps of the method described above. The computer program instructions 710 may be read from or written to one or more computer program products.
Although the present application has been described with reference to the preferred embodiments, it is to be understood that the present application is not limited to the disclosed embodiments, but rather, the present application is intended to cover various modifications, equivalents and alternatives falling within the spirit and scope of the present application.
Claims (10)
1. An application program running method, characterized in that the method comprises:
acquiring a container deployment package of a target application program, wherein the container deployment package is a file obtained by compressing a container template package of a target container, an executive program file of the target application program and a configuration file of the target application program; the target container corresponds to a target function group and a target software cluster, the target application program is an application program in the target software cluster, and the target application program depends on a target state in the target function group;
starting the target container based on a container template package of the target container;
and running the target application program in the target container based on the executive program file of the target application program and the configuration file of the target application program.
2. The method of claim 1, wherein the running the target application in the target container based on the executive file of the target application and the configuration file of the target application comprises:
acquiring an application starting instruction sent by an execution management service under the condition that the running condition of the target application program is determined to be met, wherein the running condition meeting the target application program means that the activation state of the target function group is matched with the target state depended by the target application program;
and starting the target application program in the target container through a container control tool based on the executive program file of the target application program and the configuration file of the target application program.
3. The method according to claim 2, wherein after the starting the target application in the target container by the container control tool based on the execution program of the target application and the configuration information of the target application, further comprising:
acquiring an application ending instruction sent by the execution management service under the condition that the execution management service does not meet the running condition of the target application program;
ending, by the container control tool, running the target application in the target container.
4. The method of claim 1, wherein said initiating the target container based on the container template package comprises:
decompressing the container deployment package to a specified directory of an operating environment to obtain a container template package of the target container; the container template package is a file obtained by compressing a root file system directory, a container configuration template file and a container service file of the target container;
acquiring a container service file of the target container from the container template package;
creating a soft link for the container service file to a system daemon;
and starting the target container through the system daemon.
5. The method according to claim 1, wherein the step of obtaining the container deployment package of the target application comprises the steps of:
acquiring a container template packet of the target container;
creating the target function group and a target software cluster corresponding to the target function group through a configuration tool;
generating a software package of the target application under the target software cluster based on the container template package, the target application being dependent on a target state in the target function group;
and generating a container deployment package of the target application program based on the software package of the target application program.
6. The method according to any one of claims 1 to 5, wherein the generating the container deployment package of the target application based on the software package of the target application comprises:
transmitting the name of the target container, the path of the software package of the target application program and the catalog for generating the container deployment package to a container deployment script;
and generating a container deployment package of the target application program through the container deployment script.
7. The method of any one of claims 1 to 5, wherein said obtaining a container template package for the target container comprises:
acquiring a root file system directory, a container configuration template file and a container service file of the target container;
and compressing the root file system directory of the target container, the container configuration template file and the container service file to obtain a container template package of the target container.
8. An application execution apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a container deployment package of a target application program, and the container deployment package is a file obtained by compressing a container template package of a target container, an executive program file of the target application program and a configuration file of the target application program; the target container corresponds to a target function group and a target software cluster, the target application program is an application program in the target software cluster, and the target application program depends on a target state in the target function group;
a container activation module to activate the target container based on the container template package;
and the application running module is used for running the target application program in the target container based on the executive program file of the target application program and the configuration file of the target application program.
9. A vehicle, characterized in that the vehicle comprises:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the application execution method of any of claims 1-7.
10. A computer-readable storage medium having computer program instructions stored therein, the computer program instructions being invokable by a processor to perform the application execution method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211337557.5A CN115828231B (en) | 2022-10-28 | 2022-10-28 | Application program running method, device, vehicle and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211337557.5A CN115828231B (en) | 2022-10-28 | 2022-10-28 | Application program running method, device, vehicle and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115828231A true CN115828231A (en) | 2023-03-21 |
CN115828231B CN115828231B (en) | 2024-07-02 |
Family
ID=85525777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211337557.5A Active CN115828231B (en) | 2022-10-28 | 2022-10-28 | Application program running method, device, vehicle and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115828231B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116541104A (en) * | 2023-07-04 | 2023-08-04 | 宁德时代新能源科技股份有限公司 | Program management method, control device, platform, device, and storage medium |
Citations (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050060722A1 (en) * | 2003-09-15 | 2005-03-17 | Trigence Corp. | System for containerization of application sets |
CN105490860A (en) * | 2015-12-24 | 2016-04-13 | 北京奇虎科技有限公司 | Method, device and system for deploying application program operation environment |
CN106020930A (en) * | 2016-05-13 | 2016-10-12 | 深圳市中润四方信息技术有限公司 | Application container based application management method and system |
CN106648741A (en) * | 2016-10-18 | 2017-05-10 | 广州视睿电子科技有限公司 | Application system deployment method and device |
CN106802807A (en) * | 2017-02-20 | 2017-06-06 | 深圳市冬泉谷信息技术有限公司 | Application delivery method, container platform and application delivery system based on container platform |
CN107885547A (en) * | 2017-11-08 | 2018-04-06 | 江苏国泰新点软件有限公司 | A kind of collocation method of application program, device, configuration equipment and storage medium |
CN108415795A (en) * | 2018-02-12 | 2018-08-17 | 人和未来生物科技(长沙)有限公司 | A kind of container Dockerfile, container mirror image rapid generation and system |
CN108920250A (en) * | 2018-06-05 | 2018-11-30 | 麒麟合盛网络技术股份有限公司 | The method and device of Application Container |
CN108958927A (en) * | 2018-05-31 | 2018-12-07 | 康键信息技术(深圳)有限公司 | Dispositions method, device, computer equipment and the storage medium of container application |
CN110058863A (en) * | 2019-03-16 | 2019-07-26 | 平安城市建设科技(深圳)有限公司 | Construction method, device, equipment and the storage medium of Docker container |
CN110795162A (en) * | 2019-09-26 | 2020-02-14 | 北京浪潮数据技术有限公司 | Method and device for generating container mirror image file |
CN111209087A (en) * | 2020-01-15 | 2020-05-29 | 南京中新赛克科技有限责任公司 | Docker-based big data learning platform building method |
CN111752635A (en) * | 2020-06-23 | 2020-10-09 | 北京三快在线科技有限公司 | Application program running method and device, computer equipment and storage medium |
CN111949276A (en) * | 2020-08-17 | 2020-11-17 | 浪潮云信息技术股份公司 | System and method for automatically deploying application program based on container mode |
CN112181588A (en) * | 2020-09-18 | 2021-01-05 | 济南浪潮数据技术有限公司 | Application containerization method and device, electronic equipment and storage medium |
CN112256287A (en) * | 2020-10-21 | 2021-01-22 | 武汉悦学帮网络技术有限公司 | Application deployment method and device |
CN112346818A (en) * | 2020-11-02 | 2021-02-09 | 北京新媒传信科技有限公司 | Container application deployment method and device, electronic equipment and storage medium |
CN113238763A (en) * | 2021-05-17 | 2021-08-10 | 京东数字科技控股股份有限公司 | Application deployment method, device, storage medium and program product |
CN114035890A (en) * | 2021-10-22 | 2022-02-11 | 广州三七网络科技有限公司 | Container technology-based CI/CD service deployment method, device, equipment and medium |
CN114217908A (en) * | 2022-02-23 | 2022-03-22 | 广州趣丸网络科技有限公司 | Container starting method, system, device and equipment |
CN114217956A (en) * | 2021-11-19 | 2022-03-22 | 中国建设银行股份有限公司 | Container cluster deployment method and device and computer equipment |
WO2022105589A1 (en) * | 2020-11-20 | 2022-05-27 | 上海连尚网络科技有限公司 | Resource scheduling method and apparatus, electronic device and computer readable medium |
CN114721783A (en) * | 2022-05-16 | 2022-07-08 | 龙芯中科技术股份有限公司 | Resource file extraction method and device, electronic equipment and storage medium |
CN114860344A (en) * | 2022-05-26 | 2022-08-05 | 中国工商银行股份有限公司 | Container starting method and device, computer equipment and storage medium |
US20220255941A1 (en) * | 2021-02-08 | 2022-08-11 | Veaa Inc. | Method and System for Secure Container Application Framework |
-
2022
- 2022-10-28 CN CN202211337557.5A patent/CN115828231B/en active Active
Patent Citations (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050060722A1 (en) * | 2003-09-15 | 2005-03-17 | Trigence Corp. | System for containerization of application sets |
CN105490860A (en) * | 2015-12-24 | 2016-04-13 | 北京奇虎科技有限公司 | Method, device and system for deploying application program operation environment |
CN106020930A (en) * | 2016-05-13 | 2016-10-12 | 深圳市中润四方信息技术有限公司 | Application container based application management method and system |
CN106648741A (en) * | 2016-10-18 | 2017-05-10 | 广州视睿电子科技有限公司 | Application system deployment method and device |
CN106802807A (en) * | 2017-02-20 | 2017-06-06 | 深圳市冬泉谷信息技术有限公司 | Application delivery method, container platform and application delivery system based on container platform |
CN107885547A (en) * | 2017-11-08 | 2018-04-06 | 江苏国泰新点软件有限公司 | A kind of collocation method of application program, device, configuration equipment and storage medium |
CN108415795A (en) * | 2018-02-12 | 2018-08-17 | 人和未来生物科技(长沙)有限公司 | A kind of container Dockerfile, container mirror image rapid generation and system |
CN108958927A (en) * | 2018-05-31 | 2018-12-07 | 康键信息技术(深圳)有限公司 | Dispositions method, device, computer equipment and the storage medium of container application |
CN108920250A (en) * | 2018-06-05 | 2018-11-30 | 麒麟合盛网络技术股份有限公司 | The method and device of Application Container |
CN110058863A (en) * | 2019-03-16 | 2019-07-26 | 平安城市建设科技(深圳)有限公司 | Construction method, device, equipment and the storage medium of Docker container |
CN110795162A (en) * | 2019-09-26 | 2020-02-14 | 北京浪潮数据技术有限公司 | Method and device for generating container mirror image file |
CN111209087A (en) * | 2020-01-15 | 2020-05-29 | 南京中新赛克科技有限责任公司 | Docker-based big data learning platform building method |
CN111752635A (en) * | 2020-06-23 | 2020-10-09 | 北京三快在线科技有限公司 | Application program running method and device, computer equipment and storage medium |
CN111949276A (en) * | 2020-08-17 | 2020-11-17 | 浪潮云信息技术股份公司 | System and method for automatically deploying application program based on container mode |
CN112181588A (en) * | 2020-09-18 | 2021-01-05 | 济南浪潮数据技术有限公司 | Application containerization method and device, electronic equipment and storage medium |
CN112256287A (en) * | 2020-10-21 | 2021-01-22 | 武汉悦学帮网络技术有限公司 | Application deployment method and device |
CN112346818A (en) * | 2020-11-02 | 2021-02-09 | 北京新媒传信科技有限公司 | Container application deployment method and device, electronic equipment and storage medium |
WO2022105589A1 (en) * | 2020-11-20 | 2022-05-27 | 上海连尚网络科技有限公司 | Resource scheduling method and apparatus, electronic device and computer readable medium |
US20220255941A1 (en) * | 2021-02-08 | 2022-08-11 | Veaa Inc. | Method and System for Secure Container Application Framework |
CN113238763A (en) * | 2021-05-17 | 2021-08-10 | 京东数字科技控股股份有限公司 | Application deployment method, device, storage medium and program product |
CN114035890A (en) * | 2021-10-22 | 2022-02-11 | 广州三七网络科技有限公司 | Container technology-based CI/CD service deployment method, device, equipment and medium |
CN114217956A (en) * | 2021-11-19 | 2022-03-22 | 中国建设银行股份有限公司 | Container cluster deployment method and device and computer equipment |
CN114217908A (en) * | 2022-02-23 | 2022-03-22 | 广州趣丸网络科技有限公司 | Container starting method, system, device and equipment |
CN114721783A (en) * | 2022-05-16 | 2022-07-08 | 龙芯中科技术股份有限公司 | Resource file extraction method and device, electronic equipment and storage medium |
CN114860344A (en) * | 2022-05-26 | 2022-08-05 | 中国工商银行股份有限公司 | Container starting method and device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
许莉;: "一种基于软件容器的抗内部网络攻击涉密信息系统设计", 信息与电脑(理论版), no. 10, 23 May 2016 (2016-05-23) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116541104A (en) * | 2023-07-04 | 2023-08-04 | 宁德时代新能源科技股份有限公司 | Program management method, control device, platform, device, and storage medium |
CN116541104B (en) * | 2023-07-04 | 2023-09-29 | 宁德时代新能源科技股份有限公司 | Program management method, control device, platform, device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115828231B (en) | 2024-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108121594B (en) | Process management method and device | |
US9710288B2 (en) | Method and device for loading application program | |
CN111240720A (en) | Boot program upgrading method and device and storage medium | |
CN110018859B (en) | Equipment starting method and device, computer equipment and storage medium | |
CN109445845B (en) | Interface calling method and device, computer equipment and storage medium | |
CN115828231B (en) | Application program running method, device, vehicle and storage medium | |
CN110659131A (en) | Task processing method, electronic device, computer device, and storage medium | |
CN111880786A (en) | Multi-application sharing method, system, device, electronic equipment and storage medium | |
CN111949314A (en) | Method and device for generating application installation package, server and storage medium | |
KR102372644B1 (en) | Operation method of operating system and electronic device supporting the same | |
CN113157337A (en) | Application program starting method and device, terminal equipment and storage medium | |
CN117573338A (en) | Resource allocation method and device and electronic equipment | |
CN106775608B (en) | Method and device for realizing independent system process | |
CN112328297A (en) | Method and device for upgrading Android system running compatibly on Linux | |
CN113821220A (en) | Installation method and device of linux operating system | |
CN112148351A (en) | Cross-version compatibility method and system for application software | |
CN113672243A (en) | Linux system installation method, device, system, computer equipment and storage medium | |
CN112231231A (en) | Method, system and device for debugging cloud service | |
CN116975850B (en) | Contract operation method, contract operation device, electronic equipment and storage medium | |
CN117632312B (en) | Data interaction method and related device | |
CN112015478B (en) | Kernel loading method, server, device, computer device and storage medium | |
CN112380023B (en) | Distributed model calculation control method and device | |
CN113032094A (en) | CAD containerization method and device and electronic equipment | |
CN118227266A (en) | Virtual machine starting method based on container mirror image, server cluster and server | |
CN115509535A (en) | Program packaging method, system, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |