Skip to content

feat: add support for opensearch containers#30

Merged
james-lydtech merged 6 commits into
lydtechconsulting:mainfrom
Luke-Campbell:feat/add-opensearch-container
Jun 24, 2025
Merged

feat: add support for opensearch containers#30
james-lydtech merged 6 commits into
lydtechconsulting:mainfrom
Luke-Campbell:feat/add-opensearch-container

Conversation

@Luke-Campbell

Copy link
Copy Markdown
Contributor

No description provided.

.withEnv("discovery.type", OPENSEARCH_DISCOVERY_TYPE)
.withEnv("DISABLE_INSTALL_DEMO_CONFIG", "true")
.withEnv("DISABLE_SECURITY_PLUGIN", "true")
.withEnv("cluster.routing.allocation.disk.threshold_enabled", "false")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

avoiding tests failing to create indexes - especially on CI platforms
https://stackoverflow.com/questions/40736462/aws-elasticsearchservice-index-create-block-exception

Comment thread pom.xml
@@ -109,6 +109,11 @@
<artifactId>kafka</artifactId>
<version>${testcontainers.version}</version>
</dependency>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are these new dependencies actually needed?

@james-lydtech

Copy link
Copy Markdown
Contributor

Needs some readme additions like we have for elastic just for future users please

@rgolder1 rgolder1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • Approved with minor comments.
  • Could you add an entry to the CHANGELOG file please, new version will be 3.10.0?
  • Note when merging the PR please ensure the merge commit starts 'feat' so that the minor version is indeed bumped.

Comment thread documentation/README-opensearch.md Outdated
| opensearch.discovery.type | Whether to form a single node or multi node Opensearch cluster. | `single-node` |
| opensearch.container.logging.enabled | Whether to output the Opensearch Docker logs to the console. | `false` |

The container base URL can be obtained using the `OpensearchClient`:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo: OpensearchClient -> OpensearchCtfClient

Comment thread documentation/README-opensearch.md Outdated

Enable Opensearch via the property `opensearch.enabled`. Opensearch is available on port `9200`.

_note that `elasticsearch.enabled` must be `false` for the opensearch to container to start_

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor typo:
"for the opensearch to container to start"
->
"for the Opensearch container to start"

@james-lydtech james-lydtech merged commit 1f981a1 into lydtechconsulting:main Jun 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants