{"id":22773765,"url":"https://github.com/moekiorg/barruun-docker","last_synced_at":"2025-04-05T19:35:44.213Z","repository":{"id":134211631,"uuid":"449491426","full_name":"moekiorg/barruun-docker","owner":"moekiorg","description":"Docker image for barruun gem","archived":false,"fork":false,"pushed_at":"2022-01-19T02:04:04.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T03:37:32.070Z","etag":null,"topics":["docker","docker-image","gcp","ruby"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/moekiorg.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}},"created_at":"2022-01-19T00:21:42.000Z","updated_at":"2023-02-01T08:11:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"788e48eb-ca17-462f-830c-80202b719b30","html_url":"https://github.com/moekiorg/barruun-docker","commit_stats":null,"previous_names":["kawakamimoeki/barruun-docker"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moekiorg%2Fbarruun-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moekiorg%2Fbarruun-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moekiorg%2Fbarruun-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moekiorg%2Fbarruun-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moekiorg","download_url":"https://codeload.github.com/moekiorg/barruun-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393095,"owners_count":20931804,"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":["docker","docker-image","gcp","ruby"],"created_at":"2024-12-11T17:59:46.947Z","updated_at":"2025-04-05T19:35:44.172Z","avatar_url":"https://github.com/moekiorg.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Barruun Docker\n\nBarruun is a simple tool for Infrastructure as Code of Google Cloud Platform using `gcloud` command.\n\n## Usage\n\n### Local\nTo use this image, pull from Docker Hub, run the following command:\n\n```\ndocker pull cckawakami/barruun:latest\n```\n\nThen, authenticate by running:\n\n```\ndocker run -ti --name gcloud-config cckawakami/barruun gcloud auth login\n```\n\nOnce you authenticate successfully, credentials are preserved in the volume of the gcloud-config container.\n\nTo list compute instances using these credentials, run the container with `--volumes-from`:\n```\ndocker run --rm -ti \\\n  --env PROJECT_ID=xxx \\\n  --volumes-from gcloud-config \\\n  --volume $PWD/sink.yml:/workspace/sink.yml \\\n  cckawakami/barruun barruun logging sink /workspace/sink.yml\n```\n\nFor more information on how to use Barruun, see [here](https://github.com/cc-kawakami/barruun).\n\n### Cloud Build\n\nAuthentication and file mount are done automatically.\n\nBut you must set environment variables.\n\n```yaml\nsteps\n  - name: cckawakami/barruun:latest\n    waitFor: ['-']\n    args: ['barruun', 'logging', 'sink', '/workspace/cloudbuild/logging/sink.yml']\n    env:\n      - 'PROJECT_ID=$PROJECT_ID'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoekiorg%2Fbarruun-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoekiorg%2Fbarruun-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoekiorg%2Fbarruun-docker/lists"}