{"id":45187693,"url":"https://github.com/bitcomplete/gcp-runbatch","last_synced_at":"2026-02-20T11:04:27.022Z","repository":{"id":57696753,"uuid":"471791487","full_name":"bitcomplete/gcp-runbatch","owner":"bitcomplete","description":"Easily run serverless Docker workloads in a transient GCE VM instance","archived":false,"fork":false,"pushed_at":"2022-05-17T18:48:35.000Z","size":32,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-31T22:49:52.052Z","etag":null,"topics":["batch-processing","google-cloud","serverless"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitcomplete.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-19T19:19:17.000Z","updated_at":"2024-04-12T09:45:28.000Z","dependencies_parsed_at":"2022-08-25T18:51:59.305Z","dependency_job_id":null,"html_url":"https://github.com/bitcomplete/gcp-runbatch","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bitcomplete/gcp-runbatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcomplete%2Fgcp-runbatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcomplete%2Fgcp-runbatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcomplete%2Fgcp-runbatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcomplete%2Fgcp-runbatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcomplete","download_url":"https://codeload.github.com/bitcomplete/gcp-runbatch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcomplete%2Fgcp-runbatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29648481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["batch-processing","google-cloud","serverless"],"created_at":"2026-02-20T11:04:25.890Z","updated_at":"2026-02-20T11:04:27.015Z","avatar_url":"https://github.com/bitcomplete.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gcp-runbatch\n\n[![Documentation](https://godoc.org/github.com/bitcomplete/gcp-runbatch?status.svg)](http://godoc.org/github.com/bitcomplete/gcp-runbatch)\n\ngcp-runbatch is a tool for running a docker container in a transient GCE VM\ninstance. The instance will be deleted once the container exits. It can be\ninvoked as a command line tool, or as a GCP Cloud Function.\n\n## Installation\n\n### Mac\n\n```\nbrew tap bitcomplete/tap\nbrew update\nbrew install gcp-runbatch\n```\n\n### Linux\n\nDownload the appropriate Linux archive from the [latest\nrelease](https://github.com/bitcomplete/gcp-runbatch/releases/latest) and copy\nthe binary to your PATH.\n\n## Usage\n\n### Command line\n\nTo execute a Docker image in a dedicated VM, run the gcp-runbatch command as\nfollows:\n\n```\ngcp-runbatch \\\n  --project-id=PROJECT_ID \\\n  --zone=ZONE \\\n  --service-account=SERVICE_ACCOUNT \\\n  IMAGE\n```\n\nOnce the image process exits, the VM will be deleted. `IMAGE` should be a\nreference to a Docker image recognized by `docker run`, e.g. an image name on\nhub.docker.com, or a full Artifact Registry image URL.\n\nHere's an example invocation:\n\n```\n$ gcp-runbatch \\\n  --project-id=long-octane-350517 \\\n  --zone=us-central1-a \\\n  --service-account=1234567890-compute@developer.gserviceaccount.com \\\n  hello-world\nSuccessfully started instance runbatch-38408320. To tail batch logs run:\nCLOUDSDK_PYTHON_SITEPACKAGES=1 gcloud beta --project=long-octane-350517\nlogging tail 'logName=\"projects/long-octane-350517/logs/runbatch\" AND\nresource.labels.instance_id=\"runbatch-38408320\"' --format='get(text_payload)'\n```\n\nRunning the `gcloud beta logging` command that gets printed will allow you to\ntail the command logs.\n\n### GCP Cloud Function\n\nIt's straightforward to deploy runbatch as a Cloud Function. Clone the repo and\nthen deploy using `gcloud functions deploy`:\n\n```\ngo mod vendor\ngcloud functions deploy runbatch-start \\\n  --trigger-http \\\n  --no-allow-unauthenticated \\\n  --runtime=go116 \\\n  --entry-point=Function\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcomplete%2Fgcp-runbatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcomplete%2Fgcp-runbatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcomplete%2Fgcp-runbatch/lists"}