CN113485726A - Application environment delivery method and device - Google Patents

Application environment delivery method and device Download PDF

Info

Publication number
CN113485726A
CN113485726A CN202110849750.6A CN202110849750A CN113485726A CN 113485726 A CN113485726 A CN 113485726A CN 202110849750 A CN202110849750 A CN 202110849750A CN 113485726 A CN113485726 A CN 113485726A
Authority
CN
China
Prior art keywords
application version
application
server
middleware
file
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
CN202110849750.6A
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202110849750.6A priority Critical patent/CN113485726A/en
Publication of CN113485726A publication Critical patent/CN113485726A/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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The invention discloses an application environment delivery method and device, and relates to the technical field of cloud computing, wherein the method comprises the following steps: defining a server resource file, a middleware requirement file, a basic environment test script file and an application version deployment script file which are required by application version deployment in a source code of an application version; according to the server resource file defined in the source code, applying for a server of an application version to be deployed; installing middleware required by an application version on the applied server according to the middleware requirement file defined in the source code; according to a basic environment test script file defined in the source code, performing basic environment test on the server with the middleware; and deploying the application version on the server passing the test of the basic environment according to the application version deployment script file defined in the source code. The invention can automatically complete the environment construction required by deploying the application version, and avoid the problem of inconsistent environment of a plurality of servers.

Description

