CN114237649A - Code detection method and device, electronic equipment and program product - Google Patents

Code detection method and device, electronic equipment and program product Download PDF

Info

Publication number
CN114237649A
CN114237649A CN202111574348.8A CN202111574348A CN114237649A CN 114237649 A CN114237649 A CN 114237649A CN 202111574348 A CN202111574348 A CN 202111574348A CN 114237649 A CN114237649 A CN 114237649A
Authority
CN
China
Prior art keywords
application
application resource
environment
deployed
files
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
CN202111574348.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
Original Assignee
China Construction Bank Corp
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 filed Critical China Construction Bank Corp
Priority to CN202111574348.8A priority Critical patent/CN114237649A/en
Publication of CN114237649A publication Critical patent/CN114237649A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the field of computers, and particularly provides a code detection method, a code detection device, electronic equipment and a program product, wherein an application resource package set of an application to be deployed is obtained, and the application resource package set comprises a plurality of application resource files of the application to be deployed and source code files for installing the application resource files; locally deploying a container environment required by an application to be deployed by using a preset environment deployment template; executing the source code files of the application resources in the container environment, and starting the installed application resource files; detecting the running state of each application resource file in the container environment; and submitting the application resource packet set of the application to be deployed which passes the detection to the server, so that only the application resource of the application to be deployed which passes the detection is uploaded to the server, and therefore, when a tester tests the application to be deployed, the tester can successfully install and deploy each application resource, and the test is ensured to be smoothly carried out.

Description

