A cloud compilation method, device, electronic device and storage medium
By obtaining and verifying the code on the front-end server, and using the container engine to schedule and adapt the environment, it solves the problems of environment version management and resource waste in the existing compilation method, realizes environment version control and load balancing, and simplifies the configuration process.
Patent Information
- Application Number
- CN202110368944.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-04-06
AI Technical Summary
Existing compilation methods cannot effectively manage environment versions, resulting in cumbersome and error-prone configuration of the environment, inability to efficiently schedule hardware resources, and a waste of computer resources.
Obtain the software code through the front-end server, perform format verification and environment analysis, use the container engine to schedule the adaptation environment, transmit and execute the code, generate execution results, and achieve load balancing through adaptation environment scheduling.
It achieves effective management of environment versions and saves resources, avoids waste of computer resources, and simplifies environment configuration and version control.
Smart Images

Figure CN112965842B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of compilation technology, and in particular to a cloud compilation method, device, electronic device and storage medium. Background Art
[0002] As software versions are updated and iterated, the software's operating environment is also iterating. The operating environment is divided into the computer computing environment at the hardware level and the class library environment at the software level. In terms of code version management, there are excellent version control software such as "git", but there is still a lack of environmental management.
[0003] At present, the existing technology has the following problems, including: the configuration environment is cumbersome and error-prone, requiring a lot of manual configuration time cost; it is impossible to effectively version control the environment; the system cannot efficiently schedule hardware resources to adapt to code requirements.
[0004] In addition, the development environments of development teams are different, but there is a unified demand for project iteration. Maintaining a unified environment version will waste a lot of time, and deploying the same environment on multiple machines will waste computer resources. Summary of the invention
[0005] The present invention provides a cloud compilation method, device, electronic device and storage medium, which are used to solve the technical problems that the existing compilation method cannot effectively perform environment version management and wastes computer resources.
[0006] The present invention provides a cloud compilation method, the method comprising:
[0007] Obtain software code through the preset front-end server;
[0008] Performing format check on the code;
[0009] When the verification passes, identifying the software code to obtain environmental analysis information;
[0010] Scheduling an adaptation environment from a preset container engine according to the environment analysis information;
[0011] Transmitting the software code to the adaptation environment, and executing the software code in the adaptation environment to generate an execution result;
[0012] The execution result is sent to the front-end server and displayed.
[0013] Optionally, the step of identifying the software code to obtain environmental analysis information includes:
[0014] Introducing a feature code of a preset external library into the software code;
[0015] Using the feature code to identify the software code and determine the target library;
[0016] Acquire prior historical experience of the target library;
[0017] The prior historical experience is used to calculate environmental analysis information.
[0018] Optionally, the step of scheduling an adaptation environment from a preset container engine according to the environment analysis information includes:
[0019] Generate an environment scheduling request according to the environment analysis information;
[0020] In response to the environment scheduling request, determining whether there is an adaptation environment in the container engine;
[0021] If so, determining whether the adaptation environment has been activated;
[0022] If activated, the adaptation environment is scheduled.
[0023] Optionally, it also includes:
[0024] Updating the calling frequency of the adaptation environment in real time;
[0025] When the calling frequency of the adaptation environment reaches a preset frequency threshold, the adaptation environment is dormant;
[0026] When the calling frequency of the adaptation environment does not reach the preset frequency threshold, determining whether the adaptation environment is overloaded;
[0027] If overloaded, the adaptation environment is put into hibernation.
[0028] Optionally, it also includes:
[0029] If the adaptation environment does not exist in the container engine, a preset environment adaptation module is called to generate an adaptation environment corresponding to the environment analysis information, and the adaptation environment corresponding to the environment analysis information is activated.
[0030] The present invention also provides a cloud compilation device, the method comprising:
[0031] An acquisition module is used to acquire software codes through a preset front-end server;
[0032] A format checking module, used for performing format checking on the code;
[0033] An identification module, used to identify the software code to obtain environmental analysis information when the verification passes;
[0034] A scheduling module, used to schedule an adaptation environment from a preset container engine according to the environment analysis information;
[0035] An execution module, used for transmitting the software code to the adaptation environment, and executing the software code in the adaptation environment to generate an execution result;
[0036] A display module is used to send the execution result to the front-end server and display the execution result.
[0037] Optionally, the identification module includes:
[0038] An import submodule, used to import a feature code of a preset external library into the software code;
[0039] A target library determination submodule, used to identify the software code using the feature code to determine the target library;
[0040] A priori historical experience acquisition submodule, used to acquire the priori historical experience of the target library;
[0041] The environmental analysis information calculation submodule is used to calculate the environmental analysis information using the prior historical experience.
[0042] Optionally, the scheduling module includes:
[0043] A request generation submodule, used to generate an environment scheduling request according to the environment analysis information;
[0044] A judgment submodule, used to respond to the environment scheduling request and judge whether there is an adaptation environment in the container engine;
[0045] an activation judgment submodule, for judging whether the adaptation environment has been activated;
[0046] The scheduling submodule is used to schedule the adaptation environment if activated.
[0047] The present invention also provides an electronic device, the device comprising a processor and a memory:
[0048] The memory is used to store program code and transmit the program code to the processor;
[0049] The processor is used to execute the cloud compilation method as described in any one of the above items according to the instructions in the program code.
[0050] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the cloud compilation method as described in any one of the above items.
[0051] It can be seen from the above technical scheme that the present invention has the following advantages: the present invention provides a cloud compilation method, and specifically discloses: obtaining code through a front-end server; performing format verification on the code; when the verification passes, identifying the code to obtain environmental analysis information; scheduling an adaptation environment from a preset container engine according to the environmental analysis information; transmitting the code to the adaptation environment, and executing the code in the adaptation environment to generate an execution result; sending the execution result to the front-end server, and displaying the execution result.
[0052] The present invention obtains environment analysis information by identifying the code, and schedules the adaptation environment according to the environment analysis information, so that information such as the environment version can adapt to the code of different versions of software, thereby realizing version control of the environment. At the same time, through the adaptation and scheduling of the environment, load balancing can be effectively performed to save computer resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0054] Figure 1 An architecture diagram of a cloud compilation system provided by an embodiment of the present invention;
[0055] Figure 2 A schematic diagram of environment version control provided by an embodiment of the present invention;
[0056] Figure 3 A flowchart of a cloud compilation method provided by an embodiment of the present invention;
[0057] Figure 4 A compilation process diagram of the cloud compilation method provided by an embodiment of the present invention;
[0058] Figure 5 A flowchart of a cloud compilation method provided by another embodiment of the present invention;
[0059] Figure 6 A flowchart of environmental analysis information calculation of the software code provided by an embodiment of the present invention;
[0060] Figure 7 A schematic diagram of a load balancing process provided by an embodiment of the present invention;
[0061] Figure 8 A structural block diagram of a cloud compilation device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The embodiments of the present invention provide a cloud compilation method, device, electronic device and storage medium, which are used to solve the technical problems that the existing compilation methods cannot effectively manage the environment version and waste computer resources.
[0063] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] See also Figure 1 , Figure 1 An architecture diagram of a cloud compilation system provided by an embodiment of the present invention.
[0065] like Figure 1 As shown, the cloud compilation system provided by the embodiment of the present invention includes a Vue front-end server, a back-end server, a container engine and a database; wherein the back-end server communicates with the Vue front-end server and the database respectively, and the back-end server communicates with the container engine.
[0066] In actual applications, the system's own installation module can be used to build the front-end and back-end operating environments for the server; update the container engine environment and install the container engine; in addition, a pre-specified code operating environment can also be installed.
[0067] The Vue front-end server carries a web visualization module, which can provide users with a graphical interactive interface to facilitate the management and operation of the system. It mainly provides the following functions: environment management function; environment version control function; code online compilation function; code project management function and code development auxiliary function.
[0068] The backend server carries an environment adaptation module, an environment version control module, and an environment scheduling module. The environment adaptation module can identify the feature codes of the external libraries introduced in the code and analyze the libraries to be used, and pre-calculate the environment analysis information based on the prior historical experience of using these libraries.
[0069] The environment version control module is used to record changes in environment versions and back up and store changes. It also supports sharing and synchronization of team software versions. Figure 2The team environment repository records the package configuration items of the environment changes and the computing resource configuration required for the corresponding code operation. You can clone it to the personal environment repository and finally configure it as a workspace environment for local coding.
[0070] The environment scheduling module is used to dynamically adjust the environment load according to the environment scheduling request and timed polling.
[0071] See also Figure 3 , Figure 3 A flowchart of the steps of a cloud compilation method provided by an embodiment of the present invention.
[0072] based on Figure 1 The cloud compilation system provided by the present invention provides a cloud compilation method, which may specifically include the following steps:
[0073] Step 301, obtaining software code through a preset front-end server;
[0074] Step 302, performing format verification on the software code;
[0075] In the embodiment of the present invention, the software code can be written by a preset front-end server, and the code format of the software code can be checked and verified by a preset visualization module.
[0076] Step 303, when the verification passes, identify the software code to obtain environmental analysis information;
[0077] When the verification is passed, the software code can be identified to obtain environmental analysis information, wherein the environmental analysis information can be information obtained by analyzing historical environmental data.
[0078] Step 304, scheduling an adaptation environment from a preset container engine according to the environment analysis information;
[0079] In the embodiment of the present invention, the container engine stores different types and versions of operating environments, which can adapt to software with different requirements. When the environment analysis information of the software code is obtained, the container engine can schedule the adaptation environment according to the environment analysis information.
[0080] Step 305, transferring the software code to the adaptation environment, and executing the software code in the adaptation environment to generate an execution result;
[0081] Step 306, sending the execution result to the front-end server and displaying the execution result.
[0082] In the adaptation environment where the software code is obtained, the software code is transferred to the adaptation environment, and the software code is executed in the adaptation environment to complete the compilation of the software code and obtain the execution result. Finally, the execution result is returned to the front-end server and displayed through the visualization module of the front-end server. The specific compilation process is as follows Figure 4 shown.
[0083] The present invention obtains environment analysis information by identifying the code, and schedules the adaptation environment according to the environment analysis information, so that information such as the environment version can adapt to the code of different versions of software, thereby realizing version control of the environment. At the same time, through the adaptation and scheduling of the environment, load balancing can be effectively performed to save computer resources.
[0084] See also Figure 5 , Figure 5 A flowchart of a cloud compilation method provided by another embodiment of the present invention. Specifically, the following steps may be included:
[0085] Step 501, obtaining software code through a preset front-end server;
[0086] Step 502, performing format verification on the software code;
[0087] In the embodiment of the present invention, steps 501-502 are the same as steps 301-302. For specific contents, reference may be made to the description of steps 301-302, which will not be repeated here.
[0088] Step 503, introducing the feature code of the preset external library into the software code;
[0089] Step 504, using the feature code to identify the software code and determine the target library;
[0090] Step 505, obtaining the prior historical experience of the target library;
[0091] Step 506, using prior historical experience to calculate environmental analysis information;
[0092] In an embodiment of the present invention, the present invention can identify the software code by introducing a feature code of a preset external library into the software code, thereby determining the target library; and calculate the environmental analysis information of the software code based on the prior historical experience of the target library.
[0093] In the specific implementation, Figure 6 As shown, the process of calculating the environmental analysis information of the software code is as follows:
[0094] Read the project directory of the software code;
[0095] Determine whether the file exists in the project directory;
[0096] When the file does not exist in the project directory, the output prompt is: Directory selection error, reselect;
[0097] When the file exists in the project directory, read the next file;
[0098] Read the next line of the file;
[0099] Identify the characteristics of the line;
[0100] Determine whether there is library import information based on the characteristics of the row;
[0101] If yes, record the library file, call the prior database to calculate the basic hardware environment, and determine whether there is a next line;
[0102] If the library import information exists, directly determine whether there is a next line. If there is a next line, jump to the operation of reading the next line of the file until there is no next line in the file.
[0103] Then determine whether the next file exists. If the next file exists, jump to the operation of reading the next file until the next file does not exist.
[0104] When all files have been read, the environment analysis information is output according to the recorded hardware environment.
[0105] Step 507, scheduling an adaptation environment from a preset container engine according to the environment analysis information;
[0106] In the embodiment of the present invention, step 507 may include the following sub-steps:
[0107] Generate environmental scheduling requests based on environmental analysis information;
[0108] Respond to the environment scheduling request and determine whether there is an adaptation environment in the container engine;
[0109] If so, determine whether the adaptation environment has been activated;
[0110] If activated, the scheduler adapts to the environment.
[0111] In the specific implementation, Figure 7 As shown, when an environment scheduling request is received, it can be determined whether there is an adaptation environment that meets the conditions in the container engine. If so, it is determined whether the adaptation environment has been activated. When the adaptation environment has been activated, it indicates that the adaptation environment meets the compilation requirements. At this time, the environment calling interface can be returned to call the corresponding adaptation environment through the environment calling interface.
[0112] Furthermore, if the adaptation environment does not exist in the container engine, the preset environment adaptation module is called to generate the adaptation environment corresponding to the environment analysis information, and the adaptation environment corresponding to the environment analysis information is activated.
[0113] In the specific implementation, Figure 7 As shown, if there is no adaptation environment in the container engine, the environment adaptation module can be called to generate an adaptation environment corresponding to the environment analysis information and activate the adaptation environment.
[0114] Furthermore, after the adaptation environment is scheduled, the load may be balanced through the following operations to avoid overload.
[0115] Update the calling frequency to adapt to the environment in real time;
[0116] When the calling frequency of the adaptation environment reaches a preset frequency threshold, the adaptation environment is dormant;
[0117] When the calling frequency of the adaptation environment does not reach the preset frequency threshold, it is determined whether the adaptation environment is overloaded;
[0118] If overloaded, it will go into hibernation to adapt to the environment.
[0119] In the specific implementation, Figure 7 As shown, each time after the scheduling of the adaptation environment is completed, the calling frequency of the called adaptation environment needs to be updated in real time, and when the calling frequency reaches the preset frequency threshold, the adaptation environment is hibernated and resources are released. When the calling frequency of the adaptation environment does not reach the preset frequency threshold, it is necessary to determine whether the container environment is overloaded to avoid overloaded calls to the adaptation environment. If overloaded, the adaptation environment is hibernated and resources are released.
[0120] Step 508, transferring the software code to the adaptation environment, and executing the software code in the adaptation environment to generate an execution result;
[0121] Step 509, sending the execution result to the front-end server and displaying the execution result.
[0122] In the adaptation environment where the software code is obtained, the software code is transmitted to the adaptation environment and executed in the adaptation environment to complete the compilation of the software code and obtain the execution result. Finally, the execution result is returned to the front-end server and displayed through the visualization module of the front-end server.
[0123] The present invention obtains environment analysis information by identifying the code, and schedules the adaptation environment according to the environment analysis information, so that information such as the environment version can adapt to the code of different versions of software, thereby realizing version control of the environment. At the same time, through the adaptation and scheduling of the environment, load balancing can be effectively performed to save computer resources.
[0124] See also Figure 8 , Figure 8 A structural block diagram of a cloud compilation device provided by an embodiment of the present invention.
[0125] An embodiment of the present invention provides a cloud compilation device, and the method includes:
[0126] The acquisition module 801 is used to acquire the software code through a preset front-end server;
[0127] The format checking module 802 is used to check the format of the code;
[0128] Identification module 803, used to identify the software code to obtain environmental analysis information when the verification passes;
[0129] The scheduling module 804 is used to schedule the adaptation environment from the preset container engine according to the environment analysis information;
[0130] An execution module 805 is used to transmit the software code to the adaptation environment, execute the software code in the adaptation environment, and generate an execution result;
[0131] The display module 806 is used to send the execution result to the front-end server and display the execution result.
[0132] In the embodiment of the present invention, the identification module 803 includes:
[0133] The import submodule is used to introduce the feature code of the preset external library into the software code;
[0134] The target library determination submodule is used to identify the software code using the feature code and determine the target library;
[0135] A priori historical experience acquisition submodule is used to acquire the priori historical experience of the target library;
[0136] The environmental analysis information calculation submodule is used to calculate environmental analysis information using prior historical experience.
[0137] In the embodiment of the present invention, the scheduling module 804 includes:
[0138] The request generation submodule is used to generate an environment scheduling request based on the environment analysis information;
[0139] The judgment submodule is used to respond to the environment scheduling request and determine whether there is an adaptation environment in the container engine;
[0140] The activation judgment submodule is used to judge whether the adaptation environment has been activated;
[0141] The scheduling submodule is used to schedule the adaptation environment if activated.
[0142] In the embodiment of the present invention, the scheduling module 804 further includes:
[0143] Update submodule, used to update the calling frequency of the adaptation environment in real time;
[0144] A first dormancy submodule, configured to put the adaptation environment into dormancy when the calling frequency of the adaptation environment reaches a preset frequency threshold;
[0145] An overload judgment submodule is used to judge whether the adaptation environment is overloaded when the calling frequency of the adaptation environment does not reach a preset frequency threshold;
[0146] The second sleep submodule is used to sleep to adapt to the environment if overloaded.
[0147] In the embodiment of the present invention, the scheduling module 804 further includes:
[0148] The adaptation environment generation submodule is used to call the preset environment adaptation module to generate the adaptation environment corresponding to the environment analysis information if there is no adaptation environment in the container engine, and activate the adaptation environment corresponding to the environment analysis information.
[0149] An embodiment of the present invention further provides an electronic device, the device comprising a processor and a memory:
[0150] The memory is used to store the program code and transmit the program code to the processor;
[0151] The processor is used to execute the cloud compilation method of any embodiment of the present invention according to the instructions in the program code.
[0152] An embodiment of the present invention further provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the cloud compilation method of any embodiment of the present invention.
[0153] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0154] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0155] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0156] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0157] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0158] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0159] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0160] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0161] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A cloud compilation method, characterized in that: The method comprises: Obtain software code through the preset front-end server; Performing format check on the code; When the verification passes, identifying the software code to obtain environmental analysis information; Scheduling an adaptation environment from a preset container engine according to the environment analysis information; Transmitting the software code to the adaptation environment, and executing the software code in the adaptation environment to generate an execution result; Sending the execution result to the front-end server and displaying the execution result; The step of identifying the software code to obtain environmental analysis information includes: Introducing a feature code of a preset external library into the software code; Using the feature code to identify the software code and determine the target library; Acquire prior historical experience of the target library; The prior historical experience is used to calculate environmental analysis information.
2. The method according to claim 1, characterized in that The step of scheduling the adaptation environment from the preset container engine according to the environment analysis information includes: Generate an environment scheduling request according to the environment analysis information; In response to the environment scheduling request, determining whether there is an adaptation environment in the container engine; If so, determining whether the adaptation environment has been activated; If activated, the adaptation environment is scheduled.
3. The method according to claim 2, characterized in that Also includes: updating the calling frequency of the adaptation environment in real time; When the calling frequency of the adaptation environment reaches a preset frequency threshold, the adaptation environment is dormant; When the calling frequency of the adaptation environment does not reach the preset frequency threshold, determining whether the adaptation environment is overloaded; If overloaded, the adaptation environment is put into hibernation.
4. The method according to claim 2, characterized in that: Also includes: If the adaptation environment does not exist in the container engine, a preset environment adaptation module is called to generate an adaptation environment corresponding to the environment analysis information, and the adaptation environment corresponding to the environment analysis information is activated.
5. A cloud compilation device, characterized in that: The device comprises: An acquisition module is used to acquire software codes through a preset front-end server; A format checking module, used for performing format checking on the code; An identification module, used to identify the software code to obtain environmental analysis information when the verification passes; A scheduling module, used to schedule an adaptation environment from a preset container engine according to the environment analysis information; An execution module, used for transmitting the software code to the adaptation environment, and executing the software code in the adaptation environment to generate an execution result; A display module, used to send the execution result to the front-end server and display the execution result; Wherein, the identification module includes: An import submodule, used to import a feature code of a preset external library into the software code; A target library determination submodule, used to identify the software code using the feature code to determine the target library; A priori historical experience acquisition submodule, used to acquire the priori historical experience of the target library; The environmental analysis information calculation submodule is used to calculate the environmental analysis information using the prior historical experience.
6. The device according to claim 5, characterized in that The scheduling module comprises: A request generation submodule, used to generate an environment scheduling request according to the environment analysis information; A judgment submodule, used to respond to the environment scheduling request and judge whether there is an adaptation environment in the container engine; an activation judgment submodule, for judging whether the adaptation environment has been activated; The scheduling submodule is used to schedule the adaptation environment if activated.
7. An electronic device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the cloud compilation method according to any one of claims 1 to 4 according to the instructions in the program code.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the cloud compilation method according to any one of claims 1 to 4.