Application environment delivery method and device
Technical Field
The invention relates to the technical field of cloud computing, in particular to an application environment delivery method, an application environment delivery device, an application environment delivery method and an application environment delivery device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
At present, the construction of a set of development environment usually adopts a mechanism of 'application + passive response': the developer submits a request to the resource management department for the server (usually requiring 2-3 days of time for approval); after the server applies for the application, middleware required by some applications needs to be manually installed, so that the environment construction cost is high. Different people manually log in the servers to modify the configuration, and the configuration is accumulated for a long time, so that the configuration of a plurality of servers is likely to be different, and finally, the production problem is caused due to inconsistent environment.
Disclosure of Invention
The embodiment of the invention provides an application environment delivery method, which is used for solving the technical problem that the prior application environment delivery process has more human intervention and is easy to cause inconsistent configuration of a plurality of server environments, and comprises the following steps: defining a server resource file, a middleware requirement file, a basic environment test script file and an application version deployment script file which are required by application version deployment in a source code of an application version; according to the server resource file defined in the source code, applying for a server of an application version to be deployed; installing middleware required by an application version on the applied server according to the middleware requirement file defined in the source code; according to a basic environment test script file defined in the source code, performing basic environment test on the server with the middleware; and deploying the application version on the server passing the test of the basic environment according to the application version deployment script file defined in the source code.
The embodiment of the invention also provides an application environment delivery device, which is used for solving the technical problem that the prior application environment delivery process has more human intervention and is easy to cause inconsistent configuration of a plurality of server environments, and the device comprises: the configuration file definition module is used for defining a server resource file, a middleware requirement file, a basic environment test script file and an application version deployment script file which are required by the deployment of the application version in a source code of the application version; the server resource application module is used for applying for a server of an application version to be deployed according to the server resource file defined in the source code; the middleware installation module is used for installing the middleware required by the application version on the applied server according to the middleware requirement file defined in the source code; the basic environment testing module is used for testing the basic environment of the server provided with the middleware according to the basic environment testing script file defined in the source code; and the application version deployment module is used for deploying the script file according to the application version defined in the source code and deploying the application version on the server passing the basic environment test.
The embodiment of the invention also provides computer equipment for solving the technical problem that the configuration of a plurality of server environments is inconsistent easily due to more human intervention in the conventional application environment delivery process.
The embodiment of the invention also provides a computer readable storage medium, which is used for solving the technical problem that the configuration of a plurality of server environments is inconsistent easily caused by more human intervention in the conventional application environment delivery process.
The application environment delivery method, the application environment delivery device, the computer equipment and the computer readable storage medium provided by the embodiment of the invention, by defining the server resource file, the middleware requirement file, the basic environment test script file and the application version deployment script file required by the deployment of the application version in the source code of the application version, when the application version is deployed, according to the server resource file defined in the source code, applying for the server of the application version to be deployed, and further according to the middleware requirement file defined in the source code, installing middleware required by the application version on the server of the application, then testing the script file according to the basic environment defined in the source code, and performing basic environment test on the server after the middleware is installed, and finally deploying the script file according to the application version defined in the source code and deploying the application version on the server passing the basic environment test.
Compared with the application environment delivery scheme with manual intervention in the prior art, the method and the device for delivering the application version have the advantages that basic environment resources required by deployment of the application version are defined in the source code of the application version in a configuration file mode, so that the environment construction required by deployment of the application version can be automatically completed according to the configuration file defined in the source code of the application version when the application version is deployed, and the problem that a plurality of server environments are inconsistent is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a flowchart of an application environment delivery method provided in an embodiment of the present invention;
FIG. 2 is a flowchart of an alternative application environment delivery method provided in an embodiment of the present invention;
FIG. 3 is a flowchart of an alternative application environment delivery method provided in an embodiment of the present invention;
fig. 4 is a flowchart of an application environment delivery method based on Jenkins according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an application delivery apparatus provided in an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative application environment delivery apparatus provided in an embodiment of the present invention;
fig. 7 is a schematic diagram of a computer device provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Before describing embodiments of the present invention, the noun terms referred to in the embodiments of the present invention are first explained as follows:
infrastructure as Code (IaC): is a way to build and manage dynamic infrastructure using new technologies. It takes the infrastructure, tools and services and the management of the infrastructure itself as a software system, adopting software engineering practices to manage changes to the system in a structured, secure manner.
Pipeline (Jenkins Pipeline): the method is a group of plug-ins in Jenkins, a process can be defined through pipeline, the process comprises a plurality of stages, and each stage completes one thing, so that a set of automatic CI/CD process is realized.
Dynamic infrastructure platform: computing resources (including servers, storage, and networks) are provided and support a system that programmatically allocates and manages these resources through APIs. The embodiment of the invention relates to a cloud platform (oneDCM system) of a development environment.
Anchor: an automated operation and maintenance tool based on python can automatically execute tasks defined by users in batches on specific nodes.
Playbook: script, defining the configuration file of task set in the enterprise, written in yaml language, defining a task list composed of a series of tasks and parameters.
Inventory: the resource list, the list of controlled nodes managed by the infrastructure, and the default is/etc/infrastructure/hosts file.
Testinfra: an infrastructure test framework, a python library, uses a powerful pytest test engine. Testifra supports infrastructure as the back-end, which can directly use its Inventory file to test the machines defined therein.
A product library: the unified warehouse is used for storing the constructed products and storing the installation packages of the application versions in the embodiment of the invention.
An embodiment of the present invention provides an application environment delivery method, and fig. 1 is a flowchart of an application environment delivery method provided in an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
s101, defining a server resource file, a middleware requirement file, a basic environment test script file and an application version deployment script file required by an application version in a source code of the application version.
In specific implementation, each installation package of the application version to be deployed includes the following configuration files in addition to its own service code: yml, middleware requirement file (playlist-xx.yml), test _ xx.py), and automatic deployment script of application.
And S102, applying for a server of the application version to be deployed according to the server resource file defined in the source code.
It should be noted that the server resource file in the embodiment of the present invention is used to define what specification of servers are needed for the current application to be deployed on several servers.
And S103, installing the middleware required by the application version on the applied server according to the middleware requirement file defined in the source code.
It should be noted that the middleware requirement file in the embodiment of the present invention is used to define which middleware needs to be installed on which servers (including downloading, installing, configuring, starting, and the like of the middleware). Note: the installation of the middleware in the invention is based on an infrastructure tool, so the middleware installation requirements are defined by the playbook in the infrastructure, each kind of middleware defines a playbook file, for example xx in the file name may be nginx, tomcat, etc.
And S104, performing basic environment test on the server with the middleware according to the basic environment test script file defined in the source code.
It should be noted that the basic environment test script file in the embodiment of the present invention is used to define a test script (script is developed based on testnfra test framework) for the basic environment after the middleware is installed, such as whether nginx is installed successfully, whether nginx is started, whether a port number is correct, and the like.
And S105, deploying the application version on the server passing the basic environment test according to the application version deployment script file defined in the source code.
It should be noted that the application version deployment script file in the embodiment of the present invention is used to define a script for automatically deploying an application version, so as to implement automatic deployment of an application version.
In an embodiment, the application environment delivery method provided in the embodiment of the present invention may implement installation of middleware and deployment of an application version based on an infrastructure.
Because the server is dynamically created by the docking cloud platform, the IP of the server is not known before application, and the ansable execution script needs to define a list of machines to be executed through an inventory file, the IP can be dynamically transferred and the inventory can be dynamically generated through a midleware.
In order to implement automated testing of an application, in an embodiment, as shown in fig. 2, after deploying a script file according to an application version defined in source code and deploying the application version on a server that passes a basic environment test, the application environment delivery method provided in the embodiment of the present invention further includes the following steps:
s106, carrying out automatic test on the deployed application version;
and S107, generating an automatic test report according to the automatic test result.
In order to implement dynamic sharing of infrastructure resources, in an embodiment, as shown in fig. 3, after generating an automated test report according to an automated test result, the application environment delivery method provided in the embodiment of the present invention further includes the following steps:
and S108, destroying and releasing the server resources for deploying the application version.
In one embodiment, the application environment delivery method provided in the embodiment of the present invention may further include the steps of: the basic environment building assembly line of defining the application version through compiling Jenkins file, wherein, the basic environment building assembly line at least includes: server resource application, middleware installation, basic environment testing and application version deployment.
Further, the basic environment building assembly line further comprises: application version testing and server resource release.
In the embodiment of the invention, an environment automatic building production line is defined by compiling Jenkins file, and one-key delivery of an application environment can be realized. Links on the assembly line include: the method comprises the following steps of pulling a source code, applying for a server, installing middleware, testing a basic environment, automatically deploying an application version, automatically testing the application version and destroying environment resources. The application version automatic test and the environmental resource destruction are optional steps.
Fig. 4 is a flowchart of an application environment delivery method based on Jenkins according to an embodiment of the present invention, where Jenkins is responsible for unified scheduling of pipelines, and each link on a pipeline is defined by Jenkins file as shown in fig. 4; TGit is an enterprise level source code management warehouse, stores application source codes and infrastructure definition files in the source codes, and is used for pulling the source codes from the TGit in the first step of the production line; the dynamic infrastructure platform (oneDCM) is a cloud platform of an enterprise-level development environment, provides functions of server creation, destruction, resource quota management and the like, and provides API for the capacity; the infrastructure is a python-based automated operation and maintenance tool for performing user-defined tasks on a particular server manifest. In the invention, the middleware installation and deployment are realized based on the infrastructure, namely: invoking execution of the executable playbook of the interrupt by pipeline, wherein a playbook file installed by the middleware and a playbook file automatically deployed are both defined in an application version; the product warehouse is a unified product warehouse of an enterprise and is used for storing the version packages of the application. In the automatic deployment link, the version is pulled from the product library for automatic deployment; TestInfra is a basic environmental test framework. Testinfra supports anchor as a back end, and machines defined in anchor can be tested by directly using anchor files, in the embodiment of the invention, a basic environment testing script (a testing case written based on Testinfra) in an application version is called by a 'basic environment testing' link of a production line, so that a basic environment smoking test is carried out; js library derived by Newman for Postman can call the json test case file of Postman to execute in a command line.
According to the application environment interaction method provided by the embodiment of the invention, based on the idea of infrastructure, namely codes, a set of application environment rapid delivery system can be set up, the requirement of the application on infrastructure resources is defined in an application version in a mode of configuration files, and then a Devops automatic production line and a dynamic infrastructure platform (cloud platform) are matched to automatically complete the dynamic creation, change and destruction of the environment resources, so that the self-service of environment management is realized. The method specifically comprises the following two parts:
firstly, application version modification: the following configuration files are defined in the source code of each application version:
1) yml, server resource definition file (infrastructure). This file defines what specifications of several servers are required for the current application.
2) Middleware requirements definition file (playbook-xx.yml): this file defines which middleware needs to be installed on which servers (including download, installation, configuration, startup, etc. of the middleware). Note: the installation of the middleware in the invention is based on an infrastructure tool, so the middleware installation requirements are defined by the playbook in the infrastructure, each kind of middleware defines a playbook file, for example xx in the file name may be nginx, tomcat, etc.
3) Basic environment test script (test _ xx.py): this file defines test scripts (scripts developed based on the testnfra test framework) for the underlying environment after the middleware has been installed, such as whether the test nginx was installed successfully, started, the port number is correct, etc.
4) The application deployment script file: a script is defined that automatically deploys the application version.
And secondly, defining an environment automatic building assembly line by writing Jenkins files. Links on the assembly line include:
1) pulling a source code: the application source code is pulled from the git repository, including those profiles defined in step 1 above.
2) The server applies for: and resolving a 'server resource definition file (yml)' in the application version, and calling an API application server of the oneDCM (cloud platform).
3) Installing the middleware: according to a "middleware requirement definition file (playlist-xx.yml)" in the application version, the playlist is called by the infrastructure to automatically complete the installation and configuration of the middleware on a corresponding server.
4) And (3) testing a basic environment: and sequentially calling basic environment test scripts (test _ xx. py) in the application version in the pipeline to finish the smoking test of the basic environment.
5) Automatic deployment: jenkins invokes the infrastructure implementation, and the infrastructure executes the deployment script defined in the application version in the form of a playlist to complete the automatic deployment of the application to the server.
6) Automated testing: and calling a Postman automation interface test case through Newman in the assembly line, and deploying the generated automation test report to nginx to facilitate visual viewing in a browser.
7) Automatic environment destruction: after the automatic test execution is completed and a report is generated, an API of an oneDCM (cloud platform) is called to complete the destruction of the server, resources are released in time, and the dynamic sharing of the resources is realized.
In the embodiment of the invention, the requirement of the environment equipment is completely defined in the application version, the dynamic creation, change and destruction of the environment resource are automatically completed through the automatic assembly line, and the delivery from the resource quota to the complete testable environment can be completed within 1 hour through a test, so that the environment construction cost is reduced, and the resource utilization rate is improved.
Based on the same inventive concept, the embodiment of the present invention further provides an application environment delivery apparatus, as described in the following embodiments. Because the principle of the device for solving the problems is similar to the application environment delivery method, the implementation of the device can be referred to the implementation of the application environment delivery method, and repeated details are not repeated.
Fig. 5 is a schematic diagram of an application environment delivery apparatus provided in an embodiment of the present invention, and as shown in fig. 5, the apparatus includes: a configuration file definition module 51, a server resource application module 52, a middleware installation module 53, a basic environment test module 54 and an application version deployment module 55.
The configuration file definition module 51 is configured to define a server resource file, a middleware requirement file, a basic environment test script file, and an application version deployment script file, which are required by an application version, in a source code of the application version; a server resource application module 52, configured to apply for a server of the application version to be deployed according to the server resource file defined in the source code; a middleware installation module 53, configured to install middleware required by the application version on the server applying for the application version according to the middleware requirement file defined in the source code; a basic environment testing module 54, configured to perform a basic environment test on the server after the middleware is installed according to the basic environment testing script file defined in the source code; and the application version deployment module 55 is configured to deploy the application version on the server that passes the basic environment test according to the application version deployment script file defined in the source code.
In one embodiment, as shown in fig. 6, the application environment delivery apparatus provided in the embodiment of the present invention further includes: an application version automatic test module 56, configured to perform automatic testing on the deployed application version; and a test report generating module 57, configured to generate an automated test report according to the automated test result.
In one embodiment, as shown in fig. 6, the application environment delivery apparatus provided in the embodiment of the present invention further includes: and the server resource releasing module 58 is configured to destroy and release the server resource of the deployment application version.
In an embodiment, in the application environment delivery apparatus provided in the embodiment of the present invention, the middleware installation module 53 is further configured to implement installation of middleware based on infrastructure; the application version deployment module is also used for realizing deployment of the application version based on the infrastructure.
In one embodiment, as shown in fig. 6, the application environment delivery apparatus provided in the embodiment of the present invention further includes: basic environment construction assembly line definition module 59 for constructing the assembly line through the basic environment of compiling Jenkins file definition application version, wherein, the basic environment construction assembly line at least includes: server resource application, middleware installation, basic environment testing and application version deployment.
Optionally, the basic environment construction flow line defined by the basic environment construction flow line definition module 59 further includes: application version testing and server resource release.
Based on the same inventive concept, a computer device is further provided in the embodiments of the present invention to solve the technical problem that the existing application environment delivery process is more prone to cause inconsistency of the configuration of multiple server environments due to human intervention, fig. 7 is a schematic diagram of a computer device provided in the embodiments of the present invention, as shown in fig. 7, the computer device 70 includes a memory 701, a processor 702, and a computer program stored in the memory 701 and operable on the processor 702, and the application environment delivery method is implemented when the processor 702 executes the computer program.
Based on the same inventive concept, the embodiment of the present invention further provides a computer-readable storage medium, so as to solve the technical problem that the existing application environment delivery process is subject to more human intervention, which easily causes inconsistent configuration of multiple server environments, and the computer-readable storage medium stores a computer program for executing the application environment delivery method.
In summary, the application environment delivery method, apparatus, computer device and computer-readable storage medium provided in the embodiments of the present invention, by defining the server resource file, the middleware requirement file, the basic environment test script file and the application version deployment script file required by the deployment of the application version in the source code of the application version, when the application version is deployed, according to the server resource file defined in the source code, applying for the server of the application version to be deployed, and further according to the middleware requirement file defined in the source code, installing middleware required by the application version on the server of the application, then testing the script file according to the basic environment defined in the source code, and performing basic environment test on the server after the middleware is installed, and finally deploying the script file according to the application version defined in the source code and deploying the application version on the server passing the basic environment test.
Compared with the application environment delivery scheme with manual intervention in the prior art, the method and the device for delivering the application version have the advantages that basic environment resources required by deployment of the application version are defined in the source code of the application version in a configuration file mode, so that the environment construction required by deployment of the application version can be automatically completed according to the configuration file defined in the source code of the application version when the application version is deployed, and the problem that a plurality of server environments are inconsistent is solved.
By the embodiment of the invention, the following technical effects can be realized but not limited:
1) efficiency is built to the improvement environment: the environment is prepared no longer by a mechanism of 'application + passive response', but by self-definition and self-service of developers.
2) And (3) ensuring the environmental consistency: because the environment is defined based on the same set of source codes, the environment consistency is ensured.
3) The resource utilization rate is improved: because the destruction and reconstruction of the environment become very low in cost, each project group more intentionally applies for resources on demand and releases the resources once used up, and dynamic flow sharing of the resources is formed.
4) The history of environmental changes can be traced back: the environment change information is included in version control along with the source code, and the change history can be traced and audited.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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 invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (14)

