<aside> 💬 Discussion on reddit
</aside>
Sept 05, 2021 Rahul Sharma
In this tutorial, we will create a fully dockerized django app locally (connected to a remote Cloud SQL postgres instance) and deploy it to Cloud Run with CI/CD, credentials management, and static file hosting.
I recently had to deploy a django app on GCP and there were quite a few options:
Coming from AWS, I found App Engine to be the closest to deploying an API service as it's similar to how Beanstalk works. I also considered Cloud Functions (similar to AWS Lambda) but my use case was slightly complex with the need of defining models, performing migrations, and so on.
GKE was another option but I wanted to focus on launching the app first before worrying about K8s artifacts. It finally came down to App Engine and Cloud Run.
<aside> 💡 Although both have a lot of overlap in terms of features, it's the container aspect of writing and running applications that made me select Cloud Run in the end.
</aside>