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

"Creator" with Buildpack usage #959

Closed
anoopvlcy opened this issue Nov 21, 2022 · 6 comments
Closed

"Creator" with Buildpack usage #959

anoopvlcy opened this issue Nov 21, 2022 · 6 comments
Labels
status/awaiting-response Further information is requested type/support

Comments

@anoopvlcy
Copy link

Description

Looking for some example for using buildpack option with "/cnb/lifecycle/creator".
Currently we are using Pack CLI to create application image with NewRelic in it.
pack build "$CI_REGISTRY_IMAGE" --builder "paketobuildpacks/builder:latest" --volume "$(pwd)/binding:/platform/bindings/new-relic" -b paketo-buildpacks/java -b paketo-buildpacks/new-relic --env BP_JVM_VERSION=17

We would like to do same using "creator", the document says "" --> Path to buildpacks directory (see Buildpacks Directory Layout)
However its not very clear how to add buildpack with "creator"

Proposed solution

Add a example or more documentations with clear usage

@jjbustamante
Copy link
Member

Hi @anoopvlcy.

One doubt, are you planning to build your images using a different tool than pack cli? I asked because I think pack is already using the creator if your builder is trusted(see this)

The creator makes life easier for platform implementors because they do not have to call every phase one by one. Pack (as a platform) is already handling that for you as.

@natalieparellano
Copy link
Member

pack build --buildpack will add the buildpack to the builder (so that it is present in the buildpacks directory) and modify the order file to include it. This must be done before the lifecycle is invoked. There is currently an open RFC that would introduce a "prepare" binary that could be run before the lifecycle to perform this and other functionality that is currently done by pack.

As @jjbustamante mentions you can provide pack build --trust-builder to run the creator under the hood.

@anoopvlcy
Copy link
Author

anoopvlcy commented Nov 22, 2022

hi @natalieparellano , @jjbustamante

Thanks for quick response.

I'm exploring "creator" because, currently Pack Docker image doesn't support Gitlab. Please refer ticket.

Please let me know is there any alternatives or workaround till "prepare" binary available for use. So that I can try "creator" in Gitlab.

@natalieparellano
Copy link
Member

@anoopvlcy commented on the other ticket; I am pretty sure you can get pack to work in GitLab, unless you have a very custom configuration. Hopefully the pointers will be helpful, but please let us know if not.

@anoopvlcy
Copy link
Author

@anoopvlcy commented on the other ticket; I am pretty sure you can get pack to work in GitLab, unless you have a very custom configuration. Hopefully the pointers will be helpful, but please let us know if not.

Thanks. I replied in buildpacks/pack#1554

@natalieparellano
Copy link
Member

Closing this issue as it seems covered by the pack issue; feel free to reopen if I'm mistaken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/awaiting-response Further information is requested type/support
Projects
None yet
Development

No branches or pull requests

3 participants