The above is a general interaction diagram I sorted out. Small companies have neither machine resources nor personnel, so they should emphasize their advantages: small and flexible. Let’s talk about how we do it

Specific process description:

  1. Developers develop code locally, review code, and submit code in PHA

  2. The Maven repository is used to manage JAR packages that developers can upload and download directly

  3. Jenkins will automatically package and deploy production images to docker image library after code changes

  4. Rancher environment updates images and updates programs

Development branch management methods:

Development branch: devloper _xx

Test branch: Test_xx

Production Branch: Release_XX

Online bug fix: Features_xx

Rancher Environmental Management:

Development environment: Designed for development use

Test environment: Designed for test use

Production environment: online environment, specially-assigned authority, can not be changed at will.

Packaging tools:

Jenkins to package the mirror image. Distribute to different environments. Can also be local packaging directly uploaded to Ali Cloud or netease cloud mirror warehouse can also use Habor to build their own mirror service

conclusion

At present, the use of this environment is still relatively convenient, greatly improving work efficiency. Facilitate communication and collaboration.