From b7b0b1ffa6ea27961853bdc9463c9be2b0d24147 Mon Sep 17 00:00:00 2001 From: esidate Date: Tue, 23 Aug 2022 15:00:29 +0100 Subject: [PATCH 1/5] Migrate to Opensearch 2.2.0 --- README.md | 2 +- docker-compose.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7f5db78..1a767c8 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ docker-compose up -d Wait about 30 seconds and run `securityadmin` to initialize the security plugin : ```bash -docker-compose exec os01 bash -c "chmod +x plugins/opensearch-security/tools/securityadmin.sh && bash plugins/opensearch-security/tools/securityadmin.sh -cd plugins/opensearch-security/securityconfig -icl -nhnv -cacert config/certificates/ca/ca.pem -cert config/certificates/ca/admin.pem -key config/certificates/ca/admin.key -h localhost" +docker-compose exec os01 bash -c "chmod +x plugins/opensearch-security/tools/securityadmin.sh && bash plugins/opensearch-security/tools/securityadmin.sh -cd config/opensearch-security -icl -nhnv -cacert config/certificates/ca/ca.pem -cert config/certificates/ca/admin.pem -key config/certificates/ca/admin.key -h localhost" ``` > Find all the configuration files in the container's `/usr/share/opensearch/plugins/opensearch-security/securityconfig` directory. You might want to [mount them as volumes](https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker-security/). diff --git a/docker-compose.yml b/docker-compose.yml index 64dd769..38586e4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: os01: restart: always - image: opensearchproject/opensearch:1.2.4 + image: opensearchproject/opensearch:2.2.0 environment: OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM node.name: os01 @@ -32,7 +32,7 @@ services: os02: restart: always - image: opensearchproject/opensearch:1.2.4 + image: opensearchproject/opensearch:2.2.0 environment: OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM node.name: os02 @@ -57,7 +57,7 @@ services: os03: restart: always - image: opensearchproject/opensearch:1.2.4 + image: opensearchproject/opensearch:2.2.0 environment: OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM node.name: os03 @@ -82,7 +82,7 @@ services: kibana: restart: always - image: opensearchproject/opensearch-dashboards:1.2.0 + image: opensearchproject/opensearch-dashboards:2.2.0 ports: - 5601:5601 volumes: From 5e590af30a6ac4d54a0de659a6be35aa2df952e8 Mon Sep 17 00:00:00 2001 From: esidate Date: Tue, 23 Aug 2022 15:05:30 +0100 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a767c8..f8b6627 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # OpenSearch - Docker - Compose -![OpenSearch version](https://img.shields.io/badge/OpenSearch%20version-1.2.4-blue) +![OpenSearch version](https://img.shields.io/badge/OpenSearch%20version-2.2.0-blue) Dockerized cluster architecture for OpenSearch with compose. From c7139fad4762e87fafdfdb5f88e3c2e0c0fc0a1a Mon Sep 17 00:00:00 2001 From: esidate Date: Tue, 23 Aug 2022 15:07:53 +0100 Subject: [PATCH 3/5] Bump to Opensearch 2.2.0 in docker-compose.hot-warm.yml --- docker-compose.hot-warm.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docker-compose.hot-warm.yml b/docker-compose.hot-warm.yml index 51345e8..67ee160 100644 --- a/docker-compose.hot-warm.yml +++ b/docker-compose.hot-warm.yml @@ -10,7 +10,7 @@ services: # Needs : heavy CPU, medium memory os00: restart: always - image: opensearchproject/opensearch:1.2.4 + image: opensearchproject/opensearch:2.2.0 environment: OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM node.name: os00 @@ -48,7 +48,7 @@ services: # Needs : low CPU, low memory os01: restart: always - image: opensearchproject/opensearch:1.2.4 + image: opensearchproject/opensearch:2.2.0 environment: OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM node.name: os01 @@ -82,7 +82,7 @@ services: # Needs : medium CPU, heavy memory, high-speed storage os02: restart: always - image: opensearchproject/opensearch:1.2.4 + image: opensearchproject/opensearch:2.2.0 environment: OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM node.name: os02 @@ -116,7 +116,7 @@ services: # Needs : medium CPU, heavy memory, high-speed storage os03: restart: always - image: opensearchproject/opensearch:1.2.4 + image: opensearchproject/opensearch:2.2.0 environment: OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM node.name: os03 @@ -150,7 +150,7 @@ services: # Needs : medium CPU, heavy memory, high-speed storage os04: restart: always - image: opensearchproject/opensearch:1.2.4 + image: opensearchproject/opensearch:2.2.0 environment: OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM node.name: os04 @@ -182,7 +182,7 @@ services: # Needs : lower-speed CPU, heavy memory, lower-speed storage os05: restart: always - image: opensearchproject/opensearch:1.2.4 + image: opensearchproject/opensearch:2.2.0 environment: OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM node.name: os05 @@ -214,7 +214,7 @@ services: # Needs : lower-speed CPU, heavy memory, lower-speed storage os06: restart: always - image: opensearchproject/opensearch:1.2.4 + image: opensearchproject/opensearch:2.2.0 environment: OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM node.name: os06 @@ -246,7 +246,7 @@ services: # Needs : lower-speed CPU, heavy memory, lower-speed storage os07: restart: always - image: opensearchproject/opensearch:1.2.4 + image: opensearchproject/opensearch:2.2.0 environment: OPENSEARCH_JAVA_OPTS: "-Xms1024m -Xmx1024m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM node.name: os07 @@ -273,7 +273,7 @@ services: kibana: restart: always - image: opensearchproject/opensearch-dashboards:1.2.0 + image: opensearchproject/opensearch-dashboards:2.2.0 ports: - 5601:5601 volumes: From ae66920eb8597c583070b1dddcfb25cfee31c181 Mon Sep 17 00:00:00 2001 From: esidate Date: Tue, 23 Aug 2022 15:38:44 +0100 Subject: [PATCH 4/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f8b6627..03d19e3 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Wait about 30 seconds and run `securityadmin` to initialize the security plugin docker-compose exec os01 bash -c "chmod +x plugins/opensearch-security/tools/securityadmin.sh && bash plugins/opensearch-security/tools/securityadmin.sh -cd config/opensearch-security -icl -nhnv -cacert config/certificates/ca/ca.pem -cert config/certificates/ca/admin.pem -key config/certificates/ca/admin.key -h localhost" ``` -> Find all the configuration files in the container's `/usr/share/opensearch/plugins/opensearch-security/securityconfig` directory. You might want to [mount them as volumes](https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker-security/). +> Find all the configuration files in the container's `/usr/share/opensearch/config/opensearch-security` directory. You might want to [mount them as volumes](https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker-security/). Access OpenSearch Dashboards through [https://localhost:5601](https://localhost:5601) From 00010448e613eca4ecfbd11ae1988d219b140a1d Mon Sep 17 00:00:00 2001 From: esidate Date: Tue, 23 Aug 2022 15:41:53 +0100 Subject: [PATCH 5/5] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03d19e3..f272cfd 100644 --- a/README.md +++ b/README.md @@ -81,10 +81,10 @@ docker-compose -f docker-compose.hot-warm.yml up -d Wait about 60 seconds and run `securityadmin` to initialize the security plugin : ```bash -docker-compose exec os01 bash -c "chmod +x plugins/opensearch-security/tools/securityadmin.sh && bash plugins/opensearch-security/tools/securityadmin.sh -cd plugins/opensearch-security/securityconfig -icl -nhnv -cacert config/certificates/ca/ca.pem -cert config/certificates/ca/admin.pem -key config/certificates/ca/admin.key -h localhost" +docker-compose exec os01 bash -c "chmod +x plugins/opensearch-security/tools/securityadmin.sh && bash plugins/opensearch-security/tools/securityadmin.sh -cd config/opensearch-security -icl -nhnv -cacert config/certificates/ca/ca.pem -cert config/certificates/ca/admin.pem -key config/certificates/ca/admin.key -h localhost" ``` -> Find all the configuration files in the container's `/usr/share/opensearch/plugins/opensearch-security/securityconfig` directory. You might want to [mount them as volumes](https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker-security/). +> Find all the configuration files in the container's `/usr/share/opensearch/config/opensearch-security` directory. You might want to [mount them as volumes](https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker-security/). Access OpenSearch Dashboards through [https://localhost:5601](https://localhost:5601)