CN112527376B - Method for realizing DevOps automation based on reverse proxy service - Google Patents

Method for realizing DevOps automation based on reverse proxy service Download PDF

Info

Publication number
CN112527376B
CN112527376B CN202011312503.4A CN202011312503A CN112527376B CN 112527376 B CN112527376 B CN 112527376B CN 202011312503 A CN202011312503 A CN 202011312503A CN 112527376 B CN112527376 B CN 112527376B
Authority
CN
China
Prior art keywords
service
reverse proxy
devops
url
continuous integration
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.)
Active
Application number
CN202011312503.4A
Other languages
Chinese (zh)
Other versions
CN112527376A (en
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.)
Inspur Software Technology Co Ltd
Original Assignee
Inspur Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Software Technology Co Ltd filed Critical Inspur Software Technology Co Ltd
Priority to CN202011312503.4A priority Critical patent/CN112527376B/en
Publication of CN112527376A publication Critical patent/CN112527376A/en
Application granted granted Critical
Publication of CN112527376B publication Critical patent/CN112527376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/542Intercept
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method for realizing DevOps automation based on reverse proxy service, which relates to the technical field of data interaction; and intercepting the URL of the Git warehouse interaction process request in the process of the DevOps continuous integration by using a reverse proxy service, executing cooperative processing service operation on the intercepted URL, configuring the Jenkins service of the DevOps continuous integration, and providing a tool set for quickly building the DevOps continuous integration construction environment for subsequent quick installation.

Description

