-
Notifications
You must be signed in to change notification settings - Fork 21
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
unable to invoke layer creator, error running version #392
Comments
We do have a working sample, can you try running https://github.com/paketo-buildpacks/samples/tree/main/java/native-image/java-native-image-sample-gradle and comparing that project to your project? Thanks |
I downloaded the project and built java-native image-sample-gradle with gradle bootBuildImage command, but I ran into the same problem, I don't know what the problem is now, maybe there is something wrong with my environment? How am I supposed to check
|
This is the context I can think of that might be relevant My operating system is window 11,Version 22H2 (OS internal version 22621.1992) I use the JDK is through graalvm website (https://download.oracle.com/graalvm/17/latest/graalvm-jdk-17_windows-x64_bin.zip) to download windows docker version: |
@JoyfulAndSpeedyMan Are you building with the command |
It would also be good to know if you can
|
Looking up the error, it is failing when it's trying to run I do not have a Windows machine that I can test on, so I can't say if that is part of the issue or not. All this should happen in a container though, so it should in theory all basically be the same regardless of your host OS. |
I was running into this same issue. Then I noticed that I had some custom docker engine configuration set. When I reset my docker engine configuration, the build started working. |
Projects initialized with spring initializer cannot be built with gradle bootBuildImage
Expected Behavior
Everything works and a docker image is built
Current Behavior
Possible Solution
At first I thought it was a jdk problem, I switched several versions of graalvm that didn't work
Steps to Reproduce
Use the spring initializer of IntelliJ IDEA 2023.1.4 to initialize a spring boot project, version 3.1.2
Build the image directly using gradle bootBuildImage
Motivations
I want to create an application that can be launched using docker, with a small memory footprint and a fast startup speed
jdk version :
Here is my directory structure (created using spring initializer)
gradle-wrapper.properties
PinApi2Application.java
build.gradle.kts
settings.gradle.kts
The text was updated successfully, but these errors were encountered: