GoogleCloudPlatform / buildpacks

Builders and buildpacks designed to run on Google Cloud's container platforms
Apache License 2.0
989 stars 146 forks source link

How to use with kpack #158

Open paolomainardi opened 3 years ago

paolomainardi commented 3 years ago

I am struggling a bit trying to use these buildpacks with kpack: https://github.com/pivotal/kpack/issues/884

It is more or less an hello world built in Javascript with Nodejs which is perfectly fine when built with pack: pack build test --builder gcr.io/buildpacks/builder:v1 but cannot make it to work with kpack, precisely the builder which shuold be the component in charge to build the image

briandealwis commented 2 years ago

I believe kpack requires building its own builder image by installing buildpacks via buildpackages. We don't publish our buildpacks as individual buildpackages.

sambhav commented 2 years ago

If you are okay with using just the kpack build resource (instead of the image resource) , you should be able to use gcp buildpacks by directly specifying the builder image. See https://github.com/pivotal/kpack/blob/main/docs/build.md#configuration