Replies: 1 comment
-
|
With the spring boot build tools, you need to set the env variables within your build configuration file. Gradle example: That assumes from inside the container, there is network access to the URL in that configuration property and that it can fetch the files needed from there via HTTP. If you get errors fetching the file from that location, please look at how your hosting & exposing that mirror to the container. Side note. You can also use binding-tool and dependency mapping files. These are also configured through your build tool config file, see here for gradle (it's the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
Building a Spring Boot image with
bootBuildImagein a restricted environment (no internet) fails because Paketo’sbellsoft-libericabuildpack keeps trying to download the JRE from GitHub, ignoring my local file at/work/bellsoft-jre17.0.14+10-linux-amd64.tar.gz. Goal is to use the local JRE offline../gradlew bootBuildImage -PpackArgs="--env BP_DEPENDENCY_MIRROR='http://10.43.233.37:8081/repository/Bill/'"Latest log:
Trials
BP_JAVA_INSTALLATION_URL:export BP_JAVA_INSTALLATION_URL=file:///work/bellsoft-jre17.0.14.tar.gz; ./gradlew bootBuildImageBP_DEPENDENCY_MIRROR:./gradlew bootBuildImage -PpackArgs="--env BP_DEPENDENCY_MIRROR='http://10.43.233.37:8081/repository/Bill/'"Questions
Beta Was this translation helpful? Give feedback.
All reactions