{"id":20405749,"url":"https://github.com/cloudquery/cloudrun-example","last_synced_at":"2025-03-05T02:18:25.568Z","repository":{"id":168616700,"uuid":"644367624","full_name":"cloudquery/cloudrun-example","owner":"cloudquery","description":"A reference for running CloudQuery syncs via Cloud Run","archived":false,"fork":false,"pushed_at":"2024-04-03T09:42:14.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T19:41:51.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudquery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-05-23T11:22:58.000Z","updated_at":"2023-05-23T11:23:10.000Z","dependencies_parsed_at":"2024-04-03T10:50:41.004Z","dependency_job_id":null,"html_url":"https://github.com/cloudquery/cloudrun-example","commit_stats":null,"previous_names":["cloudquery/cloudrun-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudquery%2Fcloudrun-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudquery%2Fcloudrun-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudquery%2Fcloudrun-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudquery%2Fcloudrun-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudquery","download_url":"https://codeload.github.com/cloudquery/cloudrun-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241950157,"owners_count":20047595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T05:12:53.280Z","updated_at":"2025-03-05T02:18:25.551Z","avatar_url":"https://github.com/cloudquery.png","language":"Go","readme":"# CloudQuery Cloud Run Example\n\nThis repository contains a small Docker file that starts a Web server on port 8080 for use with Cloud Run. When the server receives a request on the port, it starts a CloudQuery sync using a config file that should be mounted at `/secrets/config.yaml`.\n\nYou should also generate a CloudQuery API key and set it as an environment variable `CLOUDQUERY_API_KEY` in the [Cloud Run configuration](https://cloud.google.com/run/docs/configuring/services/secrets#access-secrets). See more information on generating an API key [here](https://docs.cloudquery.io/docs/deployment/generate-api-key).\n\n## Deployment\n\nThis guide is still incomplete, but the rough steps are:\n\n1. Build the image locally\n\n   ```bash\n   docker build --platform=linux/amd64 -t gcr.io/my-project/cloudquery-cloudrun:3.4.0 .\n   ```\n\n2. Upload the image to GCR:\n\n   ```bash\n   docker push gcr.io/my-project/cloudquery-cloudrun:3.4.0\n   ```\n\n3. Create a cloud run job using the newly pushed image. Make sure to mount your CloudQuery config file at `/secrets/config.yaml` (using Secrets). Note that it is possible to combine sources and destinations in a single config file by separating the sections with `---` (see [the docs](https://www.cloudquery.io/docs/core-concepts/configuration))\n\n4. Schedule the job via [Cloud Scheduler](https://cloud.google.com/scheduler).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudquery%2Fcloudrun-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudquery%2Fcloudrun-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudquery%2Fcloudrun-example/lists"}