...

Text file src/edge-infra.dev/pkg/f8n/devinfra/overlook/README.md

Documentation: edge-infra.dev/pkg/f8n/devinfra/overlook

     1# overlook
     2home of ghosts
     3
     4### how to run locally
     5
     6you can do this two ways:
     7
     8#### using a SA key
     9 - go to https://console.cloud.google.com/iam-admin/serviceaccounts/details/105258342117336722890/keys?project=ret-edge-dev-infra and generate a new key
    10 - it should download a json file to your machine and then point the following command to it 
    11
    12```bash
    13./cloud_sql_proxy -instances=ret-edge-dev-infra:us-east1:milestone-postgres-instance=tcp:5432 -enable_iam_login -credential_file=path/to/json.json
    14```
    15
    16#### or be a SA
    17
    18 - follow the steps here: https://cloud.google.com/sdk/gcloud/reference/auth/activate-service-account
    19 - and then run
    20```bash
    21./cloud_sql_proxy -instances=ret-edge-dev-infra:us-east1:milestone-postgres-instance=tcp:5432 -enable_iam_login
    22```
    23
    24#### connect to postgres
    25
    26in a new terminal run
    27```bash
    28psql "host=127.0.0.1 dbname=milestone-database user=overlook-iam@ret-edge-dev-infra.iam sslmode=disable"
    29```
    30
    31or start the overlook service
    32```bash
    33bazel run //cmd/overlook:overlook
    34```

View as plain text