Code detection method and device, electronic equipment and program product
Technical Field
The present application relates to the field of computer technologies, and in particular, to a code detection method and apparatus, an electronic device, and a program product.
Background
In some enterprise-level application scenarios, in order to complete development and deployment of application software, developers may respectively develop different customized application resources for the application, so as to implement various functions of the application software.
In the prior art, after the development of each application resource of an application is completed, the application resources are uploaded to a server for a tester to download, integrally install and perform a performance test on the whole application software.
However, due to the difference of developers of the application resources or the problem of code compatibility between the application resources, the application resources of the same application software are prone to being installed unsuccessfully or being incompatible with each other, which greatly affects the testing progress of the application software.
Disclosure of Invention
The embodiment of the application provides a code detection method, a code detection device, electronic equipment and a program product, which are used for detecting each application resource of an application and improving the subsequent testing efficiency of application software.
In a first aspect, the present application provides a code detection method, including:
a code detection method, comprising:
obtaining an application resource package set of an application to be deployed, wherein the application resource package set comprises a plurality of application resource files of the application to be deployed and source code files for installing the application resource files;
locally deploying a container environment required by the application to be deployed by using a preset environment deployment template;
executing the source code files of the application resources in the container environment, and starting the installed application resource files;
detecting the running state of each application resource file in the container environment;
and submitting the application resource packet set of the application to be deployed which passes the detection to the server.
Therefore, before uploading the application resources of the application to be deployed to the server, the running state of the source code of each application resource is detected in the container environment to obtain a detection result, and only the application resources of the application to be deployed which pass the detection are uploaded to the server, so that a tester can successfully install and deploy each application resource when testing the application to be deployed, and the smooth performance of the test is ensured.
Optionally, the deploying, by using a preset environment deployment template, before locally deploying the container environment required by the application to be deployed, further includes:
according to the running environment required by the application to be deployed, establishing an initial container environment under a preset virtual machine environment; and debugging the initial container environment, and generating the environment deployment template according to the initial container environment which passes the debugging.
It can be known that, by creating the environment deployment template in advance before deploying the container environment locally, the test efficiency of the subsequent code test is improved.
Optionally, the detecting the running state of each application resource file in the container environment includes:
detecting the running state of each application resource file; detecting the running state of each container service in the container environment.
Therefore, the running state of each application resource and the running state of the container environment running each application resource are detected, so that the application resources can be guaranteed to normally run in the test stage from multiple angles.
Optionally, the detecting the running state of each application resource file includes:
judging whether each application resource file is installed successfully;
and judging whether the application service of each application resource file is complete or not.
Therefore, the installation condition of each application resource and the integrity of the application service are verified, so that the application resources can be detected more comprehensively, and the normal operation of the application resources in a test stage is further ensured.
In a second aspect, the present application provides a code detection apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring an application resource package set of an application to be deployed, and the application resource package set comprises a plurality of application resource files of the application to be deployed and source code files for installing the application resource files;
the environment deployment module is used for locally deploying the container environment required by the application to be deployed by utilizing a preset environment deployment template;
the detection module is used for executing the source code files of the application resources in the container environment and starting the installed application resource files; detecting the running state of each application resource file in the container environment; and submitting the application resource package set of the detected application to be deployed to the server.
Optionally, the method further includes: an environment creation module; the environment creation module to:
according to the running environment required by the application to be deployed, establishing an initial container environment under a preset virtual machine environment;
and debugging the initial container environment, and generating the environment deployment template according to the initial container environment which passes the debugging.
Optionally, the detection module is specifically configured to detect an operating state of each application resource file; and detecting the running state of each container service in the container environment.
Optionally, the detection module is specifically configured to determine whether each application resource file is successfully installed; and judging whether the application service of each application resource file is complete or not.
In a third aspect, the present application provides an electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the method of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect.
According to the code detection method, the code detection device, the electronic equipment and the program product, an application resource package set of an application to be deployed is obtained, wherein the application resource package set comprises a plurality of application resource files of the application to be deployed and source code files for installing the application resource files; locally deploying a container environment required by the application to be deployed by using a preset environment deployment template; executing the source code files of the application resources in the container environment, and starting the installed application resource files; detecting the running state of each application resource file in the container environment; and submitting the application resource packet set of the application to be deployed which passes the detection to the server, so that only the application resource of the application to be deployed which passes the detection is uploaded to the server, and therefore, when a tester tests the application to be deployed, the tester can successfully install and deploy each application resource, and the test is ensured to be smoothly carried out.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a network architecture on which the present application is based;
FIG. 2 is a schematic flow chart of a code detection method provided herein;
fig. 3 is a schematic structural diagram of a code detection apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another code detection apparatus provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of systems and methods consistent with certain aspects of the present application, as detailed in the appended claims.
First, terms of art related to the present application are explained:
helm: representing a kubernets-based package manager, which is a client tool for installing deployment container cloud applications; the help of the helm can help developers to define, install and upgrade container cloud applications in Kubernets, and meanwhile, the helm can also be used for sharing the container cloud applications.
Chart: the program package used for representing Helm contains program files such as images, dependency relationships and resource definitions required for running a Kubernets application program.
pre-commit: used to refer to the code pre-commit process.
In a common scene, a developer packs resource files required by an application to be deployed according to a format of Helm Chart, opens some variable fields to a user through a Templating mode and the like, and finally concentratedly stores the obtained packaged application packages (Helm Chart) in a warehouse of a unified server for the user to browse and download.
In some enterprise-level application scenarios related to the present application, a developer is required to develop multiple helm charts for enterprise-level application software, and finally deploy the multiple helm charts to k8s to cooperate with each other to complete a complete software function of the application software. That is, in order to complete the development and deployment of the application software, developers may respectively develop different customized application resources for the application, so as to implement various functions of the application software.
And then, after the development of each application resource of the application is completed, the application resources are uploaded to a server so as to be downloaded, integrally installed and subjected to performance test of the whole application software by a tester. And the tester downloads the codes and combines the codes to trigger test execution, wherein when the tester finds that one chart fails to install or the services provided by a plurality of charts have problems in mutual cooperation, the test cannot be normally performed. The code of these application resources will be returned to the developer for code modification, which will greatly affect the testing progress of the application software.
In view of the above problems, in the code detection method, the code detection device, the electronic device, and the program product provided in the embodiments of the present application, an application resource package set of an application to be deployed is obtained, where the application resource package set includes a plurality of application resource files of the application to be deployed and a source code file for installing each application resource file; locally deploying a container environment required by the application to be deployed by using a preset environment deployment template; executing the source code files of the application resources in the container environment, and starting the installed application resource files; detecting the running state of each application resource file in the container environment; and submitting the application resource packet set of the application to be deployed which passes the detection to the server, so that only the application resource of the application to be deployed which passes the detection is uploaded to the server, and therefore, when a tester tests the application to be deployed, the tester can successfully install and deploy each application resource, and the test is ensured to be smoothly carried out.
The method provided by the present application will be described below with reference to different implementations.
Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture on which the present application is based, where the network architecture shown in fig. 1 may specifically include a user equipment 1 and a server 2;
the user equipment 1 may be specifically a hardware device that can be used to perform code operations such as code compilation, and includes, but is not limited to, a mobile device, a desktop computer, a tablet computer, and other devices having a logical operation function. By interacting with the server 2, the user equipment 1 may upload data, including code, to the server 2.
The server 2 may specifically be the foregoing cloud storage space for storing the packaged application package, and the server 2 may provide the user with functions of browsing and downloading the application package.
The code detection device for executing the method of the present application is integrated on the user equipment 1, and when the data including the code passes the detection of the cost detection device, the data including the code is uploaded to the server 2 for storage.
For convenience of explanation, the code detection method in the present application will be described with reference to the accompanying drawings and a code detection apparatus as an execution subject.
Example one
Fig. 2 is a schematic flowchart of a code detection method provided in the present application. As shown in fig. 2, the code detection method includes:
step 201, obtaining an application resource package set of an application to be deployed, where the application resource package set includes a plurality of application resource files of the application to be deployed and a source code file for installing each application resource file.
Step 202, a preset environment deployment template is utilized, and a container environment required by the application to be deployed is locally deployed.
Step 203, executing the source code file of each application resource in the container environment, and starting each installed application resource file.
And 204, detecting the running state of each application resource file in the container environment.
And step 205, submitting the detected application resource package set of the application to be deployed to the server.
In the embodiment of the present application, the multiple application resource files of the application to be deployed and the source code file for installing each application resource file related in the code detection method are obtained by a developer through pre-compiling according to the application function requirement of the application to be deployed, and a specific compiling process thereof may refer to the prior art, which is not limited in the embodiment of the present application.
The scheme provided by the present application will be further explained by combining the above steps:
it should be noted that, the code detection method is a flow triggered before the application function test is performed on the application to be deployed.
After a developer completes development of an application resource file of an application to be deployed and a corresponding source code file, the files are packaged to obtain an application resource package set, and the application resource package is placed into a code detection device provided by the application for detection.
In the detection process, after the code detection device obtains the application resource set, in order to verify whether the application resource file can be normally installed and normally run in the environment where the application to be deployed needs to be deployed, in the embodiment, the deployment environment is simulated.
That is, the code detection apparatus will locally deploy the container environment required by the application to be deployed by using the environment deployment template. Generally, the container environment is based on a vmware virtual environment platform.
In an alternative embodiment, the environment deployment template mentioned above is typically pre-configured in the code detection apparatus. The configuration process may refer to steps 2021 and 2022 as follows.
Step 2021, creating an initial container environment in a preset virtual machine environment according to the running environment required by the application to be deployed.
Typically, the runtime environment includes two virtual machines and corresponding operating systems (e.g., centros), where one virtual machine is a cluster management host master and the other virtual machine is a node host. Then, initialization processing of the container environment for each virtual machine, which is used for configuration, initialization, and the like of the operating system, can be performed. Illustratively, processing includes setting a host name (for distinguishing nodes at deployment); the processing also comprises closing a firewall, selinux, configuring time synchronization and the like on the master and the node; processing also includes configuring static IP.
The creation of the initial container environment can be completed by the series of processes described above.
Step 2022, debugging the initial container environment, and generating the environment deployment template according to the initial container environment that passes the debugging.
In this step, it is also necessary to install the k8s environment in the container environment and complete the work such as debugging. Illustratively, the debugging may include deploying relevant components of the master host, such as deploying and configuring etcd to persist the cluster configuration and state of k8s, and installing kubernets and setting up boot-up;
illustratively, the commissioning may also include deploying the relevant components of the node: such as installing docker, and, as another example, installation, startup, and configuration of kubernets.
For example, the debugging work can also comprise the steps of executing the following commands at the master host to test whether the environment is successful, installing and configuring a flannel network at the master and node nodes and the like.
After the series of debugging is completed, the environment passing the debugging can be made into a vmware virtual machine template, and the environment deployment template is obtained.
In the subsequent process of testing the code, the local deployment of the container environment can be quickly realized by directly calling and using the environment deployment template.
In step 203, after the deployment of the container environment is completed, the code detection apparatus further executes the source code file of each application resource in the container environment, and starts the installed application resource files.
When the application resource is installed, the code detection device may execute the aforementioned source code files of each application resource, which include k8s application.
Then, in step 204, the code detection apparatus detects the running state of each application resource file in the container environment, and submits the detected set of application resource packages of the application to be deployed to the server.
Specifically, the detection of the running state of each application resource file in the container environment is divided into two parts, that is, the running state of each application resource file is detected, and the running state of each container service in the container environment is detected.
In the process of detecting the running state of the application resource file, it may be specifically determined whether each application resource file is successfully installed. If the application resource files are installed successfully, whether the application service of the application resource files is complete can be further judged, and illustratively, the pod and service states of the application resource files can be checked by using commands such as kubecect get pod/service and the like.
In the process of detecting the operating state of each container service in the container environment, that is, when each application resource file is successfully installed and operated in the container environment, at this time, the operating states of other services in the container environment except the application resource file need to be detected, so that the occurrence of the situation that the application resource file is incompatible with other services is avoided.
Finally, in step 205, after the above various types of detection are completed, when it is determined that the application resource file is normally installed and can normally operate and other services of the container environment also normally operate, it indicates that the application resource package set of the application to be deployed passes the detection, and at this time, the code detection apparatus uploads the application resource package set of the application to be deployed to the server to wait for a tester to perform a next test. Otherwise, when the detection fails, the code detection device will prompt the developer and show the reason for the failure of the detection, so that the developer can revise and compile the corresponding content in the application resource package set of the application to be deployed according to the reason for the failure of the detection.
By the method, the problems that the application resource packages cannot be normally installed and applied or the environment is abnormal after the application resource packages are installed can be found before the tester tests the application resource package set of the application to be deployed, so that a basis is provided for other subsequent tests, and resource waste caused by the condition of installation failure in the subsequent tests is avoided.
According to the code detection method provided by the embodiment of the application, an application resource package set of an application to be deployed is obtained, wherein the application resource package set comprises a plurality of application resource files of the application to be deployed and source code files for installing the application resource files; locally deploying a container environment required by the application to be deployed by using a preset environment deployment template; executing the source code files of the application resources in the container environment, and starting the installed application resource files; detecting the running state of each application resource file in the container environment; and submitting the application resource packet set of the application to be deployed which passes the detection to the server, so that only the application resource of the application to be deployed which passes the detection is uploaded to the server, and therefore, when a tester tests the application to be deployed, the tester can successfully install and deploy each application resource, and the test is ensured to be smoothly carried out.
Example two
Corresponding to the code detection method of the foregoing embodiment, fig. 3 is a schematic structural diagram of a code detection apparatus provided in the embodiment of the present application, and as shown in fig. 3, the code detection apparatus includes: an acquisition module 310, an environment deployment module 320, and a detection module 330.
An obtaining module 310, configured to obtain an application resource package set of an application to be deployed, where the application resource package set includes a plurality of application resource files of the application to be deployed and a source code file for installing each application resource file;
an environment deployment module 320, configured to locally deploy, by using a preset environment deployment template, a container environment required by the application to be deployed;
a detection module 330, configured to execute the source code file of each application resource in the container environment, and start each installed application resource file; detecting the running state of each application resource file in the container environment; and submitting the application resource package set of the detected application to be deployed to the server.
In an optional embodiment, fig. 4 is a schematic structural diagram of another page generating apparatus provided in the embodiment of the present application, and as shown in fig. 4, the page generating apparatus further includes: an environment creation module 340.
The environment creating module 340 is configured to create an initial container environment in a preset virtual machine environment according to the running environment required by the application to be deployed; and debugging the initial container environment, and generating the environment deployment template according to the initial container environment which passes the debugging.
In an optional embodiment, the detecting module 330 is specifically configured to detect the running state of each application resource file; and detecting the running state of each container service in the container environment.
In an optional embodiment, the detecting module 330 is specifically configured to determine whether each application resource file is successfully installed; and judging whether the application service of each application resource file is complete or not.
The code detection device provided by the embodiment of the application obtains an application resource package set of an application to be deployed, wherein the application resource package set comprises a plurality of application resource files of the application to be deployed and source code files for installing the application resource files; locally deploying a container environment required by the application to be deployed by using a preset environment deployment template; executing the source code files of the application resources in the container environment, and starting the installed application resource files; detecting the running state of each application resource file in the container environment; and submitting the application resource packet set of the application to be deployed which passes the detection to the server, so that only the application resource of the application to be deployed which passes the detection is uploaded to the server, and therefore, when a tester tests the application to be deployed, the tester can successfully install and deploy each application resource, and the test is ensured to be smoothly carried out.
EXAMPLE III
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, an electronic device 500 according to an embodiment of the present invention includes: memory 501, processor 502 and computer programs.
Wherein a computer program is stored in the memory 501 and configured to be executed by the processor 502 to implement the code detection method provided by any one of the embodiments of the present invention. The related descriptions and effects corresponding to the steps in the drawings can be correspondingly understood, and redundant description is not repeated here.
In this embodiment, the memory 501 and the processor 502 are connected by a bus.
Example four
The embodiment of the invention provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to realize the code detection method provided by any one embodiment of the invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, a division of modules is merely a logical division, and an actual implementation may have another division, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention 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 form, and can also be realized in a form of hardware and a software functional module.
Program code for implementing the methods of the present invention may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable question answering system, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Furthermore, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the aforementioned method for data synchronization based on a displaced multi-live system.
Further, while operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (11)

