Skip to content

Instantly share code, notes, and snippets.

@jkutner
Last active March 26, 2019 14:27
Show Gist options
  • Save jkutner/c6edb54d1eb03df8fd395e2f779fc539 to your computer and use it in GitHub Desktop.
Save jkutner/c6edb54d1eb03df8fd395e2f779fc539 to your computer and use it in GitHub Desktop.
$ cd elixir-cnb
$ curl -L https://github.com/heroku/cnb-shim/releases/download/v0.0.2/cnb-shim-v0.0.2.tgz | tar xz
$ cat > buildpack.toml << TOML
> [buildpack]
> id = "hashnuke.elixir"
> version = "0.1"
> name = "Elixir"
>
> [[stacks]]
> id = "heroku-18"
TOML
$ bin/install buildpack.toml https://buildpack-registry.s3.amazonaws.com/buildpacks/hashnuke/elixir.tgz
$ cd ~/my-elixir-app/
$ pack build elixir-app --builder heroku/buildpacks --buildpack ~/path/to/elixir-cnb
@hawksight
Copy link

As you suggested on slack, this should be added before the last command:
pack add-stack heroku-18 --build-image heroku/pack:18-build --run-image heroku/pack:18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment