File tree 1 file changed +5
-3
lines changed
docker/release/dockerfiles
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,13 @@ ENV PATH=$PATH:$JAVA_HOME/bin:$OPENSEARCH_HOME/bin
85
85
# Add k-NN lib directory to library loading path variable
86
86
ENV LD_LIBRARY_PATH="$OPENSEARCH_HOME/plugins/opensearch-knn/lib"
87
87
88
- # Replace libstdc++.so.6.0.29 with libstdc++.so.6.0.30 to support k-NN avx512_spr
88
+ # Replace libstdc++.so.6.0.29 with libstdc++.so.6.0.30 to support k-NN avx512_spr on x64 only
89
89
# https://github.com/opensearch-project/opensearch-build/issues/5226
90
90
# https://github.com/opensearch-project/k-NN/issues/2484
91
- RUN curl -SLO https://ci.opensearch.org/ci/dbc/tools/gcc/libstdcpp.so.6.0.30.stripped.tar.gz && \
92
- tar -xzf libstdcpp.so.6.0.30.stripped.tar.gz -C /lib64
91
+ RUN if [ `uname -m` = "x86_64" ]; then \
92
+ curl -SLO https://ci.opensearch.org/ci/dbc/tools/gcc/libstdcpp/x64/libstdcpp.so.6.0.30.stripped.tar.gz && \
93
+ tar -xzf libstdcpp.so.6.0.30.stripped.tar.gz -C /lib64 && rm -v libstdcpp.so.6.0.30.stripped.tar.gz; \
94
+ fi
93
95
94
96
# Change user
95
97
USER $UID
You can’t perform that action at this time.
0 commit comments