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 ef4c7b466..e0408bb06 100644 --- a/boot-opensearch-sample/pom.xml +++ b/boot-opensearch-sample/pom.xml @@ -22,7 +22,7 @@ 21 2.5.0 - 1.3.0 + 1.4.0 ${project.build.directory}/test-results 2.43.0 @@ -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();