Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
Signed-off-by: kalyanr <[email protected]>
  • Loading branch information
rawwar committed Nov 13, 2023
1 parent ba60da7 commit 075a763
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .ci/opensearch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ ARG opensearch_yml=$opensearch_path/config/opensearch.yml
ARG 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 [[ "$(printf '%s\n' "2.8.0" "$OPENSEARCH_VERSION" | sort -V | head -n 1)" == "$OPENSEARCH_VERSION" ]]; then \
echo "Enabling model access control"; \
RUN if [ "$OPENSEARCH_VERSION" == "2.11.0" ] ; then \
echo "plugins.ml_commons.model_access_control_enabled: true" >> $opensearch_yml; \
echo "plugins.ml_commons.allow_registering_model_via_local_file: true" >> $opensearch_yml; \
echo "plugins.ml_commons.allow_registering_model_via_url: true" >> $opensearch_yml; \
fi
fi
RUN if [ "$SECURE_INTEGRATION" != "true" ] ; then echo "plugins.security.disabled: true" >> $opensearch_yml; fi

0 comments on commit 075a763

Please sign in to comment.