CN117193806A - Method and device for generating environment mirror image for compiling construction - Google Patents

Method and device for generating environment mirror image for compiling construction Download PDF

Info

Publication number
CN117193806A
CN117193806A CN202311153334.8A CN202311153334A CN117193806A CN 117193806 A CN117193806 A CN 117193806A CN 202311153334 A CN202311153334 A CN 202311153334A CN 117193806 A CN117193806 A CN 117193806A
Authority
CN
China
Prior art keywords
language
language compiler
installation package
source code
development
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311153334.8A
Other languages
Chinese (zh)
Inventor
李海鹏
沈阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202311153334.8A priority Critical patent/CN117193806A/en
Publication of CN117193806A publication Critical patent/CN117193806A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a method and a device for generating an environment mirror image for compiling and constructing, and relates to the technical field of software development, wherein the method comprises the following steps: receiving a plurality of source code files; determining a development language and a language compiler version number of each source code file according to the plurality of source code files; determining a plurality of language compiler installation package addresses from a pre-established installation package table according to the development languages of the plurality of source code files and the language compiler version numbers; the installation package table stores the mapping relation among development languages, language compiler version numbers and language compiler installation package addresses; downloading a plurality of language compiler installation packages according to the addresses of the plurality of language compiler installation packages; an environment image is generated using a plurality of language compiler installation packages. The application can improve the generation efficiency of the environment mirror image and reduce the generation cost of the environment mirror image.

Description

