Repository navigation
Free-tier dev deployment: external MySQL, scale-to-zero Cloud Run, frontend Dockerfile - #11
Closed
pragmaticbear wants to merge 1 commit into
Closed
pragmaticbear wants to merge 1 commit into
pragmaticbear wants to merge 1 commit into
Conversation
…n, frontend Dockerfile - Replace the Cloud SQL module with db_host/db_port/db_name/db_user variables pointing at an external MySQL (Aiven free tier); the password lives only in the Secret Manager secret db-password, added out of band - JDBC URL sets sessionVariables=sql_require_primary_key=0 so Liquibase's DATABASECHANGELOG (no primary key) can be created on Aiven - Cloud Run: min 0 / max 2 instances, 1 vCPU, 2Gi backend / 512Mi UI - Backend runs with AUTH_ENABLED=false and placeholder Google client values so the auth.google.* properties resolve; Redis feature gate off - UI gets NEXT_PUBLIC_* URLs for the backend and app - Add frontend Dockerfile and .dockerignore (repo had none); enable the Pub/Sub API in apis.tf; ignore *.tfvars
pragmaticbear
requested review from
anantbhargava-lgtm,
prashantgarg-coder,
thebarnaby and
xinyij-goo
as code owners
October 20, 2026 21:44
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Author
|
Opened by mistake; this work is not intended as an upstream contribution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Turns
terraform/quickstartinto a minimal-cost dev deployment and adds the missing frontend container build.db_host/db_port/db_name/db_uservariables pointing at an external MySQL (deployed against Aiven's free tier). The password lives only in the Secret Manager secretdb-password; Terraform creates a placeholder version withignore_changesand the real value is added out of band withgcloud secrets versions add.sessionVariables=sql_require_primary_key=0. Managed MySQL providers that enforcesql_require_primary_keyreject Liquibase'sDATABASECHANGELOGtable, which has no primary key. The earlier private-IP URL was also empty because the SQL module never configured a private network.AUTH_ENABLED=falsewith placeholderGOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRETso theauth.google.*placeholders resolve at startup;FEATURE_GATE_REDIS_ENABLED=false.NEXT_PUBLIC_API_BASE_URL/NEXT_PUBLIC_APP_BASE_URLderived from the project number;NEXT_PUBLIC_AUTH_ENABLED=false.NEXT_PUBLIC_*values are build args because Next.js inlines them at build time.pubsub.googleapis.comadded toapis.tf;*.tfvarsgitignored.Why
Stand up a dev instance that stays inside free tiers. Cloud SQL has no free tier, and the quickstart defaults (Enterprise Plus, regional HA, 16Gi always-on Cloud Run) are production-sized.
Reviewer notes
allow_unauthenticatedwith Google SSO off, same exposure as the upstream quickstart but without SSO. The commentedGOOGLE_CLIENT_*blocks still work for enabling it.sslMode=REQUIREDencrypts but does not verify the server certificate.VERIFY_CAneeds the provider's CA bundled into the image.crane.🤖 Generated with Claude Code