We're experimenting with Spring Native, following their guide. Additionally, we wish use Gradle and Buildpacks. We have adapted our configuration (build.gradle) accordingly and run ./gradlew bootBuildImage in order to build the Spring Native image.
The problem arises because we are forced to use the custom Docker image registry of our company. Therefore, we can't directly pull e. g. docker.io/paketobuildpacks/run:tiny-cnb, but have to use something like docker-io.docker-proxy.ourcompany.com/paketobuildpacks/run:tiny-cnb.
We have already pulled and re-tagged the builder image paketobuildpacks/builder used during the process. But as the rest is happening inside this build container, we cannot use this solution any further. So we get:
* What went wrong:
Execution failed for task ':bootBuildImage'.
> Docker API call to 'localhost/v1.24/images/create?fromImage=docker.io%2Fpaketobuildpacks%2Frun%3Atiny-cnb' failed with status code 500 "Internal Server Error" and message "Get "https://registry-1.docker.io/v2/": context deadline exceeded"
(Probably because a connection attempt to *.docker.io will just time out.)
As of the moment, we have not found a possibility to configure the Docker registry used by the process. We could also find a bigger "tree" of further dependencies needed later during the process, described in files like here (where gcr.io is referred instead of docker.io).
In no way will we be allowed to access the public registries directly and thus have no further ideas. So, can you think of any sane possibility to achieve our goal of building the Spring Native image using your our own proxy registries?
Many thanks in advance!