1. An application environment delivery method, comprising:
defining a server resource file, a middleware requirement file, a basic environment test script file and an application version deployment script file required by application version deployment in a source code of the application version;
according to the server resource file defined in the source code, applying for a server to be deployed with the application version;
installing the middleware required by the application version on the applied server according to the middleware requirement file defined in the source code;
according to the basic environment test script file defined in the source code, performing basic environment test on the server with the middleware;
and deploying the application version on a server passing the basic environment test according to the application version deployment script file defined in the source code.
2. The method of claim 1, wherein after deploying the application version on a server that passes the base environment test according to an application version deployment script file defined in the source code, the method further comprises:
carrying out automatic testing on the deployed application version;
and generating an automatic test report according to the automatic test result.
3. The method of claim 2, wherein after generating an automated test report based on automated test results, the method further comprises:
and destroying and releasing the server resources for deploying the application version.
4. The method according to any of claims 1 to 3, wherein the installation of the middleware and the deployment of the application version are implemented based on the infrastructure.
5. The method of claim 4, wherein the method further comprises:
defining a basic environment building assembly line of the application version by writing Jenkins file, wherein the basic environment building assembly line at least comprises: server resource application, middleware installation, basic environment testing and application version deployment.
6. The method of claim 5, wherein the base environment construction pipeline further comprises: application version testing and server resource release.
7. An application environment delivery apparatus, comprising:
the configuration file definition module is used for defining a server resource file, a middleware requirement file, a basic environment test script file and an application version deployment script file which are required by the deployment of an application version in a source code of the application version;
the server resource application module is used for applying for a server to be deployed with the application version according to the server resource file defined in the source code;
the middleware installation module is used for installing the middleware required by the application version on the applied server according to the middleware requirement file defined in the source code;
the basic environment testing module is used for testing the basic environment of the server provided with the middleware according to the basic environment testing script file defined in the source code;
and the application version deployment module is used for deploying the script file according to the application version defined in the source code and deploying the application version on the server which passes the basic environment test.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the automatic testing module of the application version is used for carrying out automatic testing on the deployed application version;
and the test report generating module is used for generating an automatic test report according to the automatic test result.
9. The apparatus of claim 8, wherein the apparatus further comprises:
and the server resource releasing module is used for destroying and releasing the server resources for deploying the application version.
10. The apparatus according to any one of claims 7 to 9, wherein the middleware installation module is further configured to implement the installation of the middleware based on an infrastructure; the application version deployment module is also used for deploying the application version based on the infrastructure.
11. The apparatus of claim 10, wherein the apparatus further comprises:
the basic environment construction assembly line definition module is used for defining the basic environment construction assembly line of the application version by compiling Jenkins file, wherein the basic environment construction assembly line at least comprises: server resource application, middleware installation, basic environment testing and application version deployment.
12. The apparatus of claim 11, wherein the base environment construction pipeline further comprises: application version testing and server resource release.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the application environment delivery method of any one 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 for executing the application environment delivery method of any one of claims 1 to 6.
CN202110849750.6A 2021-07-27 2021-07-27 Application environment delivery method and device Pending CN113485726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110849750.6A CN113485726A (en) 2021-07-27 2021-07-27 Application environment delivery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110849750.6A CN113485726A (en) 2021-07-27 2021-07-27 Application environment delivery method and device