Method for realizing DevOps automation based on reverse proxy service
Technical Field
The invention discloses a method, which relates to the technical field of data interaction, in particular to a method for realizing DevOps automation based on reverse proxy service.
Background
Operators require better reliability and security, developers want the infrastructure to respond faster, and business users' needs are faster to publish more features to end users for use. And the DevOps introduction can have profound effects on product delivery, testing, function development and maintenance. However, the current DevOps continuous integration service cannot be fully automated, and no convenient way and condition for users to quickly build and use the DevOps environment are provided.
Disclosure of Invention
The invention provides a method for realizing the automation of a DevOps based on reverse proxy service, which aims at the problems of the prior art and relates to the virtualization of the DevOps and a cloud computing infrastructure (Virtual Machine) and a data center automation configuration manager. The method realizes automation of the DevOps continuous integrated service based on the reverse proxy technology, provides a convenient mode and condition for a user to quickly build and use the DevOps environment, simultaneously provides a mechanism for uniformly and normatively processing interactive data on a certain level, and provides inquiry and configuration management interface service based on RESTful API.
The specific scheme provided by the invention is as follows:
a method for realizing DevOps automation based on reverse proxy service comprises the following steps: and intercepting the URL of the Git warehouse interaction process request in the DevOps continuous integration flow by utilizing reverse proxy service, executing cooperative processing service operation on the intercepted URL, and configuring the Jenkins service of the DevOps continuous integration to realize the automation of the DevOps continuous integration flow.
Preferably, in the method, a service source is set, a reverse proxy service object is created, and the reverse proxy service is executed to intercept the URL of the Git warehouse interactive process request.
Preferably, in the method, the reverse proxy service object registers service for the user, intercepts the corresponding URL, and executes the configuration access token for the cooperative processing service operation of the subsequent related authorization configuration.
Preferably, in the method, the reverse proxy service object is used for creating a warehouse service, intercepting a corresponding URL, executing a collaborative processing service operation for configuring a Git warehouse to submit an application service hook webhook, and creating a collaborative processing service operation corresponding to a Jenkins continuous integration task Job based on a specific template.
Preferably, in the method, the reverse proxy service object designates a warehouse service for derivative, intercepts a corresponding URL, and executes a collaborative processing service operation of configuring a Git warehouse to submit an application service hook webhook, and creates a collaborative processing service operation corresponding to Jenkins continuous integration task Job based on a specific template.
Preferably, in the method, the reverse proxy service object is configured to receive an application service hook request, intercept a corresponding URL, perform parsing and reconstruct the content of the request body, collect necessary information as metadata, and unify cooperative processing service operations of interactive data processing.
A system for realizing DevOps automation based on reverse proxy service comprises a proxy module, a collaboration module and a configuration module,
the proxy module intercepts the URL of the Git warehouse interaction process request in the DevOps continuous integration flow by utilizing reverse proxy service, the collaboration module executes collaborative processing service operation aiming at the intercepted URL, and the configuration module configures the Jenkins service of the DevOps continuous integration, and all the modules cooperate to realize the automation of the DevOps continuous integration flow.
An apparatus for implementing DevOps automation based on reverse proxy services, comprising: at least one memory and at least one processor;
the at least one memory for storing a machine readable program;
the at least one processor is configured to invoke the machine-readable program and execute the method for implementing DevOps automation based on the reverse proxy service.
The invention has the advantages that:
the invention provides a method for realizing DevOps automation based on reverse proxy service, which is used for intercepting URL (uniform resource locator) of a Git warehouse interaction process request in a DevOps continuous integration flow by utilizing the reverse proxy service, executing cooperative processing service operation on the intercepted URL, configuring the Jenkins service of the DevOps continuous integration, improving and promoting virtualization of the DevOps and cloud computing infrastructure, and realizing automation of data center and configuration management. The operation steps of constructing a DevOps continuous integration environment by operation and maintenance personnel are simplified; the operation of a developer is simplified, and the automatic configuration of the DevOps continuous integration process is realized in a more direct mode; and the operation such as storage, state management and inquiry of configuration can be further provided through RESTful API service, and unified specification of interaction data between components can be realized on a certain level.
Drawings
FIG. 1 is a schematic diagram of a reverse proxy process;
FIG. 2 is a schematic diagram of a DevOps continuous integration environment configuration;
FIG. 3 is a schematic diagram of an optimized DevOps persistent integration environment configuration in accordance with the present invention;
FIG. 4 is a schematic diagram of the application flow of the method of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and specific examples, which are not intended to be limiting, so that those skilled in the art will better understand the invention and practice it.
In computer networks, reverse proxy services are one type of proxy service. The server obtains resources from one or more groups of back-end servers (such as Web servers) in relation to the client according to the request of the client, and then returns the resources to the client, the client only knows the IP address of the reverse proxy, but does not know the existence of a server cluster behind the proxy server, and the reverse proxy is used as a proxy of the server (such as Web server) instead of the client unlike the forward proxy. Reference is made to fig. 1.
The invention provides a method for realizing DevOps automation based on reverse proxy service, which comprises the following steps: and intercepting the URL of the Git warehouse interaction process request in the DevOps continuous integration flow by utilizing reverse proxy service, executing cooperative processing service operation on the intercepted URL, and configuring the Jenkins service of the DevOps continuous integration to realize the automation of the DevOps continuous integration flow.
The method realizes the automation of the DevOps continuous integrated service based on the reverse proxy technology, provides a convenient mode and condition for a user to quickly build and use the DevOps environment, simultaneously provides a mechanism for uniformly and normatively processing interactive data on a certain layer, and can further provide services such as inquiry, configuration management interface and the like by utilizing RESTful API.
In the general process of configuration of the DevOps continuous integrated environment, the DevOps continuous integration is divided into two phases: git warehouse services and Jenkins continue to build service configurations.
Definition of the DevOps two-stage main interaction procedure:
a) Git warehouse service configuration
i. Account registration
Code submission management and application authorization
Providing a code repository and a derivative repository
Creating a service triggering hook callback and configuring callback listening event;
b) Jenkins service configuration
i. Creating and configuring a construction task;
and ii, collecting the continuous construction result.
Content items in the DevOps flow that must be engaged by the user:
c) Git warehouse service configuration
i. Registration service
Creation and derivation of warehouse
d) Jenkins service configuration aspect (all without user participation)
i. Defining a generatable prototype Job in a metadata mode;
triggering the prototype Job by a Git integrated hook callback through a code creation warehouse event to create a specific Job;
sustained integration process definition file (.trapis.yml) written by the user and submitted to the current code repository.
The above process can refer to fig. 2, and in some embodiments, based on the reverse proxy service, the URL requested by the user in the interactive process of the Git warehouse is intercepted, and a collaborative processing action is added to implement automation of configuring the DevOps process, where the URL requesting the interactive process of the Git warehouse is intercepted, and an executable collaborative action is added, which can refer to table 1.
TABLE 1
After the interception service is combined with the collaborative action, the configuration process for the continuous integration of the DevOps can be simplified, the dashed box in fig. 3 is selected as user operation items simplified due to the collaborative operation in the interaction flow of the user, and referring to fig. 3, compared with the operation steps of the continuous integration environment of the previous DevOps, the configuration operation which needs to be participated by the user in the configuration is obviously reduced after the interception is introduced and the collaborative operation is executed.
For operation and maintenance personnel, a series of basic configuration works such as subsequent application authorization, creation and configuration of service departure hooks and Jenkins continuous construction service configuration can be automatically realized only by enabling an developer to execute registration and login operation for the Git warehouse service after finishing construction of the Git warehouse service and Jenkins continuous construction service. The process of quickly constructing the DevOps continuous integrated construction environment is realized, and the user is supported to submit, acquire and customize related configuration items through a RESTful API interface.
In the implementation process, the Go language may be utilized to support reverse proxy: returning a reverse proxy object through the newsingleHostreverse proxy method, the reverse proxy object can be routed to a URL target address based on a designated protocol, a host and a path to intercept the URL, for example:
setting up service source
u,_:=url.Parse("http://gogits:3000")
Creation of reverse proxy service object
reverseProxy:=httputil.NewSingleHostReverseProxy(u)
Method and apparatus for intercepting services
chainedProxy:=interceptActionByURL(reverseProxy,http.MethodPost,[]string{"/user/sign_up"},
func(resp http.ResponseWriter,req*http.Request,data[]byte){...})
The/configuration agent intercepts services
That is, through the Go language code fragment through the reverse proxy http:// gagets: 3000 service, the designated URL "/user/sign_up" is intercepted, when the user requests the URL, a cooperative operation is performed with respect to the intercepted service, and then the actual service of the proxy is continued to be performed. And the operation automation of the relevant flow of the sustained integration configuration of the DevOps is realized in the form of non-invasive source code.
The invention also provides a system for realizing the DevOps automation based on the reverse proxy service, which comprises a proxy module, a cooperative module and a configuration module,
the proxy module intercepts the URL of the Git warehouse interaction process request in the DevOps continuous integration flow by utilizing reverse proxy service, the collaboration module executes collaborative processing service operation aiming at the intercepted URL, and the configuration module configures the Jenkins service of the DevOps continuous integration, and all the modules cooperate to realize the automation of the DevOps continuous integration flow.
The content of information interaction and execution process between the modules in the system is based on the same concept as the method embodiment of the present invention, and specific content can be referred to the description in the method embodiment of the present invention, which is not repeated here.
The invention also provides a device for realizing the DevOps automation based on the reverse proxy service, which comprises: at least one memory and at least one processor;
the at least one memory for storing a machine readable program;
the at least one processor is configured to invoke the machine-readable program and execute the method for implementing DevOps automation based on the reverse proxy service.
The content of the information interaction and the readable program process of the processor in the device is based on the same concept as the embodiment of the method of the present invention, and the specific content can be referred to the description in the embodiment of the method of the present invention, which is not repeated here.
It should be noted that, in the above preferred embodiments, not all steps and modules in each flow and each system and device structure are necessary, and some steps or modules may be omitted according to actual needs. The execution sequence of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or may be implemented jointly by some components in multiple independent devices.
The above-described embodiments are merely preferred embodiments for fully explaining the present invention, and the scope of the present invention is not limited thereto. Equivalent substitutions and modifications will occur to those skilled in the art based on the present invention, and are intended to be within the scope of the present invention. The protection scope of the invention is subject to the claims.

