Check if a container runtime is set or the container build is enabled for adding the librocksdbjni-linux64.so

This commit is contained in:
Sebastian Wastl
2020-02-03 08:18:55 +01:00
parent 75919c2e5d
commit 0d04b73a33

View File

@@ -107,7 +107,7 @@ class KafkaStreamsProcessor {
private void addSupportForRocksDbLib(BuildProducer<NativeImageResourceBuildItem> nativeLibs, NativeConfig nativeConfig) {
// for RocksDB, either add linux64 native lib when targeting containers
if (nativeConfig.containerBuild) {
if (nativeConfig.containerRuntime.isPresent() || nativeConfig.containerBuild) {
nativeLibs.produce(new NativeImageResourceBuildItem("librocksdbjni-linux64.so"));
}
// otherwise the native lib of the platform this build runs on