任务详情
项目需求目前有一个后端flask app,需要部署到aws,希望能提供一套CI-CD解决方案并实际搭建,能够解决如下问题:1. 明确该app需要的python dependency pkg (开发的时候一直用global,导致dependency混乱)2. 利用docker 技术build image3. Deploy image to aws4. 服务部署之后客户端mobile app能够正常调用flask 后端api5. 提供一套ci-cd 解决方案,当github master分支有更新的时候能自动: 1. Build image 2. Deploy image to prod server 3. switch traffic from server with previous version image to server with current version image 4. Trigger alarm when build/run image error 5. Flask app的主要api错误率/延迟过高能触发警报 6. 当前版本出现问题可以方便回滚 7. 服务器能根据流量自动扩容/缩容6. 同时提供测试ci-cd pipeline,可以选择手动选择github dev分支build image,deploy image 到测试 server7. 提供详细的技术文档解释ci-cd 流水线运作方式, 相关的命令,环境配置等等, 以及每个阶段可能出现的问题并如何修复问题