Method and device for generating environment mirror image for compiling construction
Technical Field
The present application relates to the field of software development technologies, and in particular, to a method and an apparatus for generating an environment image for compiling and constructing.
Background
This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
Different technical stacks are adopted by developers in the project development process, different construction environments are needed for constructing tasks by using an orchestration engine, when a new technical stack is encountered or different versions of the same development language are encountered, operation and maintenance personnel often need to carry out technical investigation, download corresponding language compiler installation packages, generate environment images for compiling construction to meet the use requirements, however, multiple times of debugging are needed after inquiry and downloading, and the period is long and the efficiency is low; or, the operation and maintenance personnel can directly acquire the environment image from the open source image warehouse according to the requirement on the construction environment, but the operation and maintenance personnel also need to carry out secondary processing and debugging to meet the specific use scene, so that the labor cost is high.
In summary, the method for generating the environment mirror image for compiling and constructing in the prior art has the problems of low efficiency and high labor cost.
Disclosure of Invention
The embodiment of the application provides an environment mirror image generation method for compiling and constructing, which is used for improving the environment mirror image generation efficiency for compiling and constructing and reducing the environment mirror image generation cost for compiling and constructing, and comprises the following steps:
receiving a plurality of source code files;
determining a development language and a language compiler version number of each source code file according to the plurality of source code files;
determining a plurality of language compiler installation package addresses from a pre-established installation package table according to the development languages of the plurality of source code files and the language compiler version numbers; the installation package table stores the mapping relation among development languages, language compiler version numbers and language compiler installation package addresses;
downloading a plurality of language compiler installation packages according to the addresses of the plurality of language compiler installation packages;
an environment image is generated using a plurality of language compiler installation packages.
The embodiment of the application also provides an environment image generating device for compiling and constructing, which is used for improving the environment image generating efficiency for compiling and constructing and reducing the environment image generating cost for compiling and constructing, and comprises the following steps:
the source code receiving module is used for receiving a plurality of source code files;
the development language and language compiler version number determining module is used for determining the development language and language compiler version number of each source code file according to the plurality of source code files;
the compiler installation package address determining module is used for determining a plurality of language compiler installation package addresses from a pre-established installation package table according to the development languages of a plurality of source code files and the version numbers of language compilers; the installation package table stores the mapping relation among development languages, language compiler version numbers and language compiler installation package addresses;
the environment mirror image generating module is used for downloading a plurality of language compiler installation packages according to the addresses of the plurality of language compiler installation packages; an environment image is generated using a plurality of language compiler installation packages.
The embodiment of the application also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method for generating the environment mirror image for compiling and constructing when executing the computer program.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the method for generating the environment mirror image for compiling construction when being executed by a processor.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is executed by a processor to realize the environment image generation method for compiling and constructing.
In the embodiment of the application, a plurality of source code files are received; determining a development language and a language compiler version number of each source code file according to the plurality of source code files; determining a plurality of language compiler installation package addresses from a pre-established installation package table according to the development languages of the plurality of source code files and the language compiler version numbers; the installation package table stores the mapping relation among development languages, language compiler version numbers and language compiler installation package addresses; downloading a plurality of language compiler installation packages according to the addresses of the plurality of language compiler installation packages; an environment image is generated using a plurality of language compiler installation packages. After receiving a plurality of source code files, the embodiment of the application judges the development language and the language compiler version number of each source code file, then automatically identifies and determines a plurality of language compiler installation package addresses according to the development language and the language compiler version number, the identified language compiler installation package addresses are comprehensive and accurate, and then downloads a plurality of language compiler installation packages according to the plurality of language compiler installation package addresses to generate an environment mirror image for compiling and constructing.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a flowchart of an environment image generating method for compiling a construct according to an embodiment of the present application;
FIG. 2 is a diagram illustrating an embodiment of an environment image generation method for compilation construction according to an embodiment of the present application;
FIG. 3 is a diagram illustrating an embodiment of an environment image generation method for compilation construction according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an environment image generating apparatus for compiling a construct according to an embodiment of the present application;
fig. 5 is a schematic diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present application and their descriptions herein are for the purpose of explaining the present application, but are not to be construed as limiting the application.
First, the technical terms related to the present application will be explained:
a flow programming engine: cluster management tools that queue tasks in order based on portable containers. Under the condition of complex and changeable business, the cost of designing the business can be greatly reduced by using the established flow, and the accuracy of business execution is ensured.
Mirror image: is a special file system that contains some configuration parameters (e.g., anonymous volumes, environment variables, users, etc.) prepared for the runtime, in addition to the files that are needed to provide the programs, libraries, resources, configurations, etc. that are needed for the runtime of the container.
Environment mirror for compilation build: and some images of compiling and constructing processes of the computer development language are served, and in the process of executing the compiling engine operation, the construction and compiling of the development project engineering can be performed in the images.
Technical stack: generally, various techniques are combined with each other to achieve a certain purpose or function as an organic whole, and may also be used to grasp the techniques and experience of the combination. For example, an ordinary OA system is developed, and html+css+javascript+ vue +spring boot+spring group+hibernate+spring+rock mq+dis+es+linux+mysql, and these technologies may be collectively referred to as a technology stack.
Dockerfile: dockerfile is a text file for creating all commands of the mirror image, and comprises an instruction and an instruction, wherein each instruction constructs a layer, and the mirror image is constructed according to the content of the Dockerfile through a docker build command, so that the content of each instruction describes how the layer is constructed. With the Dockefile, the own docker mirror image rule can be formulated, and the docker mirror image can be generated only by adding or modifying instructions on the docker file.
The applicant finds that the environment image generation method for compiling and constructing in the prior art has the problems of low efficiency and high labor cost. To this end, the applicant proposes an environment image generation method for compilation construction.
It should be noted that, in the technical scheme of the application, the acquisition, storage, use, processing and the like of the data all conform to the relevant regulations of national laws and regulations.
Fig. 1 is a flow chart of an environment image generating method for compiling and constructing according to an embodiment of the present application, as shown in fig. 1, the method includes:
step 101, receiving a plurality of source code files;
step 102, determining the development language and the language compiler version number of each source code file according to a plurality of source code files;
step 103, determining a plurality of language compiler installation package addresses from a pre-established installation package table according to the development languages of a plurality of source code files and the version numbers of the language compilers; the installation package table stores the mapping relation among development languages, language compiler version numbers and language compiler installation package addresses;
104, downloading a plurality of language compiler installation packages according to the addresses of the plurality of language compiler installation packages;
step 105, installing the package by using a plurality of language compilers to generate an environment image.
As can be seen from the flow shown in FIG. 1, in an embodiment of the present application, a plurality of source code files are received; determining a development language and a language compiler version number of each source code file according to the plurality of source code files; determining a plurality of language compiler installation package addresses from a pre-established installation package table according to the development languages of the plurality of source code files and the language compiler version numbers; the installation package table stores the mapping relation among development languages, language compiler version numbers and language compiler installation package addresses; downloading a plurality of language compiler installation packages according to the addresses of the plurality of language compiler installation packages; an environment image is generated using a plurality of language compiler installation packages. After receiving a plurality of source code files, the embodiment of the application judges the development language and the language compiler version number of each source code file, then automatically identifies and determines a plurality of language compiler installation package addresses according to the development language and the language compiler version number, the identified compiler installation package addresses are comprehensive and accurate, and then downloads a plurality of language compiler installation packages according to the plurality of language compiler installation package addresses to generate an environment mirror image for compiling and constructing.
The technical scheme in the embodiment of the application is explained in detail below.
First, a plurality of source code files, namely source code files developed by a plurality of developers based on different technology stacks, are received.
From the plurality of source code files, a development language and language compiler version number for each source code file is determined.
In practice, the development language and language compiler version numbers may be marked in the attributes of each source code file, from which relevant information is read when the source code file is received.
In one embodiment, determining a development language and language compiler version number for each source code file from a plurality of source code files may include:
inputting a plurality of source code files into an intelligent judgment model, and outputting the development language and the language compiler version number of each source code file; the intelligent judgment model pre-utilizes histories: the plurality of source code files, and the development language and language compiler version number of each source code file are obtained by training a machine learning model.
When the training method is implemented, the intelligent judgment model is obtained through pre-training, and the training process is as follows: and acquiring a plurality of historical source code files, randomly extracting a piece of information from the historical source code files, performing feature extraction, establishing a training set, a testing set and a verification set, constructing a machine learning model, respectively training and testing the machine learning model by using the training set and the testing set to obtain an intelligent judgment model, and finally verifying the intelligent judgment model by using the verification set. And subsequently, periodically updating the training set, the testing set and the verification set, and iteratively updating the intelligent judgment model.
According to the method, an artificial intelligence algorithm is adopted to determine the development language and the language compiler version number of each source code file, so that the manual operation of operation and maintenance personnel is reduced, and the environment mirror image generation efficiency is improved.
Then in step 103, according to the development languages and language compiler version numbers of the plurality of source code files, a plurality of language compiler installation package addresses are determined from a pre-established installation package table, and mapping relations of the development languages, the language compiler version numbers and the language compiler installation package addresses are stored in the installation package table.
When the method is implemented, a large number of mapping relations between development languages, language compiler version numbers and language compiler installation package addresses are established in advance and stored in an excel table, and when the development languages and the language compiler version numbers of a plurality of source code files are obtained, a plurality of language compiler installation package addresses are obtained through table lookup.
In one embodiment, the installation package table stores development language, language compiler version number, and language compiler installation package address in the form of key-value pairs, wherein keys include development language, language compiler version number, and values include language compiler installation package address.
In the embodiment, the installation package table is stored in the form of key value pairs, the architecture is simple, flexible, accurate and reliable, the reliability and the comprehensiveness of the installation package address of the language compiler are ensured, and the accuracy and the efficiency of generating the environment mirror image are further improved.
In step 104, the plurality of language compiler installation packages are downloaded according to the plurality of language compiler installation package addresses.
In practice, from each language compiler installation package address, the corresponding language compiler installation package is downloaded in sequence, e.g., mysql, anaconda, nginx, jdk, etc.
In one embodiment, downloading the plurality of language compiler-installed packages based on the plurality of language compiler-installed package addresses may include:
judging whether each language compiler installation package address is valid or not in real time in the process of downloading the plurality of language compiler installation packages according to the plurality of language compiler installation package addresses, and sending prompt information to a user when any language compiler installation package address is invalid;
and/or determining the update time of each language compiler installation package, and when the update time of any language compiler installation package is later than the preset date, sending prompt information to the user.
In this example, whether the address of the language compiler installation package is valid is determined in real time, if the address fails, the user is prompted to change the download address in time, and meanwhile, the update time of the language compiler installation package is detected in real time, and when the update time of the language compiler installation package is older, the user can be prompted that the installation package may have a problem, and attention is required.
In the embodiment, the user prompt information is added, so that the environment mirror image is ensured to be successfully created.
And finally, installing the package by utilizing a plurality of language compilers to generate an environment mirror image.
FIG. 2 is a schematic diagram of an embodiment of a method for generating an environment image for compiling a build, as shown in FIG. 2, using a plurality of language compiler installation packages, the method may include:
step 201, acquiring a basic system mirror image;
step 202, installing a plurality of language compiler installation packages based on the basic system mirror image, and setting environment variables to obtain a text file for creating the environment mirror image;
and 203, generating an environment mirror image according to the text file.
In implementation, the basic system image, for example, the centos7, may be pulled out according to a text file template for creating the environment image, all the language compiler installation packages downloaded before are installed, and the environment variables are set, that is, the preparation work is completed, so as to obtain the text file for creating the environment image, for example, the dockerfile, and the environment image is built according to the dockerfile through the image building command.
In one embodiment, the method for generating the environment image for compiling and constructing is implemented based on a flow programming engine; the flow orchestration engine includes a plurality of portable containers for queuing tasks in order for a job.
FIG. 3 is a schematic diagram of an embodiment of an environment image generating method for compiling a build, as shown in FIG. 3, the method is implemented according to a process layout engine, and includes two template creation processes, one is a template for creating a process layout job, and the other is a mirror image creation template for use by a job task in the process layout job. By using the flow orchestration engine, the functions of the two templates are linked, and the automated functions enable the environment images for compiling the constructs to be obtained directly in the own image repository after receiving multiple source code files.
The first template reads a plurality of source code files in the process of manufacturing the flow arranging operation template, performs serialization operation, renders the data into the template after analyzing the data, creates an operation in the flow arranging engine to obtain an example of the flow arranging operation, such as jenkinsfile pipeline operation and K8S pipeline operation, executes the flow arranging operation example, and sequentially executes tasks in the template to obtain the construction environment mirror image. The main functions of the process scheduling job template include: analyzing to obtain the development language and language compiler version numbers of each source code file, determining the addresses of a plurality of language compiler installation packages, automatically generating the dockerfile for mirror image production, executing a command to construct a mirror image, and pushing the mirror image to a mirror image warehouse of a user.
Nesting a second template in the first template, mirroring the production template: the method comprises the steps of obtaining an image of a basic system, obtaining an address of an installation package of a language compiler, installing the language compiler, setting environment variables, and constructing an image according to a text file, such as dockerfile, for creating the environment image through an image construction command.
In summary, in the embodiment of the application, after receiving a plurality of source code files, the full and complete language compiler installation package address is automatically identified, so that an environment mirror image is generated, no additional work is required for executing the construction process arrangement operation, great convenience is brought to users, especially operation and maintenance staff, the time cost of the users in the aspect of generating the environment mirror image for compiling and constructing is reduced, and the overall environment mirror image generating efficiency is improved.
The embodiment of the application also provides an environment image generating device for compiling and constructing, which is described in the following embodiment. Since the principle of the device for solving the problem is similar to that of the environment image generation method for compiling and constructing, the implementation of the device can refer to the implementation of the environment image generation method for compiling and constructing, and the repetition is omitted.
Fig. 4 is a schematic diagram of an environment image generating apparatus for compiling a construct according to an embodiment of the present application, as shown in fig. 4, the apparatus includes:
a source code receiving module 401, configured to receive a plurality of source code files;
a development language and language compiler version number determining module 402, configured to determine a development language and language compiler version number of each source code file according to the plurality of source code files;
a compiler-installed package address determining module 403, configured to determine a plurality of language-compiler-installed package addresses from a pre-established installed package table according to the development languages of the plurality of source code files and the language-compiler version numbers; the installation package table stores the mapping relation among development languages, language compiler version numbers and language compiler installation package addresses;
an environment image generating module 404, configured to download a plurality of language compiler installation packages according to the plurality of language compiler installation package addresses; an environment image is generated using a plurality of language compiler installation packages.
In one embodiment, the development language and language compiler version number determination module 402 is specifically configured to:
inputting a plurality of source code files into an intelligent judgment model, and outputting the development language and the language compiler version number of each source code file; the intelligent judgment model pre-utilizes histories: the plurality of source code files, and the development language and language compiler version number of each source code file are obtained by training a machine learning model.
In one embodiment, the installation package table stores development language, language compiler version number, and language compiler installation package address in the form of key-value pairs, wherein keys include development language, language compiler version number, and values include language compiler installation package address.
In one embodiment, the environment image generation module 404 is specifically configured to:
judging whether each language compiler installation package address is valid or not in real time in the process of downloading the plurality of language compiler installation packages according to the plurality of language compiler installation package addresses, and sending prompt information to a user when any language compiler installation package address is invalid;
and/or determining the update time of each language compiler installation package, and when the update time of any language compiler installation package is later than the preset date, sending prompt information to the user.
In one embodiment, the environment image generation module 404 is specifically configured to:
acquiring a basic system mirror image;
based on the basic system mirror image, installing a plurality of language compiler installation packages, and setting environment variables to obtain a text file for creating the environment mirror image;
and generating an environment mirror image according to the text file.
In one embodiment, the environment image generating device for compiling construction is implemented based on a flow programming engine; the flow orchestration engine includes a plurality of portable containers for queuing tasks in order for a job.
Fig. 5 is a schematic diagram of a computer device according to an embodiment of the present application, and as shown in fig. 5, a computer device 500 is further provided according to an embodiment of the present application, including a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and capable of running on the processor 501, where the processor 501 implements the above-mentioned method for generating an environment image for compiling and constructing when executing the computer program 503.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the method for generating the environment mirror image for compiling construction when being executed by a processor.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is executed by a processor to realize the environment image generation method for compiling and constructing.
In the embodiment of the application, a plurality of source code files are received; determining a development language and a language compiler version number of each source code file according to the plurality of source code files; determining a plurality of language compiler installation package addresses from a pre-established installation package table according to the development languages of the plurality of source code files and the language compiler version numbers; the installation package table stores the mapping relation among development languages, language compiler version numbers and language compiler installation package addresses; downloading a plurality of language compiler installation packages according to the addresses of the plurality of language compiler installation packages; an environment image is generated using a plurality of language compiler installation packages. After receiving a plurality of source code files, the embodiment of the application judges the development language and the language compiler version number of each source code file, then automatically identifies and determines a plurality of language compiler installation package addresses according to the development language and the language compiler version number, the identified compiler installation package addresses are comprehensive and accurate, and then downloads a plurality of language compiler installation packages according to the plurality of language compiler installation package addresses to generate an environment mirror image for compiling and constructing.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the application, and is not meant to limit the scope of the application, but to limit the application to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the application are intended to be included within the scope of the application.

