commit | e3766d1da38af1d7c04941413b2e1d5ef4253ca1 | [log] [tgz] |
---|---|---|
author | Cindy Lin <xcl@google.com> | Thu Jan 19 21:46:30 2023 |
committer | Cindy Lin <xcl@google.com> | Mon Jan 23 16:38:54 2023 |
tree | 3f41afb1d6cf9ce0f029e57dd7c6bbd15c64cf5e | |
parent | afcb2fc9fd18a870f22a4e718d3de13e127d0a20 [diff] |
README: Update to include deployment and connection steps Include steps for the current manual deployment and steps for connecting to the database to verify changes. BUG=b:265977912 TEST=None Change-Id: Ieb4be5dc0c3651195404c691de1c7cf32c1fd2f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/build/prebuilts-cloud/+/4180022 Reviewed-by: Nikhil Gumidelli <nikhilgm@google.com> Tested-by: Cindy Lin <xcl@google.com>
This repo houses all the GCP code for the chromeos-prebuilts
project.
We have two Cloud SQL instances:
prebuilts
- the production instanceprebuilts-staging
- the staging instanceEach instance currently contains a lookup_service
database for the project.
To manually deploy changes:
cloudsql-manual-deployments
bucket.IMPORT
.lookup_service
as the database destination.Import
and wait a few minutes for the import to complete.The following steps can be used to connect to the database and verify deployments and/or query data:
cloudsql-connection
instance../cloud_sql_proxy -instances=chromeos-prebuilts:us-central1:prebuilts-staging=tcp:5432
.psql "host=127.0.0.1 port=5432 sslmode=disable dbname=lookup_service user=postgres"
.