Serverless Python Containers on Cloud Run
- Creating a basic FastAPI web app (in Python)
- Implement python-decouple to manage environment variables in FastAPI
- Writing a basic automated test to ensure our app is working as needed
- Prepare and learn about a Dockerfile before building a container
- Building a Docker container locally
- Running a custom Docker image (container) locally
- Push our code to GitHub
- Leverage GitHub Actions to perform CI/CD workflows
- Using Github Actions to build and push our Docker container to Google Cloud
- Use Google Cloud Secrets manager within our Python app
- Update Secrets in Github Actions as needed
- Deploy our app continuously on Google Cloud Run
Resources
Lessons
Welcome
2:39
Demo
12:13
Requirements
3:58
Download & Install Google Cloud CLI
9:35
Install Docker
1:42
Setup the Python Virtual Environment
4:35
Hello World with FastAPI
3:20
Environment Variables with python-decouple
8:13
Shortcut Running Commands with rav
1:35
Test Code using FastAPI and PyTest
4:50
Your First Dockerfile
8:56
The Dockerfile Entrypoint Script
7:05
Build your First Container Image
9:03
Verify Files & Build the Project Docker Container
6:35
Running your Docker Container Locally
8:53
Build & Push to Google Cloud Artifact Registry
10:47
Deploy Container to Cloud Run
9:26
Test & Build Code with GitHub Actions
16:22
Prepare GitHub Action for GCloud Service Account
8:37
Service Accounts for Github Actions
14:10
Google Cloud Secrets Manager
4:45
Verify Secrets Cloud Secrets Manager with Python
6:45
Update python-decouple with GCloud Secrets
10:18
GCloud Secrets in GitHub Actions Part 1
9:35
GCloud Secrets in GitHub Actions Part 2
8:52
Thank you and next steps
1:29