elasticsearch/plugins: build with "modules" from elasticsearch
Fixes dependency error while building search-guard: Exception in thread "main" java.lang.IllegalArgumentException: Missing plugin [lang-painless], dependency of [search-guard-7]
This commit is contained in:
parent
8fba8ef596
commit
1faa5d5915
@ -4,13 +4,14 @@ let
|
||||
esVersion = elasticsearch.version;
|
||||
|
||||
esPlugin =
|
||||
a@{ pluginName
|
||||
, installPhase ? ''
|
||||
a@{
|
||||
pluginName,
|
||||
installPhase ? ''
|
||||
mkdir -p $out/config
|
||||
mkdir -p $out/plugins
|
||||
ln -s ${elasticsearch}/lib $out/lib
|
||||
ln -s ${elasticsearch}/lib ${elasticsearch}/modules $out
|
||||
ES_HOME=$out ${elasticsearch}/bin/elasticsearch-plugin install --batch -v file://$src
|
||||
rm $out/lib
|
||||
rm $out/lib $out/modules
|
||||
''
|
||||
, ...
|
||||
}:
|
||||
|
Loading…
Reference in New Issue
Block a user