Claims (3)

1. A method for realizing DevOps automation based on reverse proxy service is characterized in that the reverse proxy service is utilized to intercept the URL of the Git warehouse interaction process request in the continuous integration flow of the DevOps, wherein a service source is set, a reverse proxy service object is created, the reverse proxy service is executed to intercept the URL of the Git warehouse interaction process request,
executing cooperative processing service operation aiming at the intercepted URL, configuring the Jenkins service of the DevOps continuous integration, realizing the automation of the DevOps continuous integration flow, wherein if the reverse proxy service object is a user registration service, intercepting the corresponding URL, executing operation of configuring an access token for the cooperative processing service of the follow-up related authorization configuration,
if the reverse proxy service object is a create repository service, intercepting the corresponding URL and executing a collaborative process service operation configuring a Git repository submit application service hook webhook, and creating a collaborative process service operation corresponding to Jenkins continuous integration task Job based on the template,
if the reverse proxy service object is a derivative appointed warehouse service, intercepting the corresponding URL, executing the collaborative processing service operation of configuring the Git warehouse to submit an application service hook webhook, creating the collaborative processing service operation corresponding to the Jenkins continuous integration task Job based on the template,
if the reverse proxy service object is configured to receive the application service hook request, intercepting the corresponding URL, and executing collaborative processing service operation of analyzing and reconstructing the content of the request body, collecting information as metadata and processing unified interaction data.
2. A system for realizing DevOps automation based on reverse proxy service is characterized by comprising a proxy module, a cooperative module and a configuration module,
the proxy module intercepts URL of the Git warehouse interaction process request in the DevOps continuous integration flow by utilizing reverse proxy service, sets a service source, creates a reverse proxy service object, executes the URL of the reverse proxy service interception Git warehouse interaction process request,
the collaboration module executes collaboration processing service operation aiming at the intercepted URL, the configuration module configures the Jenkins service of the continuous integration of the DevOps, each module cooperates to realize the automation of the continuous integration flow of the DevOps, wherein if the reverse proxy service object is user registration service, the proxy module intercepts the corresponding URL and executes configuration access token for the collaboration processing service operation of the follow-up related authorization configuration of the collaboration module,
if the reverse proxy service object is creation of a warehouse service, the proxy module intercepts the corresponding URL, the collaboration module performs collaborative processing service operation for configuring the Git warehouse to submit application service hook webhook, and creates collaborative processing service operation corresponding to Jenkins continuous integration task Job based on the template,
if the reverse proxy service object is a derivative appointed warehouse service, the proxy module intercepts the corresponding URL, the cooperative module executes cooperative processing service operation for configuring the Git warehouse to submit an application service hook webhook, and creates cooperative processing service operation corresponding to the Jenkins continuous integration task Job based on the template,
if the reverse proxy service object is configured to receive the application service hook request, the proxy module intercepts the corresponding URL, and the cooperative module performs cooperative processing service operation of analyzing and reconstructing the content of the request body, collecting information as metadata and processing unified interactive data.
3. An apparatus for implementing DevOps automation based on reverse proxy service, comprising: at least one memory and at least one processor;
the at least one memory for storing a machine readable program;
the at least one processor configured to invoke the machine readable program to perform a method of implementing DevOps automation based on reverse proxy services of claim 1.
CN202011312503.4A 2020-11-20 2020-11-20 Method for realizing DevOps automation based on reverse proxy service Active CN112527376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011312503.4A CN112527376B (en) 2020-11-20 2020-11-20 Method for realizing DevOps automation based on reverse proxy service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011312503.4A CN112527376B (en) 2020-11-20 2020-11-20 Method for realizing DevOps automation based on reverse proxy service

