Skip to content

Commit

Permalink
feat : fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli authored May 22, 2024
1 parent 75f7ebd commit 68cacaa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions boot-opensearch-sample/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
- "9600:9600"
environment:
- discovery.type=single-node
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=admin
- "DISABLE_SECURITY_PLUGIN=true"
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"

Expand Down
6 changes: 6 additions & 0 deletions boot-opensearch-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@
<artifactId>spring-data-opensearch-starter</artifactId>
<version>${opensearch.version}</version>
</dependency>
<!-- remove when SB updates -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.17.1</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public class ContainersConfig {

@Container
public static OpensearchContainer<?> openSearchContainer =
new OpensearchContainer<>(DockerImageName.parse("opensearchproject/opensearch:2.12.0"));
new OpensearchContainer<>(DockerImageName.parse("opensearchproject/opensearch:2.14.0"))
.withEnv("OPENSEARCH_INITIAL_ADMIN_PASSWORD", "admin");

static {
openSearchContainer.start();
Expand Down

0 comments on commit 68cacaa

Please sign in to comment.