Skip to content

Commit

Permalink
Merge pull request #8 from esidate/main
Browse files Browse the repository at this point in the history
Migrate to Opensearch 2.2.0
  • Loading branch information
flavienbwk authored Aug 26, 2022
2 parents a4938a4 + 0001044 commit 32ed750
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -35,10 +35,10 @@ 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/).
> 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)

Expand Down Expand Up @@ -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)

Expand Down
18 changes: 9 additions & 9 deletions docker-compose.hot-warm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 32ed750

Please sign in to comment.