Skip to content

Commit

Permalink
update ld_library_path for knn
Browse files Browse the repository at this point in the history
Signed-off-by: John Mazanec <jmazane@amazon.com>
  • Loading branch information
jmazanec15 committed Nov 3, 2021
1 parent 11cff07 commit 0d1be5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/release/dockerfiles/opensearch.al2.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ WORKDIR $OPENSEARCH_HOME
# Set $JAVA_HOME
RUN echo "export JAVA_HOME=$OPENSEARCH_HOME/jdk" >> /etc/profile.d/java_home.sh

# Copy KNN Lib
RUN cp -v plugins/opensearch-knn/knnlib/lib*.so /usr/lib
# Add k-NN lib directory to library loading path variable
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$OPENSEARCH_HOME/plugins/opensearch-knn/knnlib"

# Change user
USER $UID
Expand Down

0 comments on commit 0d1be5f

Please sign in to comment.