Claims (15)

1. An environment image generation method for compiling construction, comprising:
receiving a plurality of source code files;
determining a development language and a language compiler version number of each source code file according to the plurality of source code files;
determining a plurality of language compiler installation package addresses from a pre-established installation package table according to the development languages of the plurality of source code files and the language compiler version numbers; the installation package table stores the mapping relation among development languages, language compiler version numbers and language compiler installation package addresses;
downloading a plurality of language compiler installation packages according to the addresses of the plurality of language compiler installation packages;
an environment image is generated using a plurality of language compiler installation packages.
2. The method of claim 1, wherein determining a development language and language compiler version number for each source code file from a plurality of source code files comprises:
inputting a plurality of source code files into an intelligent judgment model, and outputting the development language and the language compiler version number of each source code file; the intelligent judgment model pre-utilizes histories: the plurality of source code files, and the development language and language compiler version number of each source code file are obtained by training a machine learning model.
3. The method of claim 1, wherein the installation package table stores development language, language compiler version number, and language compiler installation package address in the form of key-value pairs, wherein keys include development language, language compiler version number, and values include language compiler installation package address.
4. The method of claim 1, wherein downloading the plurality of language compiler-installed packages based on the plurality of language compiler-installed package addresses, comprises:
judging whether each language compiler installation package address is valid or not in real time in the process of downloading the plurality of language compiler installation packages according to the plurality of language compiler installation package addresses, and sending prompt information to a user when any language compiler installation package address is invalid;
and/or determining the update time of each language compiler installation package, and when the update time of any language compiler installation package is later than the preset date, sending prompt information to the user.
5. The method of claim 1, wherein installing packages with a plurality of language compilers, generating an environment image, comprises:
acquiring a basic system mirror image;
based on the basic system mirror image, installing a plurality of language compiler installation packages, and setting environment variables to obtain a text file for creating the environment mirror image;
and generating an environment mirror image according to the text file.
6. The method of any one of claims 1-5, wherein the environment image generation method for compilation construction is implemented based on a flow orchestration engine; the flow orchestration engine includes a plurality of portable containers for queuing tasks in order for a job.
7. An environment image generating apparatus for compiling construction, comprising:
the source code receiving module is used for receiving a plurality of source code files;
the development language and language compiler version number determining module is used for determining the development language and language compiler version number of each source code file according to the plurality of source code files;
the compiler installation package address determining module is used for determining a plurality of language compiler installation package addresses from a pre-established installation package table according to the development languages of a plurality of source code files and the version numbers of language compilers; the installation package table stores the mapping relation among development languages, language compiler version numbers and language compiler installation package addresses;
the environment mirror image generating module is used for downloading a plurality of language compiler installation packages according to the addresses of the plurality of language compiler installation packages; an environment image is generated using a plurality of language compiler installation packages.
8. The apparatus of claim 7, wherein the development language and language compiler version number determination module is specifically configured to:
inputting a plurality of source code files into an intelligent judgment model, and outputting the development language and the language compiler version number of each source code file; the intelligent judgment model pre-utilizes histories: the plurality of source code files, and the development language and language compiler version number of each source code file are obtained by training a machine learning model.
9. The apparatus of claim 7, wherein the installation package table stores development language, language compiler version number, and language compiler installation package address in the form of key-value pairs, wherein keys include development language, language compiler version number, and values include language compiler installation package address.
10. The apparatus of claim 7, wherein the environment image generation module is specifically configured to:
judging whether each language compiler installation package address is valid or not in real time in the process of downloading the plurality of language compiler installation packages according to the plurality of language compiler installation package addresses, and sending prompt information to a user when any language compiler installation package address is invalid;
and/or determining the update time of each language compiler installation package, and when the update time of any language compiler installation package is later than the preset date, sending prompt information to the user.
11. The apparatus of claim 7, wherein the environment image generation module is specifically configured to:
acquiring a basic system mirror image;
based on the basic system mirror image, installing a plurality of language compiler installation packages, and setting environment variables to obtain a text file for creating the environment mirror image;
and generating an environment mirror image according to the text file.
12. The apparatus of any of claims 7-11, wherein the environment image generating means for compiling the build is implemented based on a flow orchestration engine; the flow orchestration engine includes a plurality of portable containers for queuing tasks in order for a job.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 6 when executing the computer program.
14. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 1 to 6.
15. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the method of any of claims 1 to 6.
CN202311153334.8A 2023-09-07 2023-09-07 Method and device for generating environment mirror image for compiling construction Pending CN117193806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311153334.8A CN117193806A (en) 2023-09-07 2023-09-07 Method and device for generating environment mirror image for compiling construction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311153334.8A CN117193806A (en) 2023-09-07 2023-09-07 Method and device for generating environment mirror image for compiling construction