1. A code detection method, comprising:
obtaining an application resource package set of an application to be deployed, wherein the application resource package set comprises a plurality of application resource files of the application to be deployed and source code files for installing the application resource files;
locally deploying a container environment required by the application to be deployed by using a preset environment deployment template;
executing the source code files of the application resources in the container environment, and starting the installed application resource files;
detecting the running state of each application resource file in the container environment;
and submitting the application resource packet set of the application to be deployed which passes the detection to the server.
2. The code detection method according to claim 1, wherein the deploying with a preset environment template further comprises, before locally deploying a container environment required by the application to be deployed:
according to the running environment required by the application to be deployed, establishing an initial container environment under a preset virtual machine environment;
and debugging the initial container environment, and generating the environment deployment template according to the initial container environment which passes the debugging.
3. The code detection method according to claim 1, wherein the detecting the running state of each application resource file in the container environment comprises:
detecting the running state of each application resource file;
detecting the running state of each container service in the container environment.
4. The code detection method according to claim 3, wherein the detecting the operating state of each application resource file comprises:
judging whether each application resource file is installed successfully;
and judging whether the application service of each application resource file is complete or not.
5. A code detection apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring an application resource package set of an application to be deployed, and the application resource package set comprises a plurality of application resource files of the application to be deployed and source code files for installing the application resource files;
the environment deployment module is used for locally deploying the container environment required by the application to be deployed by utilizing a preset environment deployment template;
the detection module is used for executing the source code files of the application resources in the container environment and starting the installed application resource files; detecting the running state of each application resource file in the container environment; and submitting the application resource package set of the detected application to be deployed to the server.
6. The code detection apparatus according to claim 5, characterized by further comprising: an environment creation module;
the environment creating module is used for creating an initial container environment under a preset virtual machine environment according to the running environment required by the application to be deployed; and debugging the initial container environment, and generating the environment deployment template according to the initial container environment which passes the debugging.
7. The code detection method according to claim 5, wherein the detection module is specifically configured to detect the running state of each application resource file; and detecting the running state of each container service in the container environment.
8. The code detection apparatus according to claim 7, wherein the detection module is specifically configured to determine whether each application resource file is successfully installed; and judging whether the application service of each application resource file is complete or not.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of any one of claims 1-4.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-4.
11. A computer program product comprising a computer program, characterized in that the computer program realizes the method of any of claims 1-4 when executed by a processor.
CN202111574348.8A 2021-12-21 2021-12-21 Code detection method and device, electronic equipment and program product Pending CN114237649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111574348.8A CN114237649A (en) 2021-12-21 2021-12-21 Code detection method and device, electronic equipment and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111574348.8A CN114237649A (en) 2021-12-21 2021-12-21 Code detection method and device, electronic equipment and program product

