mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix loader paths for opensearch
try appending to library path env vars instead of overriding java.library.path which clobbers other necessary paths
This commit is contained in:
parent
488f027e5d
commit
ca17ab65c1
1 changed files with 5 additions and 1 deletions
|
@ -95,8 +95,12 @@ build:
|
||||||
zip -r opensearch-knn-{{version}}.0.zip lib/
|
zip -r opensearch-knn-{{version}}.0.zip lib/
|
||||||
{{prefix}}/bin/opensearch-plugin install --batch file:`pwd`/opensearch-knn-{{version}}.0.zip
|
{{prefix}}/bin/opensearch-plugin install --batch file:`pwd`/opensearch-knn-{{version}}.0.zip
|
||||||
working-directory: k-NN
|
working-directory: k-NN
|
||||||
- run: echo 'export OPENSEARCH_JAVA_OPTS="-Djava.library.path=$OPENSEARCH_HOME/plugins/opensearch-knn/lib $OPENSEARCH_JAVA_OPTS"' >> opensearch-env
|
- run: echo 'export JAVA_LIBRARY_PATH="$OPENSEARCH_HOME/plugins/opensearch-knn/lib:$JAVA_LIBRARY_PATH"' >> opensearch-env
|
||||||
working-directory: ${{prefix}}/bin
|
working-directory: ${{prefix}}/bin
|
||||||
|
if: darwin
|
||||||
|
- run: echo 'export LD_LIBRARY_PATH="$OPENSEARCH_HOME/plugins/opensearch-knn/lib:$LD_LIBRARY_PATH"' >> opensearch-env
|
||||||
|
working-directory: ${{prefix}}/bin
|
||||||
|
if: linux
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/opensearch
|
- bin/opensearch
|
||||||
|
|
Loading…
Reference in a new issue