Publications (1)

Publication Number Publication Date
CN113485726A true CN113485726A (en) 2021-10-08

Family

ID=77943971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110849750.6A Pending CN113485726A (en) 2021-07-27 2021-07-27 Application environment delivery method and device

Country Status (1)

Country Link
CN (1) CN113485726A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148311A (en) * 2020-08-21 2020-12-29 成都飞机工业(集团)有限责任公司 Jenkins-based distributed application program automatic deployment method
CN112346752A (en) * 2020-12-03 2021-02-09 江苏云坤信息科技有限公司 Software environment rapid deployment method based on jenkins and K3S
CN112564989A (en) * 2021-02-23 2021-03-26 鲁班(北京)电子商务科技有限公司 Application deployment method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148311A (en) * 2020-08-21 2020-12-29 成都飞机工业(集团)有限责任公司 Jenkins-based distributed application program automatic deployment method
CN112346752A (en) * 2020-12-03 2021-02-09 江苏云坤信息科技有限公司 Software environment rapid deployment method based on jenkins and K3S
CN112564989A (en) * 2021-02-23 2021-03-26 鲁班(北京)电子商务科技有限公司 Application deployment method and device

Similar Documents

Publication Publication Date Title
CN109814879B (en) Automatic CI/CD project deployment method and storage medium
US9032373B1 (en) End to end testing automation and parallel test execution
US10572249B2 (en) Software kit release management
US8533676B2 (en) Single development test environment
US8745585B2 (en) Meta-data for single development test environment
US20180113799A1 (en) Model generation for model-based application testing
US9996331B1 (en) Customized application state transition
US20130174124A1 (en) Version numbering in single development and test environment
US9542173B2 (en) Dependency handling for software extensions
US20170220324A1 (en) Data communication accelerator system
CA3155732A1 (en) Business process configuring method, business request processing method, and devices
EP2503449A2 (en) Single development test environment
CN110297771A (en) Distributed test method and device for the warehouse receipt page
CN111857801A (en) Construction method of mobile application
Railić et al. Architecting continuous integration and continuous deployment for microservice architecture
CN115220863A (en) Operation and maintenance method and device for container application, computer equipment and storage medium
US9760364B2 (en) Checks for software extensions
CN116974716A (en) Scheduling task issuing method and device, electronic equipment and storage medium
CN113485726A (en) Application environment delivery method and device
CN114791884A (en) Test environment construction method and device, storage medium and electronic equipment
EP2503450A2 (en) Version numbering in single development and test environment
CN210007726U (en) private cloud service systems
US9477447B1 (en) Semantic representations of software extensions
US20230259347A1 (en) Container based generation of inputs for generic functions
US20240192974A1 (en) Simulation of one or more pipeline jobs in a software deployment pipeline

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