Publications (1)

Publication Number Publication Date
CN114237649A true CN114237649A (en) 2022-03-25

Family

ID=80760670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111574348.8A Pending CN114237649A (en) 2021-12-21 2021-12-21 Code detection method and device, electronic equipment and program product

Country Status (1)

Country Link
CN (1) CN114237649A (en)

Similar Documents

Publication Publication Date Title
US11599348B2 (en) Container image building using shared resources
US10216509B2 (en) Continuous and automatic application development and deployment
CN108847950B (en) Electronic device, cloud system software automatic deployment method and storage medium
CN112416524A (en) Implementation method and device of cross-platform CI/CD (compact disc/compact disc) based on docker and kubernets offline
CN110727440B (en) Software packaging method
US10338907B2 (en) Cloud service framework for toolkit deployment
CN107733985B (en) Method and device for deploying functional components of cloud computing system
US8914785B2 (en) Providing virtual appliance system firmware images
US20160019072A1 (en) Dynamic determination of application server runtime classloading
CN106406960B (en) Method for rapidly deploying software in linux environment
CN107704238B (en) Method and device for packaging items
CN105490860A (en) Method, device and system for deploying application program operation environment
CN108733553B (en) Docker-based test device configuration method, device and system
CN111198695A (en) Automatic deployment method of micro-service administration management platform and electronic equipment
WO2017041499A1 (en) Software upgrade method and system, and computer-readable storage medium
CN112764766B (en) Method, device and equipment for butting k8s cluster and storage medium
CN113064595A (en) QT application program compiling method and device based on Docker mirror image
CN112363731A (en) Application automation deployment method and device and computer readable storage medium
CN113190238A (en) Framework deployment method and device, computer equipment and storage medium
CN114546819A (en) Code processing method and device, electronic equipment and readable medium
CN115357258B (en) Application deployment method and device, storage medium and electronic device
CN116303099A (en) Cross-platform rapid deployment method, device, medium and equipment for automatic test environment
CN114237649A (en) Code detection method and device, electronic equipment and program product
CN115237441A (en) Upgrade test method, device and medium based on cloud platform
US20090089779A1 (en) Apparatus system and method for customizing a computing environment

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