Publications (2)

Publication Number Publication Date
CN112527376A CN112527376A (en) 2021-03-19
CN112527376B true CN112527376B (en) 2023-07-18

Family

ID=74982038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011312503.4A Active CN112527376B (en) 2020-11-20 2020-11-20 Method for realizing DevOps automation based on reverse proxy service

Country Status (1)

Country Link
CN (1) CN112527376B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992749A (en) * 2021-10-08 2022-01-28 浪潮云信息技术股份公司 Http reverse proxy method and system based on go language
CN116049582B (en) * 2023-03-31 2023-07-04 深圳依时货拉拉科技有限公司 WebView monitoring method, computer device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209398A (en) * 2019-06-04 2019-09-06 浪潮软件集团有限公司 A kind of method that DevOps carries out continuous integrating service based on agreement
CN110297627A (en) * 2019-07-01 2019-10-01 四川长虹电器股份有限公司 A kind of front-end code automation continuous integrating method based on gitlab-ci
CN110321152A (en) * 2019-07-04 2019-10-11 青岛华正信息技术股份有限公司 A kind of Software Development Platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10691514B2 (en) * 2017-05-08 2020-06-23 Datapipe, Inc. System and method for integration, testing, deployment, orchestration, and management of applications

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110209398A (en) * 2019-06-04 2019-09-06 浪潮软件集团有限公司 A kind of method that DevOps carries out continuous integrating service based on agreement
CN110297627A (en) * 2019-07-01 2019-10-01 四川长虹电器股份有限公司 A kind of front-end code automation continuous integrating method based on gitlab-ci
CN110321152A (en) * 2019-07-04 2019-10-11 青岛华正信息技术股份有限公司 A kind of Software Development Platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Docker的DevOps系统设计与实现;丁海斌;崔隽;陆凯;;指挥信息系统与技术(第03期);91-96 *

