Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly separate 1.x/2.x/default opensearch docker entrypoint like in opensearch-dashboards #4452

Conversation

peterzhuamazon
Copy link
Member

@peterzhuamazon peterzhuamazon commented Feb 14, 2024

Description

Properly separate 1.x/2.x/default opensearch docker entrypoint like in opensearch-dashboards

Issues Resolved

#4445
#4115
A follow up to #4446 and #4450.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…n opensearch-dashboards

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0acb9ca) 91.55% compared to head (ad9a70a) 91.55%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4452   +/-   ##
=======================================
  Coverage   91.55%   91.55%           
=======================================
  Files         190      190           
  Lines        6214     6214           
=======================================
  Hits         5689     5689           
  Misses        525      525           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@DarshitChanpura DarshitChanpura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems like a big change for docker, not sure how it could be tested. Maybe with an RC?

```
Note: For OpenSearch > 2.11.1 and > 1.3.14, `DISABLE_SECURITY_PLUGIN` when set to true will automatically disable the security demo configuration setup and will no longer require `DISABLE_INSTALL_DEMO_CONFIG` to be explicitly set.
Note: For OpenSearch 2.12 and later, `DISABLE_SECURITY_PLUGIN` when set to true will automatically disable the security demo configuration setup and will no longer require `DISABLE_INSTALL_DEMO_CONFIG` to be explicitly set.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qq, what happens for release 1.3.15 and 2.11.2?

Copy link
Member Author

@peterzhuamazon peterzhuamazon Feb 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. There is no 2.11.2 if 2.12 is released.
  2. 1.3.15 use the same entrypoint as 1.3.14 since 1.x/2.x/default.x are separate now.
  3. 1.x entrypoint exactly the same as 1.3.14 while 2.x and default are the same following the latest one.

SECURITY_PLUGIN="opensearch-security"

if [ -d "$OPENSEARCH_HOME/plugins/$SECURITY_PLUGIN" ]; then
if [ "$DISABLE_INSTALL_DEMO_CONFIG" = "true" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not keep it same as 2.x? If I understand correctly this is the only difference i see between this file and one for 2.x

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point to do the separation is to keep 1.x behavior while only change 2.x since admin:admin only touch 2.x. I am not saying the original implementation is the best, but I try to keep 1.x as it is, not getting affected.

@DarshitChanpura
Copy link
Member

the changes look good to me based on the responses from the comments. One final question I have is will this be test-able only after RC generation?

@peterzhuamazon
Copy link
Member Author

the changes look good to me based on the responses from the comments. One final question I have is will this be test-able only after RC generation?

I test the build on local for both 1 and 2 and they both goes up.

@peterzhuamazon
Copy link
Member Author

Adding @bbarani @prudhvigodithi for review here.

@peterzhuamazon peterzhuamazon merged commit 817faeb into opensearch-project:main Feb 14, 2024
@peterzhuamazon peterzhuamazon deleted the docker-proper-entrypoint branch February 14, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants