Is it possible to show some examples of how to specify additional CA certificate bindings in the Spring Boot Gradle plugin?
I have tried the following:
bootBuildImage {
bindings = [ "${project.projectDir}/bindings/ca-certificates:/platform/bindings/ca-certificates" ]
}
And
bootBuildImage {
bindings = ['./bindings/ca-certificates:/platform/bindings/ca-certificates']
}
The error I get is:
2023-01-09T16:28:11.799+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
Execution failed for task ':ProjectA:bootBuildImage'.
> Docker API call to 'localhost/v1.24/containers/create' failed with status code 500 "Internal Server Error"
If I remove the bindings lines above the error is gone, but I hit another error with the TLS certificate which is expected because I am behind a corporate web proxy that replaces the certificate of the website with its own which is internal to our company.
The Docker version I uses is 4.8.2 (Docker 20.10.14). Spring Boot version is 3.0.1. GraalVM plugin is org.graalvm.buildtools.native 0.9.19.