-
I'm (very) new to buildpacks and having a problem with using a custom buildpack from a local directory. default buildpack1st, I can use the default buildpack for building and running a Java application (sample app downloaded from https://start.spring.io/) One little log for it: bp1.log buildpack from a local directoryUnfortunately I can't get (the same?) bellsoft-liberica work for the same scenario from a local folder. I try it like this (after running
and get this error:
The full log bp2.log playing with detect and build
I suspect there is a little thing I simply overlook. Please drop me a hint. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The trick with Paketo buildpacks is that we write them in Go, so they need compiled before you can run them as a buildpack. We have a tool for doing that, libpak-tools. You can use libpak-tools package compile if you want to build the buildpack into a local directory & point to that directory with You can also run libpak-tools package bundle which does the same thing but then produces an image in your Docker daemon with the buildpack. You can then Either works. As an aside, you can do this without libpak-tools, but the tool automates the process so we recommend everyone use the tool. One last note...
When you use the The easiest way to figure out the full set of buildpacks is to Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Daniel, thanks a lot for your detailed answer. Indeed, I got the bellsoft-liberica compiled with libpak-tools and it produced the folder with necessary Unfortunately that generated buildpak doesn't work either with the same error:
Full log bp3.log. Plz advise. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Ok, you're spot on. I just forgot to tell you one argument. Add the
--target-arch amd64
tolibpak-tools bundle compile
. That will tell it to build a single-arch version which is suitable for running directly like this. The multi-arch version is not the expected format for running directly, and it defaults to multi-arch.