Skip to content

Commit

Permalink
Added healthcheck for JG & wait with timeout for docker compose up in…
Browse files Browse the repository at this point in the history
… GH Action
  • Loading branch information
criminosis committed Jul 13, 2024
1 parent 6a0f4c5 commit 0f4aee6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- name: Starting Gremlin Servers
run: |
docker-compose -f ./docker-compose/docker-compose.yaml up -d
docker-compose -f ./docker-compose/docker-compose.yaml up -d --wait --wait-timeout 30
env:
GREMLIN_SERVER: ${{ matrix.gremlin-server }}

Expand Down
5 changes: 5 additions & 0 deletions docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ services:
- JANUS_PROPS_TEMPLATE=inmemory
ports:
- "8184:8182"
healthcheck:
test: ["CMD", "bin/gremlin.sh", "-e", "scripts/remote-connect.groovy"]
interval: 10s
timeout: 30s
retries: 3

0 comments on commit 0f4aee6

Please sign in to comment.