Having a Spring Boot app I tried to build it using the spring-boot-maven-plugin
goal mvn spring-boot:build-image
. But the build fails downloading the <
@jonashackt I had a workaround for this problem and it working
I create bindings
/bindings/bellsoft-jdk-config
├── 786c48fa6429d6a3f0afb189a65f0a43772e42afbab836852b9a1fdfdb8fc502
├── a3092627b082cb3cdbbe4b255d35687126aa604e6b613dcda33be9f7e1277162
├── be27df8838a6d069a2212de5f46da4e39f33f087f2e77c8a725d0f7ec8b5273e
├── d9ff2d84528a2154ff669b85e6dbdee7f244194dcc64e0a8a1bedc470b3bcf56
└── type
Then created a Dockerfile that copies these bindings and builds a new platform based on the previous one
FROM paketobuildpacks/builder:0.0.464-base-platform-api-0.3
COPY bindings /platform/bindings
CMD ["/bin/bash"]
docker build -t your-repo-url/java-builder-test:1 .
docker push your-repo-url/java-builder-test:1
then I configured the spring plugin to use this platform
your-repo-url/java-builder-test:1
true
your-repo-url/${project.artifactId}:${project.version}
This workaround worked when build platform on local machine(Windows) and push to remote or local repo. when I build this on CI and push from CI to remote repo it dont work..
Have you tried such a solution ?