{"id":13716505,"url":"https://github.com/heroku/cnb-shim","last_synced_at":"2025-05-07T05:33:22.188Z","repository":{"id":37422878,"uuid":"174020278","full_name":"heroku/cnb-shim","owner":"heroku","description":"[DEPRECATED] This is a shim to run old buildpacks as Cloud Native Buildpacks. This service will be sunset soon: https://github.com/heroku/cnb-shim/issues/95","archived":false,"fork":false,"pushed_at":"2025-05-01T09:30:56.000Z","size":177,"stargazers_count":18,"open_issues_count":1,"forks_count":10,"subscribers_count":70,"default_branch":"main","last_synced_at":"2025-05-01T10:32:39.185Z","etag":null,"topics":["heroku-languages"],"latest_commit_sha":null,"homepage":"","language":"Go","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/heroku.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-03-05T21:03:14.000Z","updated_at":"2025-05-01T09:30:58.000Z","dependencies_parsed_at":"2022-07-22T04:48:09.848Z","dependency_job_id":"c2762c60-90db-43b2-a5b3-aeeece805cbb","html_url":"https://github.com/heroku/cnb-shim","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heroku%2Fcnb-shim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heroku%2Fcnb-shim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heroku%2Fcnb-shim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heroku%2Fcnb-shim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heroku","download_url":"https://codeload.github.com/heroku/cnb-shim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252823556,"owners_count":21809705,"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":["heroku-languages"],"created_at":"2024-08-03T00:01:11.112Z","updated_at":"2025-05-07T05:33:21.798Z","avatar_url":"https://github.com/heroku.png","language":"Go","funding_links":[],"categories":["[Heroku Buildpacks](https://devcenter.heroku.com/)"],"sub_categories":["Provides buildpacks for:"],"readme":"# Cloud Native Buildpack Shim\n\n[![CI](https://github.com/heroku/cnb-shim/actions/workflows/ci.yml/badge.svg)](https://github.com/heroku/cnb-shim/actions/workflows/ci.yml)\n\n\u003e [!WARNING]\n\u003e This project is not actively maintained and does not support modern Buildpack API and lifecycle versions.\n\u003e\n\u003e Please switch to native CNB implementations rather than using this shim.\n\u003e\n\u003e See [Heroku's natively supported CNB languages](https://github.com/heroku/buildpacks#supported-languages) or [search for community buildpacks](https://registry.buildpacks.io/).\n\nThis is a Cloud Native Buildpack that acts as a shim for classic [Heroku Buildpacks](https://devcenter.heroku.com/articles/buildpacks).\n\n## Usage\n\nThis shim can be used with any buildpack in the [Heroku Buildpack Registry](https://devcenter.heroku.com/articles/buildpack-registry) by specifying a URL in the form:\n\n```\nhttps://cnb-shim.herokuapp.com/v1/\u003cnamespace\u003e/\u003cname\u003e\n```\n\n### Example: Elixir\n\n```\n$ pack build elixir-app --buildpack https://cnb-shim.herokuapp.com/v1/hashnuke/elixir --builder heroku/buildpacks:18\n```\n\nFor a complete list of available buildpacks run the following command from the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli):\n\n```\n$ heroku buildpacks:search\n```\n\n## Applying the Shim Manually\n\nTo use the shim manually, install the target buildpack:\n\n```sh-session\n$ sbin/install \"path/to/buildpack.toml\" \"https://example.com/buildpack.tgz\"\n```\n\nThen run this buildpack.\n\n### Example: Elixir\n\nTo use this shim with the [hashnuke/elixir](https://github.com/HashNuke/heroku-buildpack-elixir) buildpack, install [`pack` CLI](https://github.com/buildpack/pack) and run:\n\n```\n$ cd elixir-cnb\n\n$ curl -L https://github.com/heroku/cnb-shim/releases/download/v0.1/cnb-shim-v0.1.tgz | tar xz\n\n$ cat \u003e buildpack.toml \u003c\u003c TOML\napi = \"0.2\"\n\n[buildpack]\nid = \"hashnuke.elixir\"\nversion = \"0.1\"\nname = \"Elixir\"\n\n[[stacks]]\nid = \"heroku-22\"\nTOML\n\n$ sbin/install buildpack.toml https://buildpack-registry.s3.amazonaws.com/buildpacks/hashnuke/elixir.tgz\n\n$ cd ~/my-elixir-app/\n\n$ pack build elixir-app --builder heroku/buildpacks --buildpack ~/path/to/elixir-cnb\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheroku%2Fcnb-shim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheroku%2Fcnb-shim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheroku%2Fcnb-shim/lists"}