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

Extracts demo configuration script to a java tool #3669

Merged
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9f4d899
Adds java tool for installing demo configuration
DarshitChanpura Nov 6, 2023
b89a43d
Adds temp scripts to test the new java tool
DarshitChanpura Nov 6, 2023
f38aeff
Successful testing on local environment in MacOS
DarshitChanpura Nov 6, 2023
dfcf950
Modifies test scripts to pass script dir path as an argument
DarshitChanpura Nov 6, 2023
cf15bae
Adds password generation and validation capability
DarshitChanpura Nov 7, 2023
bbacf0e
Updates existing scripts to reflect changes to install demo configura…
DarshitChanpura Nov 7, 2023
9e9b50f
Updates options reading workflow to skip first argument as that is th…
DarshitChanpura Nov 7, 2023
ddebaad
Adds a new option to accept the execution environment
DarshitChanpura Nov 7, 2023
d0e0fec
Skips password validation if the new option `-t` is passed to set tes…
DarshitChanpura Nov 8, 2023
88bb1e2
Adds some formatting change around printing password
DarshitChanpura Nov 8, 2023
69d8ec0
Updates plugin install workflows to pass option `-t` to skip password…
DarshitChanpura Nov 8, 2023
729a65d
Fixes the tool to address issue when running on Windows
DarshitChanpura Nov 8, 2023
7771f16
Makes minor modifications around os name usage
DarshitChanpura Nov 8, 2023
d0e6459
Adds javadoc and change execution environment value keyword from prod…
DarshitChanpura Nov 9, 2023
af7585c
Breaks admin password setter into two methods
DarshitChanpura Nov 9, 2023
5829e68
Fixes failures for windows
DarshitChanpura Nov 9, 2023
11f0218
Fixes help method to exit when done displaying help
DarshitChanpura Nov 9, 2023
2f75836
Fixes spotbugs errors
DarshitChanpura Nov 10, 2023
e1c7c08
Fixes edge-case with assumeyes functionality
DarshitChanpura Nov 10, 2023
354e952
Addresses some spelling errors
DarshitChanpura Nov 13, 2023
2b9c980
Merge remote-tracking branch 'upstream/main' into demo-config-java-tool
DarshitChanpura Nov 13, 2023
ed76091
Rewrites the java tool to be modular
DarshitChanpura Nov 13, 2023
5866fb9
Formats some print statements
DarshitChanpura Nov 13, 2023
a2c327d
Refactors some class names
DarshitChanpura Nov 13, 2023
a46544c
Merge remote-tracking branch 'upstream/main' into demo-config-java-tool
DarshitChanpura Nov 15, 2023
f60a315
Exits script when java is not found
DarshitChanpura Nov 15, 2023
680306b
Fixes checkstyle violations due to recent changes to a file in main
DarshitChanpura Nov 15, 2023
3d8449f
Makes all static methods package-private for tests
DarshitChanpura Nov 15, 2023
4244150
Remove unwanted variable, adds a missing catch block and converts enu…
DarshitChanpura Nov 16, 2023
f9fb8b3
Merge remote-tracking branch 'upstream/main' into demo-config-java-tool
DarshitChanpura Nov 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/plugin_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ jobs:
run: |
cat > setup.sh <<'EOF'
chmod +x ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/plugins/${{ env.PLUGIN_NAME }}/tools/install_demo_configuration.sh
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/plugins/${{ env.PLUGIN_NAME }}/tools/install_demo_configuration.sh"
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/plugins/${{ env.PLUGIN_NAME }}/tools/install_demo_configuration.sh -t"
EOF

- name: Create Setup Script
if: ${{ runner.os == 'Windows' }}
run: |
New-Item .\setup.bat -type file
Set-Content .\setup.bat -Value "powershell.exe .\opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT\plugins\${{ env.PLUGIN_NAME }}\tools\install_demo_configuration.bat -i -c -y"
Set-Content .\setup.bat -Value "powershell.exe .\opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT\plugins\${{ env.PLUGIN_NAME }}\tools\install_demo_configuration.bat -i -c -y -t"
Get-Content .\setup.bat

- name: Run Opensearch with A Single Plugin
Expand Down
Loading
Loading