Also Published As

Publication number Publication date
CN112527376A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
US20220091889A1 (en) Remote Management of Distributed Datacenters
US10827008B2 (en) Integrated user interface for consuming services across different distributed networks
CN106462467B (en) Integrated API and UI for consuming services over different distributed networks
US10089133B2 (en) Apparatus and method for virtual desktop service suitable for user terminal based on environmental parameter
JP3853592B2 (en) Distributed web application server
CN111277432B (en) Configuration information updating method and device, electronic equipment and storage medium
US20140366093A1 (en) Apparatus and method for virtual desktop service
US20210224091A1 (en) Sharable link for remote computing resource access
US11323546B2 (en) Executing remote commands
US10915437B1 (en) Framework for performing load testing and profiling of services
US10938641B1 (en) On-demand development environment
CN112527376B (en) Method for realizing DevOps automation based on reverse proxy service
US11544344B2 (en) Remote web browsing service
CN109450976B (en) Method and device for accessing service system
US10789320B2 (en) System and method for generating globally-unique identifiers
CN111935092B (en) Information interaction method and device based on third-party application and electronic equipment
CN112491940A (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CA3135722C (en) Sharing resources between client devices in a virtual workspace environment
US11416448B1 (en) Asynchronous searching of protected areas of a provider network
JP2017215630A (en) Application utilization system
WO2024045000A1 (en) Application-based clipboard isolation and sharing
US20230419067A1 (en) ENHANCED QUICK RESPONSE (qr) CODE SCAN SECURITY
US11734058B2 (en) Systems and methods of a virtualized management operation engine of a distributed system
US20230148314A1 (en) Fast Launch Based on Hibernated Pre-launch Sessions
CN114416169A (en) Data processing method, medium, device and computing equipment based on micro front end

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
GR01 Patent grant
GR01 Patent grant