Skip to content
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

4.x: Building the Native Docker image fails #7912

Closed
luzhengyang opened this issue Oct 28, 2023 · 2 comments · Fixed by #7909
Closed

4.x: Building the Native Docker image fails #7912

luzhengyang opened this issue Oct 28, 2023 · 2 comments · Fixed by #7909
Assignees
Labels
4.x Version 4.x archetypes bug Something isn't working examples native-image
Milestone

Comments

@luzhengyang
Copy link

Environment Details

  • Helidon Version: 4.0.0
  • Helidon MP
  • JDK version: 21
  • OS: macOS 13
  • Docker version (if applicable): 24.0.6

Problem Description

19.67 [ERROR] Failed to execute goal org.graalvm.buildtools:native-maven-plugin:0.9.27:compile (build-native-image) on project helidon-quickstart-mp: Execution of /opt/graalvm-community-java21/bin/native-image @target/tmp/native-image-1030896273986161271.args io.helidon.Main returned non-zero result -> [Help 1]
19.67 [ERROR]
19.67 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
19.67 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
19.67 [ERROR]
19.67 [ERROR] For more information about the errors and possible solutions, please read the following articles:
19.67 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
------
Dockerfile.native:21
--------------------
  19 |     # the pom
  20 |     ADD pom.xml .
  21 | >>> RUN mvn package -Pnative-image -Dnative.image.skip -Dmaven.test.skip -Declipselink.weave.skip
  22 |
  23 |     # Do the Maven build!
--------------------
ERROR: failed to solve: process "/bin/sh -c mvn package -Pnative-image -Dnative.image.skip -Dmaven.test.skip -Declipselink.weave.skip" did not complete successfully: exit code: 1

Steps to reproduce

  1. Generate the project using the Helidon MP Quickstart Maven archetype
mvn -U archetype:generate -DinteractiveMode=false \
    -DarchetypeGroupId=io.helidon.archetypes \
    -DarchetypeArtifactId=helidon-quickstart-mp \
    -DarchetypeVersion=4.0.0 \
    -DgroupId=io.helidon.examples \
    -DartifactId=helidon-quickstart-mp \
    -Dpackage=io.helidon.examples.quickstart.mp
cd helidon-quickstart-mp
mvn package
  1. docker build -t helidon-quickstart-mp-native -f Dockerfile.native .
@barchetta barchetta changed the title Building the Native Docker image fails 4.x: Building the Native Docker image fails Oct 28, 2023
@barchetta
Copy link
Member

See also #7180

@luzhengyang
Copy link
Author

luzhengyang commented Oct 28, 2023

Hi @barchetta,

I'm not sure if #7180 addressed the Dockerfile.native in the helidon-quickstart-mp.

I can see that it's using the graalvm-community:21.0.0-ol9.

FROM ghcr.io/graalvm/graalvm-community:21.0.0-ol9 as build

@m0mus m0mus added the bug Something isn't working label Oct 30, 2023
@m0mus m0mus added this to the 4.0.1 milestone Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x archetypes bug Something isn't working examples native-image
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants