https://github.com/thomasvitale/buildpacks-demo
https://github.com/thomasvitale/buildpacks-demo
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thomasvitale/buildpacks-demo
- Owner: ThomasVitale
- License: apache-2.0
- Created: 2024-05-12T13:06:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-22T06:10:03.000Z (about 1 year ago)
- Last Synced: 2025-10-11T18:34:49.314Z (2 days ago)
- Language: Java
- Size: 80.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Buildpacks Demo
Demo for showing an issue with the Spring Boot plugin when running multi-arch buildpacks.
The examples are using Gradle, but it would be the same result with Maven.## Multi-Arch Java Buildpacks
When using the pack CLI, the build works on both AMD64 and ARM64 architectures.
```shell
pack build demo \
--builder docker.io/paketobuildpacks/builder-jammy-buildpackless-tiny \
--buildpack gcr.io/paketo-buildpacks/java \
--env BP_JVM_VERSION=22
```When using the Spring Boot plugin, the build only works on ARM64 architectures.
```shell
./gradlew bootBuildImage
```## Multi-Arch Java Native Buildpacks
When using the pack CLI, the build works on both AMD64 and ARM64 architectures.
```shell
pack build demo-native \
--builder docker.io/paketobuildpacks/builder-jammy-buildpackless-tiny \
--buildpack gcr.io/paketo-buildpacks/java-native-image \
--env BP_JVM_VERSION=22 \
--env BP_NATIVE_IMAGE=true
```When using the Spring Boot plugin, the build works on both AMD64 and ARM64 architectures.
```shell
./gradlew bootBuildImage
```