Skip to content

Commit

Permalink
Fix opensearch healthcheck (#1746)
Browse files Browse the repository at this point in the history
* Fix opensearch healthcheck

* Add prune before tests

* Add flag to auto approve docker prune
  • Loading branch information
julianocosta89 authored Oct 22, 2024
1 parent d953c81 commit db1be1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
uses: actions/checkout@v4
- name: run tracetesting
run: |
make build && make run-tracetesting
make build && docker system prune -f && make run-tracetesting
2 changes: 1 addition & 1 deletion docker-compose.minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ services:
ports:
- "9200"
healthcheck:
test: curl -s http://localhost:9200/_cluster/health | grep '"status":"green"'
test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"'
start_period: 10s
interval: 5s
timeout: 10s
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ services:
ports:
- "9200"
healthcheck:
test: curl -s http://localhost:9200/_cluster/health | grep '"status":"green"'
test: curl -s http://localhost:9200/_cluster/health | grep -E '"status":"(green|yellow)"'
start_period: 10s
interval: 5s
timeout: 10s
Expand Down

0 comments on commit db1be1d

Please sign in to comment.