Skip to content

Commit

Permalink
Refactors changes related to demo configuration (#526)
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura authored Feb 6, 2024
1 parent 344cae1 commit a8a8365
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ This package uses the [Gradle](https://docs.gradle.org/current/userguide/usergui
### Setup

Currently, for the alpha development-only source code release, we support installing and running the RCA framework only on OpenSearch Docker containers.

**NOTE:** If planning to use this framework with security plugin, the demo configuration requires an initial admin password to be set. You can set this by creating a .env file next to the docker compose and add following line to it:
`OPENSEARCH_INITIAL_ADMIN_PASSWORD=<your-password>`
There is a password validation in place, which requires a strong password.

You can use the packaged Dockerfile and docker-compose.yml files [here](./docker) to spin up a cluster with RCA framework installed.

Expand Down
2 changes: 2 additions & 0 deletions docker/docker-compose.cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ services:
- cluster.initial_cluster_manager_nodes=opensearch1
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_INITIAL_ADMIN_PASSWORD}"
opensearch2:
environment:
- node.name=opensearch2
- discovery.seed_hosts=opensearch1
- cluster.initial_cluster_manager_nodes=opensearch1
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_INITIAL_ADMIN_PASSWORD}"
2 changes: 1 addition & 1 deletion docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fi
if [[ -d "/usr/share/opensearch/plugins/opensearch_security" ]]; then
# Install Demo certificates for Security Plugin and update the opensearch.yml
# file to use those certificates.
/usr/share/opensearch/plugins/opensearch_security/tools/install_demo_configuration.sh -y -i -s
/usr/share/opensearch/plugins/opensearch_security/tools/install_demo_configuration.sh -y -i -s || exit 1
fi

if [[ -d "/usr/share/opensearch/plugins/opensearch-performance-analyzer" ]]; then
Expand Down

0 comments on commit a8a8365

Please sign in to comment.