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
gradle docker buildBootImage hangs for a bit around 88% #32178
Comments
The If getting a custom certificate loaded in the builder container can solve the problem, then you might be able to use the If configuring the builder container to use the corporate proxy helps, there's an example of that configuration in the Spring Boot plugin documentation.
The Paketo Bellsoft Liberica buildpack documents a way to provide an alternate download location for the artifacts. This would give you full control over the download location, but probably requires the most work on your part to maintain your own artifcact repository.
The Spring Boot plugins provide an integration to CNB buildpacks. The Paketo builder and buildpacks are used by default, but users can override that to use a builder and buildpacks of their choice. The Spring Boot documentation can't cover every configuration scenario, and we don't want to make the documentation specific to Paketo or duplicate the documentation provided by Paketo and other CNB providers. This means users sometimes need to consult both the Spring Boot docs and their CNB builder docs to solve specific problems. If there's something specific that you think we could add to the Spring Boot documentation that isn't Paketo-specific, we can take a look at that. |
I think perhaps there are a couple of scenarios that could be improved... but I'm not sure they wouldn't be paketo specific. I'm just thinking that the "Corporate Proxy+Artifactory(reverse proxy/mirror)" scenario for using this might be so common that it might be worth it. Right now I think I may just write the quick dockerfile because I was hoping for something super easy. Realistically I'm wondering if for local all I need to do is get my proxy variable in there, but, I hadn't seen anything for that. |
The way that buildpacks choose to download dependencies, and any mechanism they might provide for navigating proxies or overrding the download location, are out of Spring Boot's control. This information would need to be documented by the buildpack provider. If you raise an issue with Paketo or another CNB provider, feel free to drop a link in a comment here. I'm going to close this for now, but we can assess linking to external documentation if something is created. |
I see a lot of
It finally fails here, this is definitely an our proxy issue (yay for formally approved man in the middle attacks)
At the same time, I still doesn't see any documentation how to get the right cert, and more importantly we couldn't fetch from this in our CI. So is there a way to get this from artifactory? TBH, I'm not exactly sure why it needs to download a custom JRE if one is already available. Seems like not a great thing. I'm sure this seems like questions, but, I didn't find anything in the docs https://docs.spring.io/spring-boot/docs/2.7.3/gradle-plugin/reference/htmlsingle/#build-image . I think more documentation is needed here.
tried this, doesn't work, but I can't imagine how as it's not mounted... I'll dig more monday. Not sure if there's a good way to modify the keystore, that might be what's needed, I've had to do both.
The text was updated successfully, but these errors were encountered: