|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/serverless-python-applications-on-google-cloud/
课程评论:没有评论
课程名称:基于无服务器Docker的Python应用程序在Google Cloud上的部署 课程概述: 本课程将指导您如何在Google Cloud上使用Docker容器部署无服务器的Python应用程序。通过管理的无服务器架构运行我们的应用,可以让我们将精力集中在代码上,并在不必担心底层基础设施的情况下进行更多的部署。无服务器应用仅在实际使用时收费,这使得它们在需要时可以扩展至零个运行实例或根据需求进行扩展。无服务器架构非常适合测试各种应用创意及稳定应用的不同阶段。Cloud Run是一个管理服务,能够为您在Google Cloud上的项目解锁无服务器应用。 课程重点内容包括: - 创建基本的FastAPI web应用(使用Python) - 使用python-decouple管理FastAPI中的环境变量 - 编写基本的自动化测试,以确保我们的应用按预期工作 - 学习Dockerfile的准备与构建 - 在本地构建Docker容器 - 在本地运行自定义Docker镜像(容器) - 将代码推送到GitHub - 利用GitHub Actions执行CI/CD工作流 - 通过GitHub Actions构建并推送Docker容器到Google Cloud - 在Python应用中使用Google Cloud Secrets管理器 - 根据需要更新GitHub Actions中的Secrets - 在Google Cloud Run上持续部署我们的应用 课程在2023年2月15日进行了全面更新并发布。
Deploy a Serverless Python Application with Docker Containers and Google Cloud Run.Running our apps on managed serverless architectures allows us to focus on our code and deploy more without worrying about the underlying infrastructure. What's better, our serverless applications only cost us money when they're used this is because serverless apps can scale to 0 running instances or scale up as needed.Serverless is great for testing all kinds of app ideas as well as testing various stages of a stable app. Cloud Run is a managed service that unlocks serverless apps for your projects on Google Cloud. It's how we run this website exactly.Cloud Run is a managed Knative offering that runs on Kubernetes so if you're interested in deploying a self-managed Knative service, consider watching my course Try Knative.Here's what we're going to learn in this course:Creating a basic FastAPI web app (in Python)Implement python-decouple to manage environment variables in FastAPIWriting a basic automated test to ensure our app is working as neededPrepare and learn about a Dockerfile before building a containerBuilding a Docker container locallyRunning a custom Docker image (container) locallyPush our code to GitHubLeverage GitHub Actions to perform CI/CD workflowsUsing Github Actions to build and push our Docker container to Google CloudUse Google Cloud Secrets manager within our Python appUpdate Secrets in Github Actions as neededDeploy our app continuously on Google Cloud RunCourse was completely revamped and released on Feb 15th, 2023