forked from opensearch-project/opensearch-py-ml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: kalyan <[email protected]>
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
ARG OPENSEARCH_VERSION=latest | ||
FROM opensearchproject/opensearch:$OPENSEARCH_VERSION | ||
|
||
# OPENSEARCH_VERSION can't be used because its outside build scope. | ||
ARG OS_VERSION=latest | ||
# OPENSEARCH_VERSION needs to be redefined as any arg before FROM is outside build scope. | ||
ARG OPENSEARCH_VERSION=latest | ||
ARG opensearch_path=/usr/share/opensearch | ||
ARG opensearch_yml=$opensearch_path/config/opensearch.yml | ||
|
||
ARG SECURE_INTEGRATION | ||
RUN echo "SECURE_INTEGRATION is set to: $SECURE_INTEGRATION" | ||
RUN echo "plugins.ml_commons.only_run_on_ml_node: false" >> $opensearch_yml; | ||
RUN echo "plugins.ml_commons.native_memory_threshold: 100" >> $opensearch_yml; | ||
RUN if [ "$OS_VERSION" == "2.11.0" ] ; then echo "plugins.ml_commons.model_access_control_enabled: true" >> $opensearch_yml; fi | ||
RUN if [ "$OPENSEARCH_VERSION" == "2.11.0" ] ; then echo "plugins.ml_commons.model_access_control_enabled: true" >> $opensearch_yml; fi | ||
RUN if [ "$SECURE_INTEGRATION" != "true" ] ; then echo "plugins.security.disabled: true" >> $opensearch_yml; fi | ||
RUN cat /usr/share/opensearch/config/opensearch.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters