From 68cacaafd310b9a7cb4caf5fa33122591bba044b Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Wed, 22 May 2024 15:10:22 +0530 Subject: [PATCH] feat : fix issue --- boot-opensearch-sample/docker/docker-compose.yml | 1 + boot-opensearch-sample/pom.xml | 6 ++++++ .../com/example/opensearch/common/ContainersConfig.java | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/boot-opensearch-sample/docker/docker-compose.yml b/boot-opensearch-sample/docker/docker-compose.yml index 1b38a54bb..99dc82b0e 100644 --- a/boot-opensearch-sample/docker/docker-compose.yml +++ b/boot-opensearch-sample/docker/docker-compose.yml @@ -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" diff --git a/boot-opensearch-sample/pom.xml b/boot-opensearch-sample/pom.xml index 1afd4d411..e0408bb06 100644 --- a/boot-opensearch-sample/pom.xml +++ b/boot-opensearch-sample/pom.xml @@ -66,6 +66,12 @@ spring-data-opensearch-starter ${opensearch.version} + + + com.fasterxml.jackson.core + jackson-core + 2.17.1 + org.springframework.boot diff --git a/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java b/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java index 22446de3f..290bede6e 100644 --- a/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java +++ b/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java @@ -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();