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
Build Python App with Serverless 费良宏 …… 不支持 “Long Run” 的任务 • 性能 …… “冷启动” 带来的响应延迟 • 资源限制 …… 并发、I/O、内存、程序包大小等等 • 监控与调试 …… 需要新的IDE、APM、DevOps、分析器等工具 • 缺少特定的硬件支持 ……只有通用的计算环境,缺如GPU、FPGA等支持 • 标准化 …… 可移植性的问题 “冷启动” 带来的响应延迟 1 10 100 1000 可以帮助构建本机依赖 https://aws.amazon.com/serverless/sam SAM CLI sam init --name my-function --runtime python cd my-function/ sam build sam package --s3-bucket my-packages-bucket \ --output-template-file packaged0 码力 | 35 页 | 7.81 MB | 1 年前3
Python in Azure Functions 基于Python的Azure Functions实践 赵健in Azure 创建&管理 Azure 云端资源 Azure SDK for Python Ansible Azure Module 支持 Python 的 Dev Tools Azure DevOps Azure NoteBook 运行 Python 代码 VM App Service Functions AKS ACI Azure Batch Notebook 连接 & 集成 Azure服务 in Azure 创建&管理 Azure 云端资源 Azure SDK for Python Ansible Azure Module 支持 Python 的 Dev Tools Azure DevOps Azure NoteBook 运行 Python 代码 VM App Service Functions AKS ACI Azure Batch Notebook 连接 & 集成 Azure服务0 码力 | 28 页 | 12.57 MB | 1 年前3
Python3 基础教程 - 廖雪峰directory 报错的意思就是,无法打开 hello.py 这个文件,因为文件不存在。这个 时候,就要检查一下当前目录下是否有这个文件了。如果 hello.py 存放 在另外一个目录下,要首先用 cd 命令切换当前目录: 命令行模式和 Python 交互模式 Python3 基础教程【完整版】 http://www.yeayee.com/ 22/531 请注意区分命令行模式和 "Bob"}' >>> print(json.loads(json_str, object_hook=dict2student)) <__main__.Student object at 0x10cd3c190> 打印出的是反序列化的 Student 实例对象。 小结 Python语言特定的序列化模块是 pickle,但如果要把序列化搞得更通用、 更符合 Web 标准,就可以使用 json 然后,假定我们要开发一个新的项目,需要一套独立的 Python 运行环 境,可以这么做: 第一步,创建目录: Mac:~ michael$ mkdir myproject Mac:~ michael$ cd myproject/ Mac:myproject michael$ 第二步,创建一个独立的 Python 运行环境,命名为 venv: Mac:myproject michael$ virtualenv0 码力 | 531 页 | 5.15 MB | 1 年前3
3 在AWS部署与发布你面向全球的Python Serverless应用 谢洪恩decompose for agility 2002 microservices + 2 pizza teams Full ownership Full accountability “DevOps” Focused innovation Two-pizza teams When the impact of change is small, release velocity can increase0 码力 | 53 页 | 24.15 MB | 1 年前3
PyArmor Documentation v6.2.7there is only last line: __pyarmor__(__name__, __file__, b'\x0a\x02...') Run the obfuscated script: cd dist python myscript.py By default, only the *.py in the same path as the entry script are obfuscated dist/pytransform/ Run obfuscated script with new license, It will report error after Jan. 1, 2019: cd dist python myscript.py Generate license to bind obfuscated scripts to fixed machine, first get hardware code-002 Run obfuscated script with new license: cp licenses/code-002/license.lic dist/pytransform/ cd dist/ python myscript.py Note Before v5.7.0, the default license.lic locates in the path dist other0 码力 | 159 页 | 123.91 KB | 1 年前3
PyArmor Documentation v6.3.1there is only last line: __pyarmor__(__name__, __file__, b'\x0a\x02...') Run the obfuscated script: cd dist python myscript.py By default, only the *.py in the same path as the entry script are obfuscated dist/pytransform/ Run obfuscated script with new license, It will report error after Jan. 1, 2019: cd dist python myscript.py Generate license to bind obfuscated scripts to fixed machine, first get hardware code-002 Run obfuscated script with new license: cp licenses/code-002/license.lic dist/pytransform/ cd dist/ python myscript.py Note Before v5.7.0, the default license.lic locates in the path dist other0 码力 | 161 页 | 124.89 KB | 1 年前3
PyArmor Documentation v5.6.5there is only last line: __pyarmor__(__name__, __file__, b'\x0a\x02...') Run the obfuscated script: cd dist python myscript.py By default, only the *.py in the same path as the entry script are obfuscated cense.lic dist/ Run obfuscated script with new license, It will report error after Jan. 1, 2019: cd dist python myscript.py Generate license to bind obfuscated scripts to fixed machine, first get hardware "20:c1:d2:2f:a0:96" code-002 Run obfuscated script with new license: cp licenses/code-002/license.lic dist/ cd dist/ python myscript.py Extending License Type It’s easy to extend any other licese type for obfuscated0 码力 | 103 页 | 86.97 KB | 1 年前3
PyArmor Documentation v5.5.7there is only last line: __pyarmor__(__name__, __file__, b'\x0a\x02...') Run the obfuscated script: cd dist python myscript.py By default, only the *.py in the same path as the entry script are obfuscated cense.lic dist/ Run obfuscated script with new license, It will report error after Jan. 1, 2019: cd dist python myscript.py Generate license to bind obfuscated scripts to fixed machine, first get hardware "20:c1:d2:2f:a0:96" code-002 Run obfuscated script with new license: cp licenses/code-002/license.lic dist/ cd dist/ python myscript.py Extending License Type It’s easy to extend any other licese type for obfuscated0 码力 | 104 页 | 85.70 KB | 1 年前3
PyArmor Documentation v5.6.0there is only last line: __pyarmor__(__name__, __file__, b'\x0a\x02...') Run the obfuscated script: cd dist python myscript.py By default, only the *.py in the same path as the entry script are obfuscated cense.lic dist/ Run obfuscated script with new license, It will report error after Jan. 1, 2019: cd dist python myscript.py Generate license to bind obfuscated scripts to fixed machine, first get hardware "20:c1:d2:2f:a0:96" code-002 Run obfuscated script with new license: cp licenses/code-002/license.lic dist/ cd dist/ python myscript.py Extending License Type It’s easy to extend any other licese type for obfuscated0 码力 | 103 页 | 85.82 KB | 1 年前3
共 374 条
- 1
- 2
- 3
- 4
- 5
- 6
- 38













