Skip to content

Commit

Permalink
Format SearchClusterContainer
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Kurait <[email protected]>
  • Loading branch information
AndreKurait committed Dec 10, 2024
1 parent 9a095bc commit bfb5704
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class SearchClusterContainer extends GenericContainer<SearchClusterContai
);

public static final ContainerVersion ES_V5_6_13 = new ElasticsearchVersion(
"docker.elastic.co/elasticsearch/elasticsearch:5.6.13",
Version.fromString("ES 5.6.13")
"docker.elastic.co/elasticsearch/elasticsearch:5.6.13",
Version.fromString("ES 5.6.13")
);


Expand All @@ -51,8 +51,8 @@ public class SearchClusterContainer extends GenericContainer<SearchClusterContai

private enum INITIALIZATION_FLAVOR {
BASE(Map.of("discovery.type", "single-node",
"path.repo", CLUSTER_SNAPSHOT_DIR,
"ES_JAVA_OPTS", "-Xms512m -Xmx512m")),
"path.repo", CLUSTER_SNAPSHOT_DIR,
"ES_JAVA_OPTS", "-Xms512m -Xmx512m")),
ELASTICSEARCH(
new ImmutableMap.Builder<String, String>().putAll(BASE.getEnvVariables())
.put("xpack.security.enabled", "false")
Expand All @@ -62,9 +62,9 @@ private enum INITIALIZATION_FLAVOR {
.build()),
OPENSEARCH(
new ImmutableMap.Builder<String, String>().putAll(BASE.getEnvVariables())
.put("plugins.security.disabled", "true")
.put("OPENSEARCH_INITIAL_ADMIN_PASSWORD", "SecurityIsDisabled123$%^")
.build()
.put("plugins.security.disabled", "true")
.put("OPENSEARCH_INITIAL_ADMIN_PASSWORD", "SecurityIsDisabled123$%^")
.build()
);

@Getter
Expand Down

0 comments on commit bfb5704

Please sign in to comment.