Skip to content

Commit

Permalink
testing docker compose change
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Nov 9, 2024
1 parent 0b3279b commit a49a4e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
31 changes: 19 additions & 12 deletions tests/replication/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
version: '3'

services:
opensearch-node1:
opensearch-leader-node1:

Check failure on line 4 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / check

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'OpenSearch' instead of 'opensearch'. Raw Output: {"message": "[Vale.Terms] Use 'OpenSearch' instead of 'opensearch'.", "location": {"path": "tests/replication/docker-compose.yml", "range": {"start": {"line": 4, "column": 3}}}, "severity": "ERROR"}
image: ${OPENSEARCH_DOCKER_HUB_PROJECT:-opensearchproject}/opensearch:${OPENSEARCH_VERSION:-latest}${OPENSEARCH_DOCKER_REF}

Check failure on line 5 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / check

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'OpenSearch' instead of 'opensearch'. Raw Output: {"message": "[Vale.Terms] Use 'OpenSearch' instead of 'opensearch'.", "location": {"path": "tests/replication/docker-compose.yml", "range": {"start": {"line": 5, "column": 64}}}, "severity": "ERROR"}
environment:
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!}
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
- bootstrap.memory_lock=true

Check failure on line 9 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / check

[vale] reported by reviewdog 🐶 [OpenSearch.SpacingPunctuation] There should be no space before and one space after the punctuation mark in 'bootstrap.memory'. Raw Output: {"message": "[OpenSearch.SpacingPunctuation] There should be no space before and one space after the punctuation mark in 'bootstrap.memory'.", "location": {"path": "tests/replication/docker-compose.yml", "range": {"start": {"line": 9, "column": 9}}}, "severity": "ERROR"}
- cluster.initial_master_nodes=opensearch-node1,opensearch-node2
- cluster.name=opensearch-cluster
- discovery.seed_hosts=opensearch-node1,opensearch-node2
- node.name=opensearch-node1
- cluster.initial_master_nodes=opensearch-leader-node1

Check failure on line 10 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / check

[vale] reported by reviewdog 🐶 [OpenSearch.SpacingPunctuation] There should be no space before and one space after the punctuation mark in 'cluster.initial'. Raw Output: {"message": "[OpenSearch.SpacingPunctuation] There should be no space before and one space after the punctuation mark in 'cluster.initial'.", "location": {"path": "tests/replication/docker-compose.yml", "range": {"start": {"line": 10, "column": 9}}}, "severity": "ERROR"}

Check failure on line 10 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / check

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'OpenSearch' instead of 'opensearch'. Raw Output: {"message": "[Vale.Terms] Use 'OpenSearch' instead of 'opensearch'.", "location": {"path": "tests/replication/docker-compose.yml", "range": {"start": {"line": 10, "column": 38}}}, "severity": "ERROR"}
- cluster.name=leader-cluster

Check failure on line 11 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / check

[vale] reported by reviewdog 🐶 [OpenSearch.SpacingPunctuation] There should be no space before and one space after the punctuation mark in 'cluster.name'. Raw Output: {"message": "[OpenSearch.SpacingPunctuation] There should be no space before and one space after the punctuation mark in 'cluster.name'.", "location": {"path": "tests/replication/docker-compose.yml", "range": {"start": {"line": 11, "column": 9}}}, "severity": "ERROR"}
- discovery.seed_hosts=opensearch-leader-node1

Check failure on line 12 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / check

[vale] reported by reviewdog 🐶 [OpenSearch.SpacingPunctuation] There should be no space before and one space after the punctuation mark in 'discovery.seed'. Raw Output: {"message": "[OpenSearch.SpacingPunctuation] There should be no space before and one space after the punctuation mark in 'discovery.seed'.", "location": {"path": "tests/replication/docker-compose.yml", "range": {"start": {"line": 12, "column": 9}}}, "severity": "ERROR"}

Check failure on line 12 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / check

[vale] reported by reviewdog 🐶 [Vale.Terms] Use 'OpenSearch' instead of 'opensearch'. Raw Output: {"message": "[Vale.Terms] Use 'OpenSearch' instead of 'opensearch'.", "location": {"path": "tests/replication/docker-compose.yml", "range": {"start": {"line": 12, "column": 30}}}, "severity": "ERROR"}
- node.name=opensearch-leader-node1

Check failure on line 13 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / check

[vale] reported by reviewdog 🐶 [OpenSearch.SpacingPunctuation] There should be no space before and one space after the punctuation mark in 'node.name'. Raw Output: {"message": "[OpenSearch.SpacingPunctuation] There should be no space before and one space after the punctuation mark in 'node.name'.", "location": {"path": "tests/replication/docker-compose.yml", "range": {"start": {"line": 13, "column": 9}}}, "severity": "ERROR"}
- path.repo=/tmp/opensearch/repo
- plugins.index_state_management.job_interval=1
- network.host=0.0.0.0

Check failure on line 16 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / lint

Expected sequence values to be in ascending order. 'network.host=0.0.0.0' should be before 'plugins.index_state_management.job_interval=1'
ulimits:
memlock:
soft: -1
Expand All @@ -24,28 +25,34 @@ services:
opensearch-net:
ipv4_address: 172.22.0.3

opensearch-node2:
opensearch-follower-node1:
image: ${OPENSEARCH_DOCKER_HUB_PROJECT:-opensearchproject}/opensearch:${OPENSEARCH_VERSION:-latest}${OPENSEARCH_DOCKER_REF}
environment:
- 'OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!}'
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!}
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
- bootstrap.memory_lock=true
- cluster.initial_master_nodes=opensearch-node1,opensearch-node2
- cluster.name=opensearch-cluster
- discovery.seed_hosts=opensearch-node1,opensearch-node2
- node.name=opensearch-node2
- cluster.initial_master_nodes=opensearch-follower-node1
- cluster.name=follower-cluster
- discovery.seed_hosts=opensearch-follower-node1
- node.name=opensearch-follower-node1
- path.repo=/tmp/opensearch/repo
- plugins.index_state_management.job_interval=1
- network.host=0.0.0.0

Check failure on line 40 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / lint

Expected sequence values to be in ascending order. 'network.host=0.0.0.0' should be before 'plugins.index_state_management.job_interval=1'
- cluster.remote.leader-cluster.seeds=172.22.0.3:9300

Check failure on line 41 in tests/replication/docker-compose.yml

View workflow job for this annotation

GitHub Actions / lint

Expected sequence values to be in ascending order. 'cluster.remote.leader-cluster.seeds=172.22.0.3:9300' should be before 'network.host=0.0.0.0'
ulimits:
memlock:
soft: -1
hard: -1
ports:
- '9201:9200'
- '9601:9600'
networks:
opensearch-net:
ipv4_address: 172.22.0.4

networks:
opensearch-net:
driver: bridge
ipam:
config:
- subnet: 172.22.0.0/24
- subnet: 172.22.0.0/24
2 changes: 1 addition & 1 deletion tests/replication/replica.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ chapters:
persistent:
cluster:
remote:
my-connection-alias:
leader-cluster:
seeds: ['172.22.0.3:9300']
response:
status: 200
Expand Down

0 comments on commit a49a4e5

Please sign in to comment.