File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7373 ports :
7474 - 8848:8848
7575 - 9848:9848
76- options : >-
77- --name nacos-server
78- --health-cmd "curl -f http://localhost:8848/nacos/v1/console/health/readiness"
79- --health-interval 10s
80- --health-timeout 5s
81- --health-retries 10
8276 steps :
8377 - uses : actions/checkout@v4
8478
@@ -114,12 +108,21 @@ jobs:
114108 - name : Wait For Nacos Ports
115109 run : |
116110 set -euo pipefail
117- echo "Waiting for Nacos HTTP API on 8848..."
118- timeout 60s bash -c 'until curl -sf http://localhost:8848/nacos/v1/console/health/readiness > /dev/null ; do sleep 1; done'
111+ echo "Waiting for Nacos HTTP port on 8848..."
112+ timeout 180s bash -c 'until echo > /dev/tcp/localhost/8848 ; do sleep 1; done'
119113 echo "Waiting for Nacos gRPC port on 9848..."
120- timeout 60s bash -c 'until echo > /dev/tcp/localhost/9848; do sleep 1; done'
114+ timeout 180s bash -c 'until echo > /dev/tcp/localhost/9848; do sleep 1; done'
115+ sleep 8
121116 echo "Nacos 8848/9848 are both reachable."
122117
118+ - name : Dump Nacos Service Logs (On Failure)
119+ if : failure()
120+ run : |
121+ set +e
122+ echo "Nacos service container id: ${{ job.services.nacos.id }}"
123+ docker ps -a
124+ docker logs "${{ job.services.nacos.id }}" | tail -n 300
125+
123126 - name : Start RPC Provider (Java Server)
124127 run : |
125128 set -euo pipefail
You can’t perform that action at this time.
0 commit comments