Create new build pack

129 views Asked by At

I need to create new build-pack and I wonder if there is a way to build new BP which inherit or extend other build packs?(for example extend nodeJS build-pack) I didn't find example for it,so i need your help...

2

There are 2 answers

0
James Thomas On BEST ANSWER

Buildpacks cannot inherit from existing buildpacks. However, all the existing buildpacks are open-source. You can simply fork an existing buildpack, modify the shell scripts and point the application manifest to your buildpack source code repository.

There are lots of tutorials about building custom buildpacks that can get you started.

Here's one about modifying the NodeJS runtime to include a custom C library.

0
pst On

There is the concept of a multi-buildpack. You specify this when creating the app and then the additional buildpacks in the .buildpacks file.

https://github.com/heroku/heroku-buildpack-multi