-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add workflow to build and install security analytics dashboards plugin #899
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f1be3eb
Initial commit to try using workflow from other fork
derek-ho e7f9bce
setup with backend or job scheduler
derek-ho 6878c67
Use generalized workflows
derek-ho 222b852
Extra dash
derek-ho 3d9e2fe
Correct directory
derek-ho 463cc2d
Revert "Add missing modules common and types (#875)"
derek-ho c9fe6ff
Revert "Revert "Add missing modules common and types (#875)""
derek-ho fbdf602
Single version loose to fix bootstrapping issues
derek-ho 73ddbc3
Add v1 tag
derek-ho b016387
Remove security specific settings
derek-ho bd0b54c
Remove references to security
derek-ho 634aae0
Add loose for windows
derek-ho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: 'Install Dashboards with Plugin via Binary' | ||
|
||
on: [push, pull_request] | ||
env: | ||
OPENSEARCH_VERSION: '3.0.0' | ||
CI: 1 | ||
# avoid warnings like "tput: No value for $TERM and no -T specified" | ||
TERM: xterm | ||
|
||
jobs: | ||
verify-binary-installation: | ||
name: Run binary installation | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
# TODO: add windows support when OSD core is stable on windows | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout Branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set env | ||
run: | | ||
opensearch_version=$(node -p "require('./opensearch_dashboards.json').opensearchDashboardsVersion") | ||
plugin_version=$(node -p "require('./opensearch_dashboards.json').version") | ||
echo "OPENSEARCH_VERSION=$opensearch_version" >> $GITHUB_ENV | ||
echo "PLUGIN_VERSION=$plugin_version" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Run Opensearch | ||
uses: derek-ho/start-opensearch@v2 | ||
with: | ||
opensearch-version: ${{ env.OPENSEARCH_VERSION }} | ||
security-enabled: false | ||
|
||
- name: Run Dashboard | ||
id: setup-dashboards | ||
uses: derek-ho/setup-opensearch-dashboards@v1 | ||
with: | ||
plugin_name: security-analytics-dashboards-plugin | ||
built_plugin_name: security-analytics-dashboards | ||
install_zip: true | ||
|
||
- name: Start the binary | ||
run: | | ||
nohup ./bin/opensearch-dashboards & | ||
working-directory: ${{ steps.setup-dashboards.outputs.dashboards-binary-directory }} | ||
shell: bash | ||
|
||
- name: Health check | ||
run: | | ||
timeout 300 bash -c 'while [[ "$(curl http://localhost:5601/api/status | jq -r '.status.overall.state')" != "green" ]]; do sleep 5; done' | ||
amsiglan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
shell: bash | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary after core added a dependency on cypress 9.5.4. See opensearch-project/OpenSearch-Dashboards#5561 for more context