A kind of running environment builds system, method and apparatus
Technical field
System, method and apparatus are built this application involves field of computer technology more particularly to a kind of running environment.
Background technology
In the development process of product, it usually needs different running environment is built for product, in order in different fortune
Product is run under row environment.For example, the development environment of product, test environment etc. can be built, these operation rings are successfully being built
Behind border, product can be run under these running environment, in order to be developed, tested to product.
In general, when building different running environment for product, can be built based on the products configuration of the product.So
And in practical applications, the products configuration of different product is different, and the products configuration between identical product different editions is also different,
Products configuration of the product of same version under different running environment is also different.In this way, due to products configuration in different product, no
With the otherness under version and different running environment, cause be relatively to be stranded when product builds running environment based on products configuration
It is difficult.
Invention content
What the embodiment of the present application provided a kind of running environment builds system, method and apparatus, for solving based on product
When being configured to product and building running environment, since products configuration is under different product, different editions and different running environment
Otherness causes practical to be that product builds problem relatively difficult when running environment.
In order to solve the above technical problems, what the embodiment of the present application was realized in:
In a first aspect, propose a kind of system of building of running environment, including:Configuration center, environment center and running environment,
Wherein:
The configuration center be stored with products configuration for building target environment of the different product under different editions and
Environment configurations include environmental variance in the products configuration;
The environment center, from the configuration center obtain the first products configuration for building first object environment and
First environment configures;The environmental variance for including in first products configuration is replaced into first environment configuration, is obtained
Second products configuration;The first object environment is built according to second products configuration;
The running environment is for running the target environment built.
Second aspect, it is proposed that a kind of building method of running environment, this method include:
The first products configuration and first environment configuration, first product for building first object environment is obtained to match
It include environmental variance in setting;
The environmental variance for including in first products configuration is replaced into first environment configuration, obtains the second production
Product configure;
The first object environment is built according to second products configuration.
The third aspect, propose a kind of running environment builds device, which includes:
Acquiring unit obtains the first products configuration for building first object environment and first environment configuration, described
It include environmental variance in first products configuration;
First environment configuration is replaced the environmental variance for including in first products configuration by replacement unit,
Obtain the second products configuration;
Unit is built, the first object environment is built according to second products configuration.
Fourth aspect proposes that a kind of electronic equipment, the electronic equipment include:
Processor;And
It is arranged to the memory of storage computer executable instructions, which makes the processor when executed
Execute following operation:
The first products configuration and first environment configuration, first product for building first object environment is obtained to match
It include environmental variance in setting;
The environmental variance for including in first products configuration is replaced into first environment configuration, obtains the second production
Product configure;
The first object environment is built according to second products configuration.
5th aspect, proposes a kind of computer readable storage medium, the computer-readable recording medium storage one or
Multiple programs, one or more of programs by the electronic equipment including multiple application programs when being executed so that the electronics
Equipment executes following methods:
The first products configuration and first environment configuration, first product for building first object environment is obtained to match
It include environmental variance in setting;
The environmental variance for including in first products configuration is replaced into first environment configuration, obtains the second production
Product configure;
The first object environment is built according to second products configuration.
Technical solution provided by the embodiments of the present application, by the products configuration for building product running environment with operation ring
The relevant environment configurations in border are replaced by environmental variance, and the environment configurations under different running environment are stored respectively with products configuration,
And being associated between products configuration and environment configurations is established by environmental variance.In this way, in the running environment for building product, it can
To fast implement building for running environment according to environment configurations corresponding with the running environment and products configuration, simplifies and build
The step of running environment, improves the efficiency for building running environment.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments described in application, for those of ordinary skill in the art, in the premise of not making the creative labor property
Under, other drawings may also be obtained based on these drawings.
Fig. 1 is the structural schematic diagram for building system of one embodiment running environment of the application;
Fig. 2 is the schematic diagram of one embodiment configuration center the storage products configuration and environment configurations of the application;
Fig. 3 is one embodiment products configuration of the application and the schematic diagram of environment configurations;
Fig. 4 be the application one embodiment product development process in build the schematic diagram of running environment;
Fig. 5 is the flow diagram of the building method of one embodiment running environment of the application;
Fig. 6 is the flow diagram of the building method of one embodiment running environment of the application;
Fig. 7 is the structural schematic diagram of one embodiment electronic equipment of the application;
Fig. 8 is the structural schematic diagram for building device of one embodiment running environment of the application.
Specific implementation mode
In the development process of product, it usually needs build various running environment for product, such as build exploitation
Environment, test environment, environments and production environment etc..However, when actually building the running environment of product, due to product
The otherness under different product, different editions and different running environment is configured, the operation ring for actually building product is caused
It is relatively difficult when border.
The building method of traditional running environment, usually by manually building specified product version under specified running environment
This.However, the version with product is more and more, the type of running environment is more and more, the product for building running environment
Configuration is also more and more (can include up to a hundred applications or a Resource Dependence up to a hundred etc.), in this way, using the method manually built
When building running environment for the different editions of product, it will a large amount of time is consumed, it is less efficient and relatively more in products configuration
In the case of, the method manually built is easy error, causes successfully build running environment.
In the prior art, for the ease of building the running environment of product, for identical product, this can be usually safeguarded
Products configuration of the product under different editions, the products configuration between different editions is different, and the products configuration of same version can be with
For building running environment different under the version, when needing to build a certain running environment, can be matched based on the product of maintenance
It sets automate and build.
For example, for version V1~Vn of product A, it can safeguard that n covers products configuration, n covers products configuration corresponding production respectively
Version V1~Vn of product A.It, can be in the base of the products configuration of the V1 versions of maintenance when needing to build the test environment of V1 versions
Adaptation is carried out on plinth, to build the test environment of V1 versions.
However, in practical applications, since the building method of above-mentioned running environment is for the product of a version, only
A set of products configuration is maintained, therefore, when building running environment based on the set products configuration, different operations cannot be accurately distinguished
Which products configuration environment needs, to can not accurately build required running environment.That is, only maintaining a set of product
In the case of configuration, meet demand is unable to when by the product allocation of the version to different running environment.
In order to quickly and accurately build the running environment of product, above-mentioned technical problem is solved, the embodiment of the present application provides one
Kind running environment builds system, method and apparatus, which includes:Configuration center, environment center and running environment, wherein:
The configuration center is stored with products configuration and environment configurations for building target environment of the different product under different editions,
It include environmental variance in the products configuration;The environment center is obtained from the configuration center for building first object ring
First products configuration and first environment in border configure;First environment configuration is replaced in first products configuration and includes
The environmental variance, obtain the second products configuration;The first object environment is built according to second products configuration;It is described
Running environment is for running the target environment built.
Technical solution provided by the embodiments of the present application, by the products configuration for building product running environment with operation ring
The relevant environment configurations in border are replaced by environmental variance, and the environment configurations under different running environment are stored respectively with products configuration,
And being associated between products configuration and environment configurations is established by environmental variance.In this way, in the running environment for building product, it can
To fast implement building for running environment according to environment configurations corresponding with the running environment and products configuration, simplifies and build
The step of running environment, improves the efficiency for building running environment.
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in example is applied, technical solutions in the embodiments of the present application is clearly and completely described, it is clear that described implementation
Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common
The every other embodiment that technical staff is obtained without creative efforts should all belong to the application protection
Range.
Technical solution provided by the embodiments of the present application can be used for building different product operation different under different editions
Environment, the running environment can include but is not limited to development environment, test environment, environments and production environment.
Below in conjunction with attached drawing, the technical solution that each embodiment of the application provides is described in detail.
Fig. 1 is the structural schematic diagram for building system of one embodiment running environment of the application.The running environment
The system of building may include:Configuration center 11, environment center 12 and running environment 13, wherein:
The configuration center 11 is stored with the products configuration for building target environment of the different product under different editions
And environment configurations, include environmental variance in the products configuration;
The environment center 12, from the configuration center obtain for build the first products configuration of first object environment with
And first environment configuration;The environmental variance for including in first products configuration is replaced into first environment configuration, is obtained
To the second products configuration;The first object environment is built according to second products configuration;
The running environment 13 is for running the target environment built.
It, can be by the products configuration for building target environment of the different product under different editions in the embodiment of the present application
In, it is replaced by environmental variance with the relevant environment configurations of target environment, and products configuration is established by environmental variance and is matched with environment
Association between setting.Meanwhile can be stored separately environment configurations and the products configuration comprising environmental variance by configuration center 11,
To support the management of the difference between each target environment.
It should be noted that for the product of a version, configuration center 11 can be safeguarded a set of comprising environment change
The products configuration of amount, the set products configuration can correspond to more set of environments configurations, and every suit environment configurations can correspond to one respectively
Running environment.In this way, the different operations of the product version can be built based on the set products configuration and the configuration of more set of environments
Environment.
In the embodiment of the present application, it can be directed to the different editions of different product in configuration center 11, safeguard a set of packet respectively
It products configuration containing environmental variance and is configured with more set of environments.It, can when building the target environment of one of product version
To build the target based on a set of products configuration corresponding with the product version safeguarded in configuration center 11 and environment configurations
Environment.
It should also be noted that, for the same product, environmental variance can have in the products configuration of the product
There is uniqueness.In the embodiment of the present application, the format for the environmental variance that products configuration includes can be defined as;' { ' beginning is simultaneously by #
And ' ', the character string of ending, for example, it may be key=# { es_url_test }A=b, wherein es_url_test is environment
Variable.
In the embodiment of the present application, configuration center 11 can provide reading and writing and the version pipe of products configuration and environment configurations
The ability of reason.Wherein, the products configuration and environment configurations that environmental variance is included for the ease of management, may be used branch management
Mode store the products configuration and the environment configurations, the need of target environment are built in the development process to support product
It asks.
The mode of branch management includes but not limited to:Distributed version control system GIT, branch management system SVN and
Code version control software CVS.Wherein, since the development difficulty of GIT is smaller, it is easy to accomplish branch management and branch merge, because
This may be used GIT and manage the products configuration and the environment configurations as a kind of preferably mode.
Optionally, configuration center 11 is storing the products configuration and the environment configurations by the way of branch management
When, it can specifically include:
If product is in development status, by the corresponding products configuration of the product and the environment configurations with repeatedly
It is stored for the mode of branch;
If product is in issued state, by the corresponding products configuration of the product and the environment configurations with
The mode of Tag branches stores.
Due to during development, there is issued product version and product version just in exploitation,
Therefore, for the ease of being developed to product version just in exploitation, and convenient for managing the production of developed product version
Product configure and environment configurations, the embodiment of the present application can be by the corresponding products configurations of product version and ring in development status
Border configuration is stored in a manner of iteration branch and (creates an iteration branch), by the issued corresponding product of product version
Configuration and environment configurations are stored in a manner of tag branches and (create a tag).
The relevant configuration of product version being developed is stored and managed in a manner of iteration branch, it can be in order to changing herein
Products configuration and environment configurations are constantly changed in branch, and the product for finally obtaining the product version for wanting exploitation is matched
It sets and environment configurations.The relevant configuration of announced product version is stored and managed in a manner of tag branches, in the tag branches
Products configuration and environment configurations can be changeless, can be based on tag branches when needing to develop new version
A new iteration branch is created, and new product version is developed on the basis of the iteration branch.
Fig. 2 is the schematic diagram of one embodiment configuration center the storage products configuration and environment configurations of the application.
As shown in Fig. 2, configuration center 11 may be used GIT management identical product the corresponding products configuration of different editions and
Environment configurations.Wherein, V1.0 to Vn.0 is announced n version, can when being managed to V1.0 to Vn.0 using GIT
Think that products configuration and environment configurations under each version create a tag.
Iteration branch (branch) can be used for developing new product version, can match comprising product under the iteration branch
Set and environment configurations, in the process of development, can under the iteration branch products configuration and environment configurations modify, and
It is constantly iterated exploitation under the iteration branch, the corresponding products configuration of new product version may finally be obtained and environment is matched
It sets.
In Fig. 2, the products configuration under iteration branch can include facet formula caching, Antx, database and timed task
Can include configuration, the configuration under test environment, the configuration under environments and production under development environment Deng, environment configurations
Configuration etc. under environment.
In the embodiment of the present application, environment center 12 can based in configuration center 11 products configuration and environment configurations build
Target environment of the different product under different editions.For building the first object environment of a product version, specifically:
First, environment center 12 can obtain from configuration center 11 and match for building the first product of first object environment
It sets and first environment configures.
Environment center 12 from configuration center 11 obtain the first products configuration corresponding with the first object environment when,
The products configuration of latest edition can be obtained from the current iteration branch of configuration center 11, which is described first
Products configuration.If the products configuration of the latest edition is not actually required products configuration, environment center 12 can also from
The products configuration that old version is obtained in the tag branches at center 11 is set, the products configuration of the old version is first production
Product configure.
Include environmental variance in the embodiment of the present application, in first products configuration.
It environment center 12, can be current from configuration center 11 when obtaining the first environment from configuration center 11 and configure
Environment configurations corresponding with the first object environment are obtained in iteration branch, which is that the first environment is matched
It sets, the first environment configuration can also be obtained from one of configuration center 11 tag branches.
Secondly, environment center 12 is matched in acquisition first products configuration and the first environment and is postponed, can be by institute
It states first environment configuration and replaces the environmental variance for including in first products configuration, obtain the second products configuration.
Due to, comprising environmental variance, can not directly build the first object environment in first products configuration, because
The first environment variable replacement, can be fallen the environmental variance in first products configuration, to obtain the second product by this
Configuration.In the embodiment of the present application, includes environment configurations in second products configuration, can be taken according to second products configuration
Build the first object environment.
Fig. 3 is one embodiment products configuration of the application and the schematic diagram of environment configurations.
Fig. 3 is corresponding products configuration and environment configurations under development environment (Dev).Environment center 12 is getting Fig. 3 institutes
After the products configuration and environment configurations that show, environment configurations can be replaced to the environmental variance in products configuration.As shown in figure 3,
11.239.238.100 in being configured with use environment replaces the # { es_url_test } in products configuration.
Finally, environment center 12 can be built after obtaining second products configuration according to second products configuration
The first object environment.
In one embodiment of the application, environment center 12 can provide by products configuration be synchronized to running environment 13 with
The ability of target environment is built, in this way, when building the first object environment, second products configuration can be synchronized to
In running environment 13, to build the first object environment.
It should be noted that in the present embodiment, second products configuration is being synchronized to running environment by environment center 12
13 to build the first object environment when, can the second products configuration full dose be synchronized in running environment 13, with full dose
Build the first object environment.
In the present embodiment, by the products configuration for building product running environment with the relevant environment configurations of running environment
It is replaced, the environment configurations under different running environment is stored respectively with products configuration, and built by environmental variance by environmental variance
Vertical being associated between products configuration and environment configurations.In the running environment for building product, can according to the running environment pair
The environment configurations and products configuration answered fast implement building for running environment, compared to the side of building of currently running environment
On the one hand method can accurately obtain the environment configurations for the running environment for needing to build, successfully to build required running environment, separately
On the one hand it can also simplify the step of building running environment, improve the efficiency for building running environment.
In another embodiment of the application, first mesh is being built in environment center 12 according to second products configuration
When marking environment, may include:
Obtain the third products configuration when running environment runs the second target environment, second target environment and institute
State the running environment that first object environment belongs to the same category;
Second products configuration is compared with the third products configuration, determines second products configuration and institute
State the difference between third products configuration;
According to the difference between second products configuration and the third products configuration, the first object ring is built
Border.
In the present embodiment, diff, products configuration and institute between environment center 12 can also support different product to configure
Diff between the target environment to be built, and can be based on the difference between second products configuration and historical product configuration
(can be understood as second products configuration compared to the incremental portion that the historical product configures) builds the first object
Environment.Specifically:
First, environment center 12 can obtain third products configuration when running environment 13 runs the second target environment.Its
In, second target environment belongs to identical running environment with the first object environment, for example, the first object environment
It is test environment, second target environment is also test environment.Unlike, second target environment is that history is built
Running environment, in the present embodiment, second target environment can be considered as the corresponding true environment of the first object environment.
In the present embodiment, running environment 13 can be enabled to run second target environment, be run in running environment 13 described
During second target environment, environment center 12 can determine run second target environment when described in the second target environment
Corresponding third products configuration.Wherein, the third products configuration can be historical product configuration, and include environment configurations.
Secondly, environment center 12 is after obtaining the third products configuration, can by second products configuration with it is described
Third products configuration is compared, and determines the difference between second products configuration and the third products configuration.
In the present embodiment, the difference between second products configuration and the third products configuration can be used for characterizing institute
State the difference between first object environment and second target environment.
Finally, environment center 12 can according to the difference between second products configuration and the third products configuration,
Build the first object environment.
Environment center 12 is described according to the difference between second products configuration and the third products configuration, building
When first object environment, may include:
By between second products configuration and the third products configuration difference section or it is fully synchronized to operation ring
Second target environment run in border 13, builds the first object environment in running environment 13.
It, can be by the differential synchronization between second products configuration and the third products configuration to institute in the present embodiment
It states in the second target environment to build the first object environment.It specifically, can according to actual needs, by second product
Difference second target environment between configuration and the third products configuration, to be taken in running environment 13
The first object environment is built, it can also be same by the part variation between second products configuration and the third products configuration
In step to second target environment, to build the first object environment.
In this manner it is achieved that based on poor some or all of between second products configuration and the third products configuration
Different and described second target environment builds the first object environment, is taken compared to according to the second products configuration full dose
It builds for the first object environment, can be further simplified running environment builds step, to further increase operation ring
Build efficiency in border.
It should be noted that executing the premise for the method that the present embodiment is recorded is:In the presence of with the first object environment pair
Second target environment answered, that is to say, that if there are second target environment, the present embodiment can be used to record
Method builds the first object environment;It, can if corresponding second target environment of the first object environment is not present
Directly to build the first object environment according to the second products configuration full dose.
If should be understood that in the presence of second target environment corresponding with the first object environment, in addition to this can be passed through
The method that embodiment is recorded is built except the first object environment, can also select to be taken according to the second products configuration full dose
The first object environment is built, is not specifically limited here.
In practical applications, if in the presence of second target environment corresponding with the first object environment, in order into
The step of running environment is built in the simplification of one step, improves the efficiency for building running environment, it is preferable that can be according to second product
Difference between configuration and the third products configuration builds the first object environment.
After the method based on above-mentioned record builds the first object environment, the method can also wrap at environment center 12
It includes:
The confirmation message that running environment 13 returns is received, the confirmation message is for characterizing whether successfully build described first
Target environment;
According to the confirmation message, it is determined whether successfully build the first object environment.
Specifically, after building the first object environment, running environment 13 can run the institute built at environment center 12
First object environment is stated, after running the first object environment, running environment 13 can generate a confirmation message, and by institute
It states confirmation message and returns to environment center 12.Wherein, the confirmation message can be used for characterizing whether successfully build described first
Target environment.
It environment center 12, can be true according to the confirmation message after the confirmation message for receiving running environment return
It is fixed whether successfully to build the first object environment.
In the present embodiment, if the first object environment is built at environment center 12 not successfully, above-mentioned record can be based on
Method reacquire first products configuration and first environment configuration, and the method based on above-mentioned record is taken again
Build the first object running environment, can also be based on original first products configuration and the first environment configure into
Row modification, continues iterative development and obtains new second products configuration, and the method based on above-mentioned record is built again
The first object environment, until successfully building the first object environment.
If the first object environment is successfully built at environment center 12, other can be built based on the method for above-mentioned record
Running environment, and it is finally completed the publication of new product version.
Running environment provided by the embodiments of the present application builds system, in the development process of product (including product publication
After), can the method based on above-mentioned record quickly build various running environment in real time.
Fig. 4 be the application one embodiment product development process in build the schematic diagram of running environment.
In Fig. 4, to develop a new product version, and build the development environment of the product version, test environment and
It is illustrated for production environment.
In the development phase, when developing new version V1.0 and version V1.1, what environment center can be stored from configuration center
Iteration branch V1.0 and iteration branch V1.1 are pulled in tag, include product in iteration branch V1.0 and iteration branch V1.1
Configuration (including environmental variance) and environment configurations, version can be obtained according to the products configuration of respective version and environment configurations
V1.1 pairs of the corresponding configuration datas of V1.0 (including the products configuration of environment configurations, indicate used here as configuration data) and version
The configuration data answered.
According to version V1.0 and the respective configuration datas of version V1.1, it can build version V1.0's and version V1.1
Development environment.It specifically, can be based on the method for above-mentioned record, by version V1.0 and the respective configuration datas of version V1.1 point
Configuration data when not run with true development environment is compared, and determines the development environment for needing to build and true development environment
Between difference, to build to obtain version V1.0 and the respective development environments of version V1.1.Wherein, true development environment can
To be interpreted as the history development environment built.
In the development phase, developer returns ceaselessly to the products configuration in iteration branch V1.0 and iteration branch V1.1
And/or environment configurations are modified, and development environment is built in real time, until successfully building required development environment.
After successfully building development environment and completing the development phase, test phase can be entered.
In test phase, version V1.0 and version 1.1 can be merged (Merge) to trunk (Master), built
When the test environment of version V1.0 and version V1.1, environment center can use the products configuration and ring in the trunk after merging
Border configures the test environment for building the two versions.The method that can also specifically above-mentioned record be used, by version V1.0 in trunk
Products configuration be combined to obtain configuration data with the environment configurations under test environment, by the configuration data and true test environment
Configuration data when operation is compared, between the test environment and true test environment that determine the version V1.0 for needing to build
Difference, to build to obtain the test environment of version V1.0.Wherein, true test environment can be understood as the history built exploitation
Environment.Likewise, can also build to obtain the test environment of version V1.1.
In test phase, if it find that some bug, need modification to configure, then can modify on trunk.
After successfully building test environment and completing test phase, launch phase can be entered.
In launch phase, environment center can by version V1.0/ versions V1.1 test phase products configuration and environment
Configuration and version V1.0/ versions V1.1 merge in the products configuration and environment configurations of launch phase, to be based on above-mentioned record
Method build the production environment of version V1.0/ versions V1.1.
After successfully building production environment, an announced version V1.0/ version can be automatically created in configuration center
The tag branches of V1.1.After there is the bug on line, an iteration promptly issued can be pulled out from the tag branches created
Branch (branch), developer can repair bug in this iteration branch, and will be become by the method for above-mentioned record
The configuration data of change is synchronized to production environment.After synchronously completing, the content of the modification can be incorporated into trunk.
It should be noted that being only gived in Fig. 4 between the running environment built as needed and corresponding true environment
Difference, development environment, test environment and production environment are built by way of increment synchronization, in addition it is also possible to by complete
The synchronous mode of amount builds running environment.
In conclusion technical solution provided by the embodiments of the present application, by the products configuration for building product running environment
In replaced by environmental variance with the relevant environment configurations of running environment, by the environment configurations and products configuration under different running environment
It stores respectively, and being associated between products configuration and environment configurations is established by environmental variance.In this way, in the operation for building product
When environment, building for running environment can be fast implemented according to environment configurations corresponding with the running environment and products configuration,
The step of building running environment is simplified, the efficiency for building running environment is improved.
Fig. 5 is the flow diagram of the building method of one embodiment running environment of the application.The running environment
Building method can be as shown in Figure 1 environment center execute.The building method of the running environment is as described below.
S502:Obtain the first products configuration for building first object environment and first environment configuration.
In step 502, it in the development process of product, when needing to build first object environment, can obtain and institute
State corresponding first products configuration of first object environment and first environment configuration.
In the embodiment of the present application, the first object environment can be the development environment arrived involved in product development process,
Test environment, environments or production environment etc.;It can include environmental variance in first products configuration.
The specific implementation for obtaining first products configuration and first environment configuration can be with reality shown in FIG. 1
The realization method for applying the cooperation of the first product of acquisition and first environment configuration described in example is identical, and description is not repeated herein.
First products configuration and the first environment are being got with postponing, S504 can be executed.
S504:The environmental variance for including in first products configuration is replaced into first environment configuration, is obtained
Second products configuration.
In step 504, the first environment can be configured the environmental variance replaced in first products configuration,
It obtains the second products configuration, is configured comprising the first environment in second products configuration, second products configuration can be with
For building the first object environment.
The second environment is being obtained with postponing, S506 can be executed.
S506:The first object environment is built according to second products configuration.
In step 506, it after obtaining second products configuration, can be built according to second products configuration described
First object environment.
In one embodiment of the application, the method that can be recorded based on embodiment shown in FIG. 1, according to described second
Products configuration full dose builds the first object environment.
In another embodiment of the application, the first object environment is built according to second products configuration, it can be with
Including:
Obtain third products configuration when the second target environment of operation, second target environment and the first object ring
Border belongs to the running environment of the same category;
Second products configuration is compared with the third products configuration, determines second products configuration and institute
State the difference between third products configuration;
According to the difference between second products configuration and the third products configuration, the first object ring is built
Border.
According to the difference between second products configuration and the third products configuration, the first object ring is built
Border may include:
By the difference section or fully synchronized to described between second products configuration and the third products configuration
Two target environments are to build the first object environment.
The present embodiment can be based on second products configuration and be produced with the third when building the first object environment
Difference between product configuration builds the first object environment, and specific implementation may refer to remember in embodiment shown in FIG. 1
Carry according to the difference between second products configuration and the third products configuration, build the reality of the first object environment
Existing mode, is not repeated herein description.
In step 506, the method based on above-mentioned record is built after obtaining the first object environment, and the method may be used also
To include:
Confirmation message is received, the confirmation message is for characterizing whether successfully build the first object environment;
According to the confirmation message, it is determined whether successfully build the first object environment.
That is, after building the first object environment, confirmation message can be received, which can be by transporting
The running environment of the row first object environment returns, and the confirmation message can be used for characterizing whether successfully build described first
Target environment.
After receiving the confirmation message, and determined whether successfully to build first mesh according to the confirmation message
Mark environment.The related content described in embodiment shown in FIG. 1 is specifically may refer to, description is not repeated herein.
Fig. 6 is the flow diagram of the building method of one embodiment running environment of the application.Operation ring shown in fig. 6
The building method in border can be as shown in Figure 1 running environment build system realization, and built with running environment shown in fig. 5
Method belongs to identical inventive concept.The method is as described below.
Step 601:Environment center from configuration center obtain the first products configuration for building first object environment and
First environment configures.
The first object environment can be development environment, test environment, environments or production environment etc., described first
It include environmental variance in products configuration.
Environment center obtains the specific implementation that first products configuration and the first environment configure from configuration center
Mode can be identical as the method that the first products configuration and first environment configure is obtained in embodiment shown in FIG. 1, here not
Repeat description.
At this point, configuration center can return to first products configuration and first environment configuration in environment
The heart.
Step 602:First environment configuration is replaced the environmental variance in first products configuration by environment center, is obtained
To the second products configuration.
Second products configuration is the products configuration comprising environment configurations.
Step 603:Environment center obtains the third products configuration when operation of the second target environment from running environment.
Second target environment and the first object environment belong to the running environment of the same category, for example, described the
One target environment is production environment, then second target environment is also production environment, unlike, second target environment
It is the running environment of history for the first object environment.
At this point, running environment can run second target environment, and the third products configuration is returned into environment
Center.
Step 604:Environment center determines the difference between second products configuration and the third products configuration.
Second products configuration can be by way of being compared, really by environment center with the third products configuration
Fixed difference between second products configuration and the third products configuration.Second products configuration and the third product
Difference between configuration can be considered as increment of second products configuration compared to the third products configuration.
Step 605:The mRNA differential display mRNA between second products configuration and the third products configuration is given at environment center
User.
Here user can be considered as product development personnel
Step 606:Environment center by the differential synchronization between second products configuration and the third products configuration extremely
Running environment, and build the first object environment.
Environment center by the mRNA differential display mRNA between second products configuration and the third products configuration to exploit person
After member, developer can specifically pass through second mesh to be inputted in running environment some or all of in selection differences
The interface for marking the asset creation of environment completes data input.
After the data input, the data that developer inputs can be synchronized to running environment to developer by environment center,
I.e. by the differential synchronization between second products configuration and the third products configuration to running environment, to build described first
Target environment.
Step 607:Running environment returns to confirmation message to environment center.
Environment center is same by the difference between second products configuration and the third products configuration by environment center
After step to running environment, the first object environment can be built in running environment.Later, running environment can be generated and is used for
Whether characterization successfully builds the confirmation message of the first object environment, and the confirmation message is returned to environment center.
Step 608:Environment center determines whether successfully to build the first object environment according to the confirmation message.
It in step 608, can be to second product if the first object environment is built at environment center not successfully
Configuration is modified, and according to modified products configuration, and step 604 value 606 according to the above records builds described again
One target environment, until successfully building the first object environment.
It should be noted that in embodiment shown in fig. 6, environment center also may be used after determining second products configuration
Not execute above-mentioned steps 604 to step 606, but second products configuration is directly synchronized to running environment, and is based on
The second products configuration full dose builds the first object environment.In practical applications, in order to be further simplified build it is described
The step of first object environment, preferably by the differential synchronization between second products configuration and the third products configuration to fortune
Row environment, and then build the first object environment.
Technical solution provided by the embodiments of the present application, by the products configuration for building product running environment with operation ring
The relevant environment configurations in border are replaced by environmental variance, and the environment configurations under different running environment are stored respectively with products configuration,
And being associated between products configuration and environment configurations is established by environmental variance.In this way, in the running environment for building product, it can
To fast implement building for running environment according to environment configurations corresponding with the running environment and products configuration, simplifies and build
The step of running environment, improves the efficiency for building running environment.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the action recorded in detail in the claims or step can be come according to different from the sequence in embodiment
It executes and desired result still may be implemented.In addition, the process described in the accompanying drawings not necessarily require show it is specific suitable
Sequence or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing be also can
With or it may be advantageous.
Fig. 7 is the structural schematic diagram of one embodiment electronic equipment of the application.Referring to FIG. 7, in hardware view, the electricity
Sub- equipment includes processor, further includes optionally internal bus, network interface, memory.Wherein, memory may include interior
It deposits, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile memories
Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that other
The required hardware of business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA
(Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral
Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard
Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always
Line etc..For ease of indicating, only indicated with a four-headed arrow in Fig. 7, it is not intended that an only bus or a type of
Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating
Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from then operation in corresponding computer program to memory is read in nonvolatile memory, in logical layer
Running environment is formed on face builds device.Processor executes the program that memory is stored, and specifically for executing following behaviour
Make:
The first products configuration and first environment configuration, first product for building first object environment is obtained to match
It include environmental variance in setting;
The environmental variance for including in first products configuration is replaced into first environment configuration, obtains the second production
Product configure;
The first object environment is built according to second products configuration.
The method for building device execution of running environment disclosed in the above-mentioned embodiment illustrated in fig. 7 such as the application can be applied to
In processor, or realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.
During realization, each step of the above method can pass through the integrated logic circuit of the hardware in processor or software form
Instruction is completed.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processor, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device are divided
Vertical door or transistor logic, discrete hardware components.It may be implemented or execute and is in the embodiment of the present application disclosed each
Method, step and logic diagram.General processor can be microprocessor or the processor can also be any conventional place
Manage device etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and execute
At, or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory,
This fields such as flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register maturation
In storage medium.The storage medium is located at memory, and processor reads the information in memory, and above-mentioned side is completed in conjunction with its hardware
The step of method.
The method that the electronic equipment can also carry out Fig. 5, and that realizes running environment builds device shown in Fig. 5 and Fig. 6
The function of embodiment, details are not described herein for the embodiment of the present application.
Certainly, other than software realization mode, other realization methods are not precluded in the electronic equipment of the application, for example patrol
Collect the mode etc. of device or software and hardware combining, that is to say, that the executive agent of following process flow is not limited to each patrol
Unit is collected, can also be hardware or logical device.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one
A or multiple programs, the one or more program include instruction, and the instruction is when the portable electronic for being included multiple application programs
When equipment executes, the method that the portable electronic device can be made to execute embodiment illustrated in fig. 5, and specifically for executing following behaviour
Make:
The first products configuration and first environment configuration, first product for building first object environment is obtained to match
It include environmental variance in setting;
The environmental variance for including in first products configuration is replaced into first environment configuration, obtains the second production
Product configure;
The first object environment is built according to second products configuration.
Fig. 8 is the structural schematic diagram for building device 80 of one embodiment running environment of the application.Referring to FIG. 8,
In a kind of Software Implementation, the device 80 of building of the running environment may include:It acquiring unit 81, replacement unit 82 and builds
Unit 83, wherein:
Acquiring unit 81 obtains the first products configuration for building first object environment and first environment configuration, institute
State in the first products configuration includes environmental variance;
First environment configuration is replaced the environment for including in first products configuration and become by replacement unit 82
Amount, obtains the second products configuration;
Unit 83 is built, the first object environment is built according to second products configuration.
Optionally, the unit 83 of building builds the first object environment according to second products configuration, including:
Obtain third products configuration when the second target environment of operation, second target environment and the first object ring
Border belongs to the running environment of the same category;
Second products configuration is compared with the third products configuration, determines second products configuration and institute
State the difference between third products configuration;
According to the difference between second products configuration and the third products configuration, the first object ring is built
Border.
Optionally, the unit 83 of building is according to the difference between second products configuration and the third products configuration
It is different, the first object environment is built, including:
By the difference section or fully synchronized to described between second products configuration and the third products configuration
Two target environments are to build the first object environment.
Optionally, the running environment builds device 80 and can also include:Confirmation unit 84, wherein:
The confirmation unit 84 is built after unit 83 builds the first object environment described, receives confirmation message, institute
State confirmation message for characterize whether successfully build the first object environment;
According to the confirmation message, it is determined whether successfully build the first object environment.
The method of running environment built device 80 and can also carry out Fig. 5 or Fig. 6, and realize that the device of building of running environment exists
The function of Fig. 5, embodiment illustrated in fig. 6, details are not described herein for the embodiment of the present application.
In short, the foregoing is merely the preferred embodiment of the application, it is not intended to limit the protection domain of the application.
Within the spirit and principles of this application, any modification, equivalent replacement, improvement and so on should be included in the application's
Within protection domain.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus
Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
There is also other identical elements in the process of element, method, commodity or equipment.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method
Part explanation.