-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Add platform option for image building #40944
Comments
Current workaround is running pack manually, in my case something like this: pack build --platform linux/amd64 \
--builder paketobuildpacks/builder-jammy-base:latest \
--buildpack paketo-buildpacks/java \
--env BP_JVM_VERSION=21 \
putyourimagenamehere And if you want to run the gradle build outside of docker make sure to pass the executable .jar file: jar_path=$(build/libs -maxdepth 1 -name "*.jar" -not -name "*plain.jar" -print -quit)
pack build --platform linux/amd64 \
--builder paketobuildpacks/builder-jammy-base:latest \
--buildpack paketo-buildpacks/java \
--path $jar_path \
--env BP_JVM_VERSION=21 \
putyourimagenamehere |
While many phases of the CNB lifecycle API do have a To reduce the potential for confusion, we should call the new options in the Maven and Gradle configuration |
@scottfrederick Well done! Looking forward to the official release of version 3.4.0! |
@scottfrederick Does this support specifying multiple platforms, for example |
@filipblondeel Only one platform option can be specified. Supporting multiple platform options would require Spring Boot to iterate over the entire image-building process for each option. |
See buildpacks/pack#2154 for the equivalent
pack
option. The value of aplatform
option should be passed to the lifecycle API as provided by the user.The text was updated successfully, but these errors were encountered: