Quickstart
Create a CSR from Github
https://cloud.google.com/source-repositories/docs/adding-repositories-as-remotes
admin_super@cloudshell:~$ mkdir traffic admin_super@cloudshell:~$ cd traffic admin_super@cloudshell:~/traffic$ gcloud config set project traffic-os Updated property [core/project]. admin_super@cloudshell:~/traffic (traffic-os)$ git clone https://github.com/cloud-quickstart/reference-architecture.git Cloning into 'reference-architecture'... remote: Enumerating objects: 277, done. remote: Counting objects: 100% (277/277), done. remote: Compressing objects: 100% (163/163), done. remote: Total 277 (delta 82), reused 217 (delta 43), pack-reused 0 Receiving objects: 100% (277/277), 52.98 KiB | 3.78 MiB/s, done. Resolving deltas: 100% (82/82), done.admin_super@cloudshell:~/traffic/reference-architecture (traffic-os)$ git config --global credential.'https://source.developers.google.com'.helper gcloud.sh admin_super@cloudshell:~/traffic/reference-architecture (traffic-os)$ gcloud source repos create reference-architecture Created [reference-architecture]. WARNING: You may be billed for this repository. See https://cloud.google.com/source-repositories/docs/pricing for details.admin_super@cloudshell:~/traffic/reference-architecture (traffic-os)$ git remote add google https://source.developers.google.com/p/traffic-os/r/reference-architectureadmin_super@cloudshell:~/traffic/reference-architecture (traffic-os)$ git push google main Enumerating objects: 277, done. Counting objects: 100% (277/277), done. Delta compression using up to 4 threads Compressing objects: 100% (124/124), done. Writing objects: 100% (277/277), 52.98 KiB | 52.98 MiB/s, done. Total 277 (delta 82), reused 277 (delta 82), pack-reused 0 remote: Resolving deltas: 100% (82/82) To https://source.developers.google.com/p/traffic-os/r/reference-architecture * [new branch] main -> main CSR repo now populated from github https://source.cloud.google.com/traffic-os/reference-architecture/+/main:
Enable cloud run, cloud run admin, container registry api
List enabled services michael@cloudshell:~ (biometric-sbx-ns)$ gcloud services list --enabled --project biometric-sbx-ns NAME: bigquery.googleapis.com TITLE: BigQuery API NAME: bigquerymigration.googleapis.com TITLE: BigQuery Migration API NAME: bigquerystorage.googleapis.com TITLE: BigQuery Storage API NAME: cloudapis.googleapis.com TITLE: Google Cloud APIs NAME: clouddebugger.googleapis.com TITLE: Cloud Debugger API NAME: cloudtrace.googleapis.com TITLE: Cloud Trace API NAME: datastore.googleapis.com TITLE: Cloud Datastore API NAME: logging.googleapis.com TITLE: Cloud Logging API NAME: monitoring.googleapis.com TITLE: Cloud Monitoring API NAME: servicemanagement.googleapis.com TITLE: Service Management API NAME: serviceusage.googleapis.com TITLE: Service Usage API NAME: sql-component.googleapis.com TITLE: Cloud SQL NAME: storage-api.googleapis.com TITLE: Google Cloud Storage JSON API NAME: storage-component.googleapis.com TITLE: Cloud Storage NAME: storage.googleapis.com TITLE: Cloud Storage API enable services michael@cloudshell:~ (biometric-sbx-ns)$ gcloud services enable containerregistry.googleapis.com Operation "operations/acf.p2-586857881184-a09c7d55-6e5b-4cf7-a588-672c9a18281d" finished successfully. michael@cloudshell:~ (biometric-sbx-ns)$ gcloud services enable run.googleapis.com Operation "operations/acf.p2-586857881184-e54d6069-b4d5-4fad-863d-6d588b8240c4" finished successfully. I guessed but we can get the list from michael@cloudshell:~ (biometric-sbx-ns)$ gcloud services list --available | grep run NAME: run.googleapis.com NAME: runtimeconfig.googleapis.com ERROR: (gcloud.services.list) HttpError accessing <https://serviceusage.googleapis.com/v1/projects/biometric-sbx-ns/services?alt=json&pageToken=EkkKR3R5cGUuZ29vZ2xlYXBpcy5jb20vZ29vZ2xlLmFwaS5zZXJ2aWNlbWFuYWd......akl1ZW5KU2JqWmFKbW8zUm1KQ1FtSk9hbm8tV2pOR2NrSkxfX2hENENpRWpRbVZwYkFzck5sQUFXZ3NKRy1oY2ZNd0RIYXdRQTJETDY2ZW1BZz09>: response: <{'vary': 'Origin, X-Origin, Referer', 'content-type': 'application/json; charset=UTF-8', 'content-encoding': 'gzip', 'date': 'Sun, 10 Apr 2022 13:32:16 GMT', 'server': 'ESF', 'cache-control': 'private', 'x-xss-protection': '0', 'x-frame-options': 'SAMEORIGIN', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'status': 429}>, content <{ "error": { "code": 429, "message": "The metric quota for serviceusage.googleapis.com/list_available_requests is exhausted.\nHelp Token: Ae-...jNHi", "status": "RESOURCE_EXHAUSTED", "details": [ { "@type": "type.googleapis.com/google.rpc.PreconditionFailure", "violations": [ { "type": "googleapis.com", "subject": "?error_code=900021&metric=serviceusage.googleapis.com/list_available_requests" } ] }, { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "API_SHARED_QUOTA_EXHAUSTED", "domain": "serviceusage.googleapis.com", "metadata": { "metric": "serviceusage.googleapis.com/list_available_requests" } } ] } } > This may be due to network connectivity issues. Please check your network settings, and the status of the service you are trying to reach. # sample container us-docker.pkg.dev/cloudrun/container/hello