Skip to content

Commit db1be1d

Browse files
Fix opensearch healthcheck (#1746)
* Fix opensearch healthcheck * Add prune before tests * Add flag to auto approve docker prune
1 parent d953c81 commit db1be1d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/run-integration-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
uses: actions/checkout@v4
1818
- name: run tracetesting
1919
run: |
20-
make build && make run-tracetesting
20+
make build && docker system prune -f && make run-tracetesting

docker-compose.minimal.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ services:
657657
ports:
658658
- "9200"
659659
healthcheck:
660-
test: curl -s http://localhost:9200/_cluster/health | grep '"status":"green"'
660+
test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"'
661661
start_period: 10s
662662
interval: 5s
663663
timeout: 10s

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ services:
799799
ports:
800800
- "9200"
801801
healthcheck:
802-
test: curl -s http://localhost:9200/_cluster/health | grep '"status":"green"'
802+
test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"'
803803
start_period: 10s
804804
interval: 5s
805805
timeout: 10s

0 commit comments

Comments
 (0)