- Follow instructions to set up your postgres database on GCP.
- Create database tables by running commands in schema directory in your postgres database. See this detailed instruction on how to connect to your database. Our recommended way is to use a Cloud SQL Auth proxy, please see this instruction.
- Deploy catalog server on GCP following this instruction. This run would fail due to that you haven't set up related environment variables and connection to postgres database.
- Set up connection from your launched cloud run instance to your postgres database following this instruction.
- Set up environment variables that are required in
pkg/db
in the cloud run instance you have just launched following this instruction. That includesDB_HOST
,DB_PORT
,DB_USERNAME
,DB_PWD
,DB_NAME
. See pkg/db/db.go's comments for more details about these variables. - Change
CLOUD_RUN_URL
in both query.html, update.html to the URL of your launched cloud run instance. - The catalog server should be running after all stpes above.