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

Invalid working directory on graalvm-native-image #1495

Closed
senia-psm opened this issue Feb 9, 2022 · 0 comments · Fixed by #1496
Closed

Invalid working directory on graalvm-native-image #1495

senia-psm opened this issue Feb 9, 2022 · 0 comments · Fixed by #1496

Comments

@senia-psm
Copy link
Contributor

senia-psm commented Feb 9, 2022

Expected behaviour

sbt graalvm-native-image:packageBin generates artifacts in target/graalvm-native-image.

GraalVM native-image output should be

Produced artifacts:
 /opt/graalvm/example (executable)
 /opt/graalvm/example.build_artifacts.txt

Actual behaviour

sbt graalvm-native-image:packageBin generates no artifacts in target/graalvm-native-image.

GraalVM native-image is

Produced artifacts:
 /example (executable)
 /example.build_artifacts.txt

GraalVM docker image

GraalVMNativeImage / containerBuildImage := Some(s"ghcr.io/graalvm/native-image:ol8-java17-22.0.0.2")

Information

  • sbt-native-packager version is 1.9.7
  • sbt version is 1.6.2
  • build system is Gentoo (Linux version is 5.15.11)

Possible solutions

  • Add "--workdir", "/opt/graalvm" to docker run arguments
  • Add graalVMNativeImageDockerOptions for user to be able to specify such options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant