 03 小罗 python与devopsPython与Devops Law 目录 CONTENTS Devops技术栈 Devops构建示例 Python工具二次开发 Devops DevOps 是一个完整的面向IT运维的工作流,以 IT 自动化以及持续集成(CI)、持续部署(CD)为 基础,来优化程式开发、测试、系统运维等所有 环节 构建Devops之前面临的问题 Devops 过程包含,代码构建打包、测试、部署、发布、监控、回滚等等一个 过程包含,代码构建打包、测试、部署、发布、监控、回滚等等一个 项目的闭环、快速构建以上过程。 构建Devops常用软件技术栈 •代码管理(SCM):GitHub、GitLab、SubVersion •构建工具:Ant、maven •自动部署:ansible、saltstack、puppet •持续集成(CI):Jenkins •配置管理:Ansible、Chef、Puppet、SaltStack •容器:Docker、kvm sul •脚本语言:python、ruby、shell •日志管理:ELK、Logentries •系统监控:zabbix、prometheus 前东家关于Devops的一些实践 Devops传统方式下构建示例 Devops发布流程需要考虑几个问题 1、发布什么应用,发布到哪里(CMDB) 2、发布人员是否有权限(RBAC) 3、发布过程是否有认证,授权发布(流程审计) 4、发0 码力 | 22 页 | 1.64 MB | 1 年前3 03 小罗 python与devopsPython与Devops Law 目录 CONTENTS Devops技术栈 Devops构建示例 Python工具二次开发 Devops DevOps 是一个完整的面向IT运维的工作流,以 IT 自动化以及持续集成(CI)、持续部署(CD)为 基础,来优化程式开发、测试、系统运维等所有 环节 构建Devops之前面临的问题 Devops 过程包含,代码构建打包、测试、部署、发布、监控、回滚等等一个 过程包含,代码构建打包、测试、部署、发布、监控、回滚等等一个 项目的闭环、快速构建以上过程。 构建Devops常用软件技术栈 •代码管理(SCM):GitHub、GitLab、SubVersion •构建工具:Ant、maven •自动部署:ansible、saltstack、puppet •持续集成(CI):Jenkins •配置管理:Ansible、Chef、Puppet、SaltStack •容器:Docker、kvm sul •脚本语言:python、ruby、shell •日志管理:ELK、Logentries •系统监控:zabbix、prometheus 前东家关于Devops的一些实践 Devops传统方式下构建示例 Devops发布流程需要考虑几个问题 1、发布什么应用,发布到哪里(CMDB) 2、发布人员是否有权限(RBAC) 3、发布过程是否有认证,授权发布(流程审计) 4、发0 码力 | 22 页 | 1.64 MB | 1 年前3
 Golang to the rescue - Saving DevOps from TLS turmoilGolang to the rescue: Saving DevOps from TLS turmoil GopherCon 2017 Lightning Talk Chris Short Manager of DevOps at Bankrate Introduction Chris Short Manager of DevOps at Bankrate (http://www.bankrate organization/resources/culture-change) DevOpsDays (https://www.devopsdays.org/) Speaker and Organizer DevOps'ish (https://devopsish.com/) chrisshort.net (https://chrisshort.net) @ChrisShort (https://twitter was derived from an opensource.com article I wrote in April 2017: Golang to the rescue: Saving DevOps from TLS turmoil (https://opensource.com/article/17/4/testing-certi�cate-chains-34-line-go-program)0 码力 | 20 页 | 6.28 MB | 1 年前3 Golang to the rescue - Saving DevOps from TLS turmoilGolang to the rescue: Saving DevOps from TLS turmoil GopherCon 2017 Lightning Talk Chris Short Manager of DevOps at Bankrate Introduction Chris Short Manager of DevOps at Bankrate (http://www.bankrate organization/resources/culture-change) DevOpsDays (https://www.devopsdays.org/) Speaker and Organizer DevOps'ish (https://devopsish.com/) chrisshort.net (https://chrisshort.net) @ChrisShort (https://twitter was derived from an opensource.com article I wrote in April 2017: Golang to the rescue: Saving DevOps from TLS turmoil (https://opensource.com/article/17/4/testing-certi�cate-chains-34-line-go-program)0 码力 | 20 页 | 6.28 MB | 1 年前3
 202205 MeterSphere:一站式开源持续测试平台
⼤多数组织⽆法⽴即区分出琐碎任务的测试失败和必须⽴即解决的关键业务的测试 失败。 数据来源:《 Enterprise Continuous Testing; Transforming Testing for Agile and DevOps 》报告 碎⽚化的测试⼯具是阻碍持续测试的关键因素之⼀ 测试管理 测试框架 接⼝测试 性能测试 UI 及移动测试 ⽆规范✗ 不兼容✗ ⽆联动✗ 协同难✗ 1 2 持续测试的兴起与现状 性能测试报告 依据三个关键能⼒打造⼀站式持续测试平台 - 让测试不再成为持续交付的瓶颈 - MeterSphere ⼀站式开源持续测试平台 敏捷流程 持续监控 持续开发 团队协作、融⼊ DevOps 持续集成 持续部署 测试跟踪 测试计划、⽤例管理、测试报告 接⼝测试 接⼝管理、接⼝ Mock、接⼝⾃动化 性能测试 兼容 JMeter、云端压测、实时展示 UI 测试(X-Pack) ⼀、测试跟踪 全场景的测试跟踪能⼒ ⼆、接⼝测试 灵活的接⼝⾃动化能⼒ 三、UI 测试 ⾃然语⾔的 UI ⾃动化测试 四、性能测试 ⼤规模的性能测试能⼒ 五、团队协作、融⼊ DevOps 融⼊业务交付线能⼒ 注:测试成熟度模型参考《持续测试⽩⽪书》。⽩⽪书中定义了测试成熟度的四个等级: Level 1:⼿动为主;Level 2:初步尝试;Level 3:实践阶段;Level0 码力 | 40 页 | 11.03 MB | 1 年前3 202205 MeterSphere:一站式开源持续测试平台
⼤多数组织⽆法⽴即区分出琐碎任务的测试失败和必须⽴即解决的关键业务的测试 失败。 数据来源:《 Enterprise Continuous Testing; Transforming Testing for Agile and DevOps 》报告 碎⽚化的测试⼯具是阻碍持续测试的关键因素之⼀ 测试管理 测试框架 接⼝测试 性能测试 UI 及移动测试 ⽆规范✗ 不兼容✗ ⽆联动✗ 协同难✗ 1 2 持续测试的兴起与现状 性能测试报告 依据三个关键能⼒打造⼀站式持续测试平台 - 让测试不再成为持续交付的瓶颈 - MeterSphere ⼀站式开源持续测试平台 敏捷流程 持续监控 持续开发 团队协作、融⼊ DevOps 持续集成 持续部署 测试跟踪 测试计划、⽤例管理、测试报告 接⼝测试 接⼝管理、接⼝ Mock、接⼝⾃动化 性能测试 兼容 JMeter、云端压测、实时展示 UI 测试(X-Pack) ⼀、测试跟踪 全场景的测试跟踪能⼒ ⼆、接⼝测试 灵活的接⼝⾃动化能⼒ 三、UI 测试 ⾃然语⾔的 UI ⾃动化测试 四、性能测试 ⼤规模的性能测试能⼒ 五、团队协作、融⼊ DevOps 融⼊业务交付线能⼒ 注:测试成熟度模型参考《持续测试⽩⽪书》。⽩⽪书中定义了测试成熟度的四个等级: Level 1:⼿动为主;Level 2:初步尝试;Level 3:实践阶段;Level0 码力 | 40 页 | 11.03 MB | 1 年前3
 202309 MeterSphere ⼀站式开源持续测试平台⽂件管理 取数 MeterSphere 提供的数据能⼒ 其他依赖⽂件 依据三个关键能⼒打造⼀站式持续测试平台 - 让测试成为⼀种能⼒,为不同的团队进⾏赋能 - 持续 测试 团队协作、融⼊ DevOps 测试左移 开发参与测试 测试团队 运维参与测试 测试管理 测试计划、⽤例管理、测试报告 接⼝测试 接⼝管理、接⼝ Mock、接⼝⾃动化 性能测试 兼容 JMeter、云端压测、实时展示 ⼀、测试管理 全场景的测试跟踪能⼒ ⼆、接⼝测试 灵活的接⼝⾃动化能⼒ 三、UI 测试 ⾃然语⾔的 UI ⾃动化测试 四、性能测试 ⼤规模的性能测试能⼒ 五、团队协作、融⼊ DevOps 融⼊业务交付线能⼒ 注:测试成熟度模型参考《持续测试⽩⽪书》。⽩⽪书中定义了测试成熟度的四个等级: Level 1:⼿动为主;Level 2:初步尝试;Level 3:实践阶段;Level 适合团队,⽅便度量和集成; 缺点: 闭源商业化平台价格较贵,开源 平台的稳定性⽋佳和功能较少; 场景: 适合团队和集成 DevOps 等。 优势: 需求满⾜度⾼,⾃主可控; 缺点: 投⼊产出⽐低,研发⼈⼒成本级 别⾼; 场景: 适合团队和集成 DevOps。 直接导⼊ HAR 抓包导⼊ 浏览器抓包 直接编写接⼝ IDEA 开发⼯具上传 接⼝测试 统⼀的接⼝定义与维护管理0 码力 | 45 页 | 4.65 MB | 1 年前3 202309 MeterSphere ⼀站式开源持续测试平台⽂件管理 取数 MeterSphere 提供的数据能⼒ 其他依赖⽂件 依据三个关键能⼒打造⼀站式持续测试平台 - 让测试成为⼀种能⼒,为不同的团队进⾏赋能 - 持续 测试 团队协作、融⼊ DevOps 测试左移 开发参与测试 测试团队 运维参与测试 测试管理 测试计划、⽤例管理、测试报告 接⼝测试 接⼝管理、接⼝ Mock、接⼝⾃动化 性能测试 兼容 JMeter、云端压测、实时展示 ⼀、测试管理 全场景的测试跟踪能⼒ ⼆、接⼝测试 灵活的接⼝⾃动化能⼒ 三、UI 测试 ⾃然语⾔的 UI ⾃动化测试 四、性能测试 ⼤规模的性能测试能⼒ 五、团队协作、融⼊ DevOps 融⼊业务交付线能⼒ 注:测试成熟度模型参考《持续测试⽩⽪书》。⽩⽪书中定义了测试成熟度的四个等级: Level 1:⼿动为主;Level 2:初步尝试;Level 3:实践阶段;Level 适合团队,⽅便度量和集成; 缺点: 闭源商业化平台价格较贵,开源 平台的稳定性⽋佳和功能较少; 场景: 适合团队和集成 DevOps 等。 优势: 需求满⾜度⾼,⾃主可控; 缺点: 投⼊产出⽐低,研发⼈⼒成本级 别⾼; 场景: 适合团队和集成 DevOps。 直接导⼊ HAR 抓包导⼊ 浏览器抓包 直接编写接⼝ IDEA 开发⼯具上传 接⼝测试 统⼀的接⼝定义与维护管理0 码力 | 45 页 | 4.65 MB | 1 年前3
 202203 MeterSphere:一站式开源持续测试平台
依据三个关键能⼒打造⼀站式持续测试平台 - 让测试成为⼀种能⼒,为不同的团队进⾏赋能 - MeterSphere ⼀站式开源持续测试平台 敏捷流程 持续监控 持续开发 团队协作、融⼊ DevOps 持续集成 持续部署 测试跟踪 测试计划、⽤例管理、测试报告 接⼝测试 接⼝管理、接⼝ Mock、接⼝⾃动化 性能测试 兼容 JMeter、云端压测、实时展示 UI 测试(X-Pack) ⼀、测试跟踪 全场景的测试跟踪能⼒ ⼆、接⼝测试 灵活的接⼝⾃动化能⼒ 三、UI 测试 ⾃然语⾔的 UI ⾃动化测试 四、性能测试 ⼤规模的性能测试能⼒ 五、团队协作、融⼊ DevOps 融⼊业务交付线能⼒ 注:测试成熟度模型参考《持续测试⽩⽪书》。⽩⽪书中定义了测试成熟度的四个等级: Level 1:⼿动为主;Level 2:初步尝试;Level 3:实践阶段;Level 适合团队,⽅便度量和集成; 缺点: 闭源商业化平台价格较贵,开源 平台的稳定性⽋佳和功能较少; 场景: 适合团队和集成 DevOps 等。 优势: 需求满⾜度⾼,⾃主可控; 缺点: 投⼊产出⽐低,研发⼈⼒成本级 别⾼; 场景: 适合团队和集成 DevOps。 - 解决现有接⼝测试的问题,覆盖多种接⼝协议,⾃由组合接⼝⾃动化测试场景- MeterSphere 灵活的接⼝场景编排设计0 码力 | 41 页 | 11.71 MB | 1 年前3 202203 MeterSphere:一站式开源持续测试平台
依据三个关键能⼒打造⼀站式持续测试平台 - 让测试成为⼀种能⼒,为不同的团队进⾏赋能 - MeterSphere ⼀站式开源持续测试平台 敏捷流程 持续监控 持续开发 团队协作、融⼊ DevOps 持续集成 持续部署 测试跟踪 测试计划、⽤例管理、测试报告 接⼝测试 接⼝管理、接⼝ Mock、接⼝⾃动化 性能测试 兼容 JMeter、云端压测、实时展示 UI 测试(X-Pack) ⼀、测试跟踪 全场景的测试跟踪能⼒ ⼆、接⼝测试 灵活的接⼝⾃动化能⼒ 三、UI 测试 ⾃然语⾔的 UI ⾃动化测试 四、性能测试 ⼤规模的性能测试能⼒ 五、团队协作、融⼊ DevOps 融⼊业务交付线能⼒ 注:测试成熟度模型参考《持续测试⽩⽪书》。⽩⽪书中定义了测试成熟度的四个等级: Level 1:⼿动为主;Level 2:初步尝试;Level 3:实践阶段;Level 适合团队,⽅便度量和集成; 缺点: 闭源商业化平台价格较贵,开源 平台的稳定性⽋佳和功能较少; 场景: 适合团队和集成 DevOps 等。 优势: 需求满⾜度⾼,⾃主可控; 缺点: 投⼊产出⽐低,研发⼈⼒成本级 别⾼; 场景: 适合团队和集成 DevOps。 - 解决现有接⼝测试的问题,覆盖多种接⼝协议,⾃由组合接⼝⾃动化测试场景- MeterSphere 灵活的接⼝场景编排设计0 码力 | 41 页 | 11.71 MB | 1 年前3
 Conan 1.11 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 12.28 Microsoft’s Azure DevOps (TFS, VSTS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 13 Howtos 193 13 the git repository and install its requirements: $ git clone https://github.com/conan-io/conan.git $ cd conan $ pip install -r conans/requirements.txt Create a script to run Conan and add it to your PATH com/conan-community/poco-md5-example.git 1. Let’s create a folder for our project: $ mkdir poco-md5-example $ cd poco-md5-example 2. Create the following source file inside this folder. This will be the source file0 码力 | 490 页 | 4.05 MB | 1 年前3 Conan 1.11 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 12.28 Microsoft’s Azure DevOps (TFS, VSTS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 13 Howtos 193 13 the git repository and install its requirements: $ git clone https://github.com/conan-io/conan.git $ cd conan $ pip install -r conans/requirements.txt Create a script to run Conan and add it to your PATH com/conan-community/poco-md5-example.git 1. Let’s create a folder for our project: $ mkdir poco-md5-example $ cd poco-md5-example 2. Create the following source file inside this folder. This will be the source file0 码力 | 490 页 | 4.05 MB | 1 年前3
 Conan 1.15 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 12.28 Microsoft’s Azure DevOps (TFS, VSTS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 12.29 Emscripten the git repository and install its requirements: $ git clone https://github.com/conan-io/conan.git $ cd conan $ pip install -r conans/requirements.txt Create a script to run Conan and add it to your PATH creation of folder an sources with this command: $ git clone https://github.com/conan-io/examples.git && cd examples/libraries/poco/md5 1. Create the following source file inside a folder. This will be the0 码力 | 540 页 | 4.22 MB | 1 年前3 Conan 1.15 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 12.28 Microsoft’s Azure DevOps (TFS, VSTS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 12.29 Emscripten the git repository and install its requirements: $ git clone https://github.com/conan-io/conan.git $ cd conan $ pip install -r conans/requirements.txt Create a script to run Conan and add it to your PATH creation of folder an sources with this command: $ git clone https://github.com/conan-io/examples.git && cd examples/libraries/poco/md5 1. Create the following source file inside a folder. This will be the0 码力 | 540 页 | 4.22 MB | 1 年前3
 Conan 1.14 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 12.28 Microsoft’s Azure DevOps (TFS, VSTS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 13 Howtos 205 13 the git repository and install its requirements: $ git clone https://github.com/conan-io/conan.git $ cd conan $ pip install -r conans/requirements.txt Create a script to run Conan and add it to your PATH creation of folder an sources with this command: $ git clone https://github.com/conan-io/examples.git && cd examples/libraries/poco/md5 1. Create the following source file inside a folder. This will be the0 码力 | 528 页 | 4.17 MB | 1 年前3 Conan 1.14 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 12.28 Microsoft’s Azure DevOps (TFS, VSTS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 13 Howtos 205 13 the git repository and install its requirements: $ git clone https://github.com/conan-io/conan.git $ cd conan $ pip install -r conans/requirements.txt Create a script to run Conan and add it to your PATH creation of folder an sources with this command: $ git clone https://github.com/conan-io/examples.git && cd examples/libraries/poco/md5 1. Create the following source file inside a folder. This will be the0 码力 | 528 页 | 4.17 MB | 1 年前3
 Conan 2.5 Documentationimportant Conan features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 5 Devops guide 143 5.1 Using ConanCenter packages in production environments . . . . . . . . . . . . . . be more structured and thorough so that it can be used more easily for automation, especially in CI/CD systems. See also: • Commands reference 2.7 New deployers Conan 2 implements “deployers”, which installed in the system. You can do it with: $ git clone https://github.com/conan-io/conan conan_src $ cd conan_src $ git checkout develop2 # or to the specific tag you want to $ pip install -e . $ python0 码力 | 769 页 | 4.70 MB | 1 年前3 Conan 2.5 Documentationimportant Conan features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 5 Devops guide 143 5.1 Using ConanCenter packages in production environments . . . . . . . . . . . . . . be more structured and thorough so that it can be used more easily for automation, especially in CI/CD systems. See also: • Commands reference 2.7 New deployers Conan 2 implements “deployers”, which installed in the system. You can do it with: $ git clone https://github.com/conan-io/conan conan_src $ cd conan_src $ git checkout develop2 # or to the specific tag you want to $ pip install -e . $ python0 码力 | 769 页 | 4.70 MB | 1 年前3
 Conan 2.4 Documentationimportant Conan features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 5 Devops guide 143 5.1 Using ConanCenter packages in production environments . . . . . . . . . . . . . . be more structured and thorough so that it can be used more easily for automation, especially in CI/CD systems. See also: • Commands reference 2.7 New deployers Conan 2 implements “deployers”, which installed in the system. You can do it with: $ git clone https://github.com/conan-io/conan conan_src $ cd conan_src $ git checkout develop2 # or to the specific tag you want to $ pip install -e . $ python0 码力 | 769 页 | 4.69 MB | 1 年前3 Conan 2.4 Documentationimportant Conan features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 5 Devops guide 143 5.1 Using ConanCenter packages in production environments . . . . . . . . . . . . . . be more structured and thorough so that it can be used more easily for automation, especially in CI/CD systems. See also: • Commands reference 2.7 New deployers Conan 2 implements “deployers”, which installed in the system. You can do it with: $ git clone https://github.com/conan-io/conan conan_src $ cd conan_src $ git checkout develop2 # or to the specific tag you want to $ pip install -e . $ python0 码力 | 769 页 | 4.69 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100














 
  
 