{"id":68903,"date":"2024-10-08T10:41:11","date_gmt":"2024-10-08T02:41:11","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=68903"},"modified":"2024-10-08T10:41:11","modified_gmt":"2024-10-08T02:41:11","slug":"devops-toolchain","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/devops-toolchain.html","title":{"rendered":"BAT\u7ea7\u7684DevOps\u5de5\u5177\u94fe\u662f\u600e\u6837\u7684\uff1f"},"content":{"rendered":"
<\/p>\n
1910\u5e74\uff0c\u798f\u7279\u6c7d\u8f66\u5728\u5f15\u5165\u6d41\u6c34\u7ebf\u751f\u4ea7\u4e4b\u540e\uff0cModel-T \u7684\u7ec4\u88c5\u65f6\u95f4\u7f29\u77ed\u4e868\u500d\uff0c\u4ece12.5\u5c0f\u65f6\u964d\u5230\u4e861.5\u5c0f\u65f6\uff0c\u8fd9\u5c31\u662f\u6d41\u6c34\u7ebf\u6539\u53d8\u4e16\u754c\u7684\u795e\u8bdd\uff0c\u9020\u5c31\u4e86\u6c7d\u8f66\u4e0a\u7684\u56fd\u5bb6\uff01<\/p>\n
\u90a3\u6d41\u6c34\u7ebf\u600e\u4e48\u6539\u53d8\u8f6f\u4ef6\u4ea4\u4ed8\u7684\u4e16\u754c\u5462\uff1f<\/p>\n
2010\u5e74\uff0cJez Humble \u7684\u5927\u4f5c\u300a\u6301\u7eed\u4ea4\u4ed8-\u53d1\u5e03\u53ef\u9760\u8f6f\u4ef6\u7684\u7cfb\u7edf\u65b9\u6cd5\u300b\u51fa\u7248\uff0c\u8f6f\u4ef6\u4ea4\u4ed8\u7684\u4e16\u754c\u56e0\u6b64\u5927\u4e0d\u540c\uff0c\u90e8\u7f72\u6d41\u6c34\u7ebf\u5c31\u662f\u5176\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u4e00\u7ae0\u3002<\/p>\n
<\/p>\n
\u5927\u795e Jez Humble \u5bf9\u90e8\u7f72\u6d41\u6c34\u7ebf\u7684\u5b9a\u4e49\uff1a\u90e8\u7f72\u6d41\u6c34\u7ebf\u662f\u6307\u8f6f\u4ef6\u4ece\u7248\u672c\u63a7\u5236\u5e93\u5230\u7528\u6237\u624b\u4e2d\u8fd9\u4e00\u8fc7\u7a0b\u7684\u81ea\u52a8\u5316\u8868\u73b0\u5f62\u5f0f\u3002\u5bf9\u8f6f\u4ef6\u7684\u6bcf\u6b21\u53d8\u66f4\u90fd\u4f1a\u7ecf\u5386\u4e00\u4e2a\u590d\u6742\u6d41\u7a0b\u624d\u80fd\u53d1\u5e03\u3002<\/p>\n
<\/p>\n
\u53e6\u4e00\u4f4d\u5927\u795e Martin Fowler \u8ba4\u4e3a\u90e8\u7f72\u6d41\u6c34\u7ebf\u662f\u6301\u7eed\u4ea4\u4ed8\u7684\u6838\u5fc3\u73af\u8282\u3002<\/p>\n
\u9ad8\u6548\u8fd0\u7ef4\u793e\u533a DevOps \u4e13\u5bb6\uff0c\u524d\u767e\u5ea6\u5de5\u7a0b\u6548\u7387\u4e13\u5bb6\u5f20\u4e50\u540c\u5b66\u7ed3\u5408\u81ea\u5df1\u591a\u5e74\u7684\u5b9e\u8df5\u7ecf\u9a8c\u548c\u7cbe\u76ca\u5c4b\u6574\u7406\u51fa\u6301\u7eed\u4ea4\u4ed8\u5c4b<\/strong>\uff0c\u5176\u4e2d\u53ef\u9760\u53ef\u91cd\u590d\u7684\u6d41\u6c34\u7ebf\u5c31\u662f\u6838\u5fc3\u5185\u5bb9\u3002\u4ece\u63d0\u4ea4\u4e0e\u7f16\u8bd1\uff0c\u6d4b\u8bd5\u4e0e\u9a8c\u8bc1\u5230\u90e8\u7f72\u4e0e\u8fd0\u7ef4\uff0c\u6253\u901a\u8f6f\u4ef6\u4ea4\u4ed8\u7684\u5b8c\u6574\u8def\u5f84\uff0c\u5b9e\u73b0\u771f\u6b63\u7684\u7aef\u5230\u7aef\u90e8\u7f72\u6d41\u6c34\u7ebf\u3002<\/p>\n <\/p>\n \u5728\u300a\u6301\u7eed\u4ea4\u4ed8\u300b\u4e66\u4e2d\uff0cJez Humble \u4e3a\u8bfb\u8005\u63d0\u4f9b\u4e86\u4e00\u5957\u6700\u57fa\u672c\u7684\u6d41\u6c34\u7ebf\u793a\u4f8b\uff0c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n <\/p>\n \u56fe\u4e2d\u7684\u591a\u4e2a\u9636\u6bb5\u4f9d\u9760\u7c7b\u4f3c Jenkins \u8fd9\u6837\u7684\u6301\u7eed\u4ea4\u4ed8\u5f15\u64ce\u5de5\u5177\u6765\u9a71\u52a8\uff0c\u7248\u672c\u63a7\u5236\u548c\u5236\u54c1\u5e93\u7ba1\u7406\u662f\u6d41\u6c34\u7ebf\u7684\u8f93\u5165\u548c\u8f93\u51fa\u3002<\/p>\n \u767e\u5ea6\u662f\u5de5\u7a0b\u6548\u7387\u975e\u5e38\u51fa\u7c7b\u62d4\u8403\u7684\u516c\u53f8\uff0c\u654f\u6377\u548c\u6301\u7eed\u4ea4\u4ed8\u90fd\u5177\u5907\u5f88\u5f3a\u7684\u80fd\u529b\u3002\u5982\u56fe\u5c31\u662f\u767e\u5ea6\u5efa\u8bbe\u7684\u53ef\u9760\u53ef\u91cd\u590d\u7684\u4ea4\u4ed8\u6d41\u6c34\u7ebf\uff0c\u901a\u8fc7\u4ea4\u4ed8\u6d41\u6c34\u7ebf\uff0c\u5c06\u5168\u5c40\u8fc7\u7a0b\u6807\u51c6\u5316\u3001\u81ea\u52a8\u5316\u3001\u53ef\u89c6\u5316\u3002<\/p>\n <\/p>\n \u6c47\u805a\u591a\u6a21\u5757\u4e4b\u95f4\u7684\u90e8\u7f72\u6d41\u6c34\u7ebf<\/p>\n <\/p>\n \u7eb8\u724c\u5c4b\u7684\u51fa\u54c1\u516c\u53f8\uff0c\u56fd\u5916\u89c6\u9891\u7684\u4e00\u54e5 Netflix\uff0c\u4e5f\u662f\u4e00\u5bb6\u5de5\u7a0b\u80fd\u529b\u975e\u5e38\u4f18\u79c0\u7684\u516c\u53f8\uff0cNetflix \u57fa\u4e8e Jenkins \u5f00\u53d1\u4e86\u6301\u7eed\u4ea4\u4ed8\u5e73\u53f0 Spinnaker\uff0c\u4ece\u4ee3\u7801\u5d4c\u5165\u3001\u6301\u7eed\u96c6\u6210\u3001\u73af\u5883\u5236\u4f5c\u3001\u90e8\u7f72\u3001\u6d4b\u8bd5\u5230\u53d1\u5e03\u7b49\u5404\u73af\u8282\u90fd\u5b8c\u6574\u6253\u901a\u3002<\/p>\n <\/p>\n \u5176\u4e2d\u8fd8\u7528\u5230\u4e86\u57fa\u7840\u8bbe\u65bd\u5373\u4ee3\u7801\u3001\u4e0d\u53ef\u53d8\u57fa\u7840\u8bbe\u65bd\u7b49\u8bf8\u591a\u5b9e\u8df5\u3002<\/p>\n \u770b\u5230\u8fd9\u91cc\uff0c\u4f60\u4e00\u5b9a\u5728\u60f3\uff1a<\/p>\n \u9ad8\u6548\u8fd0\u7ef4\u793e\u533a\u503e\u529b\u6253\u9020\u7684\u5168\u5f00\u6e90\u7aef\u5230\u7aef\u90e8\u7f72\u6d41\u6c34\u7ebf\u5c31\u662f\u4f60\u8981\u7684\u7b54\u6848<\/p>\n <\/p>\n 1. \u5168\u5f00\u6e90\u5de5\u5177\u94fe<\/strong>\uff1a\u793a\u4f8b\u4e2d\u7684\u5de5\u5177\u5168\u662f\u5f00\u6e90\u5de5\u5177\uff0c\u6db5\u76d6\u4f9d\u8d56\u4e0e\u955c\u50cf\u7ba1\u7406\u3001\u4ee3\u7801\u7ba1\u7406\u3001\u6301\u7eed\u96c6\u6210\u3001\u4ee3\u7801\u8d28\u91cf\u3001\u81ea\u52a8\u5316\u6d4b\u8bd5\u3001\u5bb9\u5668\u5316\u7f16\u6392\u548c\u65e5\u5fd7\u7ba1\u7406\u7b49\u3002<\/p>\n <\/p>\n 2. \u591a\u9636\u6bb5\u8fc7\u7a0b<\/strong>\uff1a\u793a\u4f8b\u4e2d\u5c06\u6d41\u6c34\u7ebf\u5206\u4e3a\u4e09\u4e2a\u9636\u6bb5\uff1a\u63d0\u4ea4\u9636\u6bb5\u3001\u9a8c\u8bc1\u9636\u6bb5\u3001\u90e8\u7f72\u9636\u6bb5\u3002<\/p>\n \u00b7 \u63d0\u4ea4\u9636\u6bb5\uff1a<\/strong>\u4ee3\u7801\u63d0\u4ea4 Merge Requst \u524d\u8fdb\u884c\u7f16\u8bd1\u3001\u5355\u5143\u6d4b\u8bd5\u7684\u9a8c\u8bc1\uff0c\u9632\u6b62\u7834\u574f\u4e3b\u7ebf<\/p>\n \u00b7 \u9a8c\u8bc1\u9636\u6bb5\uff1a<\/strong>\u57fa\u4e8e\u4e3b\u7ebf\u7684\u96c6\u6210\u548c\u591a\u73af\u5883\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\u9a8c\u8bc1\uff0c\u8f93\u51fa\u53ef\u90e8\u7f72\u7684\u9ad8\u8d28\u91cf\u7684\u7248\u672c\u5305<\/p>\n \u00b7 \u90e8\u7f72\u9636\u6bb5\uff1a<\/strong>\u57fa\u4e8e\u5df2\u53d1\u5e03\u7684\u7248\u672c\u5305\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883<\/p>\n 3. \u5f00\u6e90\u5de5\u5177\u96c6\u6210<\/strong>\uff1a\u5f00\u6e90\u867d\u597d\uff0c\u53ef\u4e0d\u8981\u8d2a\u676f\u54e6\uff01 \u5173\u952e\u70b92<\/strong>\uff1aMaven \u4e0e Docker \u96c6\u6210\u5b9e\u73b0\u955c\u50cf\u81ea\u52a8\u5236\u4f5c\uff0c\u6211\u4eec\u9009\u7528 Spotify \u7684 docker-maven \u63d2\u4ef6\u4e0e Dockerfile \u96c6\u6210\u5b9e\u73b0\u955c\u50cf\u7684\u81ea\u52a8\u5236\u4f5c\u548c\u7248\u672c\u5173\u8054\u3002<\/p>\n <\/p>\n \u5173\u952e\u70b93<\/strong>\uff1aSonarQube \u8d28\u91cf\u95e8\u8bbe\u7f6e\u548c\u4ee3\u7801\u8d28\u91cf\u5206\u6790<\/p>\n <\/p>\n \u5173\u952e\u70b94<\/strong>\uff1aELK \u6536\u96c6\u3001\u5206\u6790\u548c\u5c55\u793a\u65e5\u5fd7\u4fe1\u606f<\/p>\n <\/p>\n 4. \u6700\u65b0\u7684 Pipeline \u4e0e BlueOcean\uff1a<\/strong> <\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.yunweipai.com\/archives\/18218.html<\/a><\/p>\n\n
\n\u5f00\u6e90\u5de5\u5177\u94fe\u5b8c\u6574\u96c6\u6210\u548c\u8de8\u9886\u57df\u591a\u5de5\u5177\u4f7f\u7528\uff0c\u662f\u5927\u591a\u6570\u4f01\u4e1a\u671b\u800c\u5374\u6b65\u7684\u539f\u56e0\u3002\u9ad8\u6548\u8fd0\u7ef4\u793e\u533a\u7684\u4e13\u5bb6\u4eec\u57fa\u4e8e\u5b9e\u8df5\u7ecf\u9a8c\uff0c\u4e3a\u5927\u5bb6\u8d9f\u5e73\u4e86\u524d\u8def\u3002
\n\u5173\u952e\u70b91<\/strong>\uff1a\u57fa\u4e8eJenkins\u4e0eGitlab\u96c6\u6210\uff0c\u5b9e\u73b0\u63d0\u4ea4\u9a8c\u8bc1\u3002\u9700\u8981\u4f7f\u7528 Gitlab API\u3001Jenkins Gitlab \u63d2\u4ef6\u3001Job\u6df1\u5ea6\u914d\u7f6e\u5b9e\u73b0\u5b8c\u7f8e\u96c6\u6210
\n<\/p>\n
\n\u5728\u6848\u4f8b\u4e2d\uff0c\u6211\u4eec\u9009\u62e9\u4f7f\u7528 Jenkins 2.0 \u4e2d\u5168\u65b0\u7684 Pipeline \u548c BlueOcean \u6765\u5b9e\u73b0\u548c\u53ef\u662f\u6574\u4e2a\u6d41\u6c34\u7ebf\uff0c\u6574\u4e2a\u8fc7\u7a0b\u4e00\u89c8\u65e0\u4f59\u3002<\/p>\n\n