-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Add buildpack option for image building #21722
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
Comments
We would like to use this feature to be able to select the JVM chosen. Currently the built image selects Bellsoft Liberica and this cannot be modified. |
@dogilvie the workaround for 2.3 can be |
How do I utilize this in the context of spring boot? Our image is built using the spring-boot-maven-plugin <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<layers>
<enabled>true</enabled>
</layers>
</configuration>
</plugin> |
@dogilvie this feature is not implemented yet so you'll have to create your own builder in the meantime (as @eddumelendez mentioned) and use your custom builder rather than the default. Doing so is explained in the documentation (for instance here for Maven). If you have more questions, please follow-up on StackOverflow. |
The
The remaining options can be implemented as demand dictates:
|
The
pack
CLIbuild
command supports abuildpack
option that allows the user to customize the list of buildpacks used to build the image. Buildpack references are supported in the form of<buildpack>@<version>
, path to a buildpack directory, path/URL to a buildpack .tar or .tgz file, or the name of a buildpack image packaged in the builder.This option could be useful to users of the Spring Boot Maven plugin
spring-boot:build-image
goal and Gradle pluginbootBuildImage
task.The text was updated successfully, but these errors were encountered: