jenkins + docker + gitlab + harbor + pipeline rapid deployment process issued version

Introduction
As the business grows, the demand began to increase, the size of each requirement, the development cycle, release time are inconsistent. Overlay system architecture based micro services, functions, corresponding to the number of services is also increasing, fast iterative function of size, require the deployment of more rapid and intelligent. Therefore, the traditional manual deployment has been beyond their grasp.
Continuous integration, continuous deployment, continuous development of interactive services for micro, the team is to improve the overall efficiency an integral part. Rational use of CI, CD can greatly improve production efficiency, but also improve the interactive quality of the product.
Process of combing:

1. A developer of on-line version of the tag on a hit gitlab
2.jenkins get tag version.
3. Write Pipeline
3.1 to pull the code clone git
3.2 Maven build jar pack
3.3 file written dockerfile
3.4 and pushed to create a mirror image of local harbor warehouse
3.5 first remove container, mirror and start pulling container

jenkins graphical interface settings:
1. Set the construction history Reserved (number of days)
jenkins + docker + gitlab + harbor + pipeline rapid deployment process issued version
2. Parameter construct, corresponding to the selected version to send tag. (Generally named Date Time tag version minutes, easy to distinguish)
jenkins + docker + gitlab + harbor + pipeline rapid deployment process issued version

Guess you like

Origin blog.51cto.com/12191723/2433555