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

GraalVMNativeImagePlugin build in docker container should relabel volume mount for target directory #1617

Open
esamson opened this issue Jun 17, 2024 · 0 comments

Comments

@esamson
Copy link

esamson commented Jun 17, 2024

Expected behaviour

Following Docker Image Build Settings, sbt 'show GraalVMNativeImage/packageBin' should work on systems with SELinux enabled.

Actual behaviour

Error: Main entry point class 'foo.bar.Main' neither found on the classpath nor on the modulepath.

Suggestion

Adding the :Z suffix would allow this to work as expected. I think this behaves as a no-op for non-SELinux systems, but we could also make this a configurable setting (or detect the correct default somehow) to be safe.

Information

  • What sbt-native-packager are you using: 1.10.0
  • What sbt version: 1.10.0
  • What is your build system (e.g. Ubuntu, MacOS, Windows, Debian ): Fedora 40
  • What package are you building (e.g. docker, rpm, ...): native image
  • What version has your build tool (find out with e.g. rpm --version): graalVMNativeImageGraalVersion := Some("22")
  • What is your target system (e.g. Ubuntu 16.04, CentOS 7): Fedora 40
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

No branches or pull requests

1 participant