Publications (1)

Publication Number Publication Date
CN117193806A true CN117193806A (en) 2023-12-08

Family

ID=89002996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311153334.8A Pending CN117193806A (en) 2023-09-07 2023-09-07 Method and device for generating environment mirror image for compiling construction

Country Status (1)

Country Link
CN (1) CN117193806A (en)

Similar Documents

Publication Publication Date Title
US10162612B2 (en) Method and apparatus for inventory analysis
US11194550B2 (en) System and method for migrating legacy software to a system common architecture
US8898635B2 (en) System and method for automatic impact variable analysis and field expansion in mainframe systems
Groce et al. From scripts to specifications: the evolution of a flight software testing effort
CN103942099A (en) Parallel task execution method and device based on Hive
CN113032963A (en) Simulink model simulation acceleration method and device
Bernaschina et al. Formal semantics of OMG’s Interaction Flow Modeling Language (IFML) for mobile and rich-client application model driven development
CN113626324A (en) Move language virtual machine-oriented fuzzy test method
Diaz et al. Openmp 4.5 validation and verification suite for device offload
CN113254054B (en) Intelligent contract one-stop development system and method
US20050138602A1 (en) System and method for deriving a process-based specification
CN117111907A (en) Software development system
Alizadehsani et al. Modern integrated development environment (ides)
Miao et al. Automated requirements validation for atp software via specification review and testing
CN117193806A (en) Method and device for generating environment mirror image for compiling construction
Halvorsen Python Programming
EP2782005A1 (en) Verifying state reachability in a statechart model having computer program code embedded therein
Itsykson Partial specifications of libraries: Applications in software engineering
Wojszczyk et al. Performance analysis of extracting object structure from source code
CN105700854B (en) Run the method and device of application task
Gottardi et al. Model-based reuse for crosscutting frameworks: assessing reuse and maintenance effort
US20240176722A1 (en) Automated public certification of specifications and software
Putra et al. CNT: Semi-Automatic Translation from CWL to Nextflow for Genomic Workflows
Qazi et al. Model driven architecture with encapsulated quality check and enhancement feature
Wang et al. SciApps: a bioinformatics workflow platform powered by XSEDE and CyVerse

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