{"id":23006384,"url":"https://github.com/syntapy/gce_img_builder","last_synced_at":"2025-04-02T15:13:27.923Z","repository":{"id":69888446,"uuid":"389272468","full_name":"syntapy/gce_img_builder","owner":"syntapy","description":"Build GCE images on GCP using Terraform, Packer, and Cloud Build","archived":false,"fork":false,"pushed_at":"2021-09-11T04:00:04.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T06:14:05.490Z","etag":null,"topics":["google-cloud-build","google-cloud-platform","packer","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","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/syntapy.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,"publiccode":null,"codemeta":null}},"created_at":"2021-07-25T05:49:23.000Z","updated_at":"2021-09-11T04:04:34.000Z","dependencies_parsed_at":"2023-02-22T00:45:39.050Z","dependency_job_id":null,"html_url":"https://github.com/syntapy/gce_img_builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"syntapy/gcp_project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntapy%2Fgce_img_builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntapy%2Fgce_img_builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntapy%2Fgce_img_builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntapy%2Fgce_img_builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syntapy","download_url":"https://codeload.github.com/syntapy/gce_img_builder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246837685,"owners_count":20841903,"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":["google-cloud-build","google-cloud-platform","packer","terraform"],"created_at":"2024-12-15T08:12:22.265Z","updated_at":"2025-04-02T15:13:27.902Z","avatar_url":"https://github.com/syntapy.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"Overview\n========\nAutomated GCE image build pipeline with Google Cloud Build triggers using Terraform and Packer\n\nThere are two source repos to be hosted on Google Cloud Repository:\n - Packer image builder in `repos/packer` to allow running packer in cloud build\n - The GCE image builder in `repos/machine_image` which uses packer\n\nThe terraform configs will also creates the Google Cloud project as well\n\nTo Run\n======\n\nNeeds an organization level account (google workspace account) and works with the following roles assigned to the account terraform uses (`gcloud auth application-default login`)\n - roles/billing.creator\n - roles/resourcemanager.organizationAdmin\n - roles/resourcemanager.projectCreator\n - roles/storage.admin\n\nYou may need to run `terraform apply` twice, since I think a service acount gets created on first run for a project\n\nYou will get the output URLs for the two google source repositories. These are labeled:\n - `packer_build_repo`\n - `machine_image_repo`\n\nThen cd into `repos/packer/` and run `git add remote google \u003cpacker_build_repo\u003e` and push\n\nA build should be triggered as indicated by `gcloud builds list`\n\nOnce thats done go into `repos/machine_image` and run `git add remote google \u003cmachine_image_repo` and push\n\nThis should trigger machine image build which you can use in a GCE instance (heres a [terraform config for GCE server](https://github.com/syntapy/gce_server) you can use)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntapy%2Fgce_img_builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyntapy%2Fgce_img_builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntapy%2Fgce_img_builder/lists"}