{"id":20031855,"url":"https://github.com/wtnabe/example-cnbp-node-ruby","last_synced_at":"2026-05-05T20:34:18.201Z","repository":{"id":212888625,"uuid":"732282355","full_name":"wtnabe/example-cnbp-node-ruby","owner":"wtnabe","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-23T07:37:31.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T05:27:52.160Z","etag":null,"topics":["cloudnativebuildpack","nodejs","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wtnabe.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-16T06:37:32.000Z","updated_at":"2024-03-24T02:11:29.000Z","dependencies_parsed_at":"2024-11-13T09:45:18.996Z","dependency_job_id":null,"html_url":"https://github.com/wtnabe/example-cnbp-node-ruby","commit_stats":null,"previous_names":["wtnabe/example-cnbp-node-ruby"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fexample-cnbp-node-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fexample-cnbp-node-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fexample-cnbp-node-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fexample-cnbp-node-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtnabe","download_url":"https://codeload.github.com/wtnabe/example-cnbp-node-ruby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtnabe%2Fexample-cnbp-node-ruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259207288,"owners_count":22821632,"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":["cloudnativebuildpack","nodejs","ruby"],"created_at":"2024-11-13T09:34:58.208Z","updated_at":"2026-05-05T20:34:18.166Z","avatar_url":"https://github.com/wtnabe.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## An example repo for Vite and Sinatra app with Cloud Native Buildpacks\n\n### Prerequisite\n\n * pack command\n     * [pack · Cloud Native Buildpacks](https://buildpacks.io/docs/tools/pack/cli/pack/)\n     * [buildpacks/pack: CLI for building apps using Cloud Native Buildpacks](https://github.com/buildpacks/pack)\n * [Node\\.js](https://nodejs.org/) ( optional )\n * [Ruby Programming Language](https://www.ruby-lang.org/en/)\n\n### How to Use\n\n#### for building image\n\n```\npack build example-cnbp-node-ruby -B heroku/builder:22\n```\n\n#### for developing\n\n```\nbundle\n./bin/vite install\ngem install bundler\nforeman start -f Procfile.dev\n```\n\n### Deploy\n\nPrepare the credentials for each platform so that they can be used in docker command.\n\n#### Heroku\n\n[Container Registry \u0026 Runtime \\(Docker Deploys\\) \\| Heroku Dev Center](https://devcenter.heroku.com/articles/container-registry-and-runtime#getting-started)\n\n```\n$ heroku container:login\n```\n\n```\n$ docker tag example-cnbp-node-ruby registry.heroku.com/\u003capp\u003e/web\n$ docker push registry.heroku.com/\u003capp\u003e/web\n$ heroku container:release web -a \u003capp\u003e\n```\n\n### Cloud Run\n\n[クイックスタート: Docker コンテナ イメージを Artifact Registry に保存する  \\|  Artifact Registry のドキュメント  \\|  Google Cloud](https://cloud.google.com/artifact-registry/docs/docker/store-docker-container-images?hl=ja)\n\n```\n$ gcloud auth configure-docker \u003clocation\u003e-central1-docker.pkg.dev\n```\n\n```\n$ docker tag example-cnbp-node-ruby \u003clocation\u003e-docker.pkg.dev/\u003cproject\u003e/\u003crepos\u003e/\u003cimage\u003e\n$ docker push \u003clocation\u003e-docker.pkg.dev/\u003cproject\u003e/\u003crepos\u003e/\u003cimage\u003e\n$ gcloud run deploy \u003cservice\u003e --image \u003clocation\u003e-docker.pkg.dev/\u003cproject\u003e/\u003crepos\u003e/\u003cimage\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtnabe%2Fexample-cnbp-node-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtnabe%2Fexample-cnbp-node-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtnabe%2Fexample-cnbp-node-ruby/lists"}