Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this buildpack with pack? #70

Open
fagiani opened this issue Dec 18, 2020 · 1 comment
Open

How to use this buildpack with pack? #70

fagiani opened this issue Dec 18, 2020 · 1 comment

Comments

@fagiani
Copy link

fagiani commented Dec 18, 2020

I'm trying to use this buildpack along with pack from buildpacks.io. When I use the same notation of heroku CLI by passing in the flag --buildpack https://github.com/heroku/heroku-buildpack-nginx.git as described here, it asks for a tar archive.

I then went to the github releases and pasted the latest .tar.gz url as parameter and then it says it couldn't find a buildpack.toml file.

I've read about some trusted buildpacks but wasn't able to understand what should I do in order to get pack trusting it and I am not sure it is related.

I'd appreciate any advice that could be helpful towards getting pack to work.

Thanks a bunch!

@fagianijunior
Copy link

fagianijunior commented Dec 20, 2020

I has this question too, I've made some progress cloning the repository inside my project:

$ cd myapp/buildpacks
$ git clone git@github.com:heroku/heroku-buildpack-nginx.git

then, I had created buildpack.toml with this content:

api = "0.2"

[buildpack]
uri = "."
id = "heroku-buildpack-nginx"
version = "0.0.1"

[[stacks]]
id = "heroku-18"

and now, run pack command:

$ pack build myapp --path . --buildpack buildpacks/heroku-buildpack-nginx --builder heroku/buildpacks:18

and it give me this output:

18: Pulling from heroku/buildpacks
Digest: sha256:dc7442bf1268412e310f18a99ee5716a79af7aa1c052aff164005218f4836486
Status: Image is up to date for heroku/buildpacks:18
18: Pulling from heroku/pack
Digest: sha256:dcabddd7ca1baa909b21b43ea89b999bb62cbe1a0be0bb3631fc4d7b384c926f
Status: Image is up to date for heroku/pack:18
===> DETECTING
heroku-buildpack-nginx 0.0.1
===> ANALYZING
Previous image with name "myapp" not found
===> RESTORING
===> BUILDING
ERROR: failed to build: fork/exec /cnb/buildpacks/heroku-buildpack-nginx/0.0.1/bin/build: no such file or directory
ERROR: failed to build: executing lifecycle: failed with status code: 145

why this file bin/build does not exist? What can I put inside it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants