File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test Healthcheck DSL - Service Containers
2+ on :
3+ workflow_dispatch :
4+ push :
5+ branches :
6+ - feature/service-container-healthcheck
7+
8+ jobs :
9+ test-healthcheck :
10+ runs-on : self-hosted
11+
12+ services :
13+ minio :
14+ image : quay.io/minio/minio:latest
15+ healthcheck-cmd : " curl -f http://localhost:9000/minio/health/live || exit 1"
16+ healthcheck-interval : 30s
17+ healthcheck-timeout : 10s
18+ healthcheck-retries : 5
19+ env :
20+ MINIO_ROOT_USER : minioadmin
21+ MINIO_ROOT_PASSWORD : minioadmin
22+ ports :
23+ - 9000:9000
24+ - 9001:9001
25+ volumes :
26+ - minio-data:/data
27+ command : server /data --console-address ":9001"
28+
29+ redis :
30+ image : redis:7-alpine
31+ healthcheck-cmd : " redis-cli ping"
32+ healthcheck-interval : 5s
33+ healthcheck-timeout : 3s
34+ healthcheck-retries : 3
35+ ports :
36+ - 6379:6379
37+
38+ steps :
39+ - name : Verify healthcheck configuration
40+ run : |
41+ echo "Checking Minio healthcheck..."
42+ curl -f http://localhost:9000/minio/health/live || exit 1
43+ echo "✅ Minio healthcheck passed"
44+
45+ echo "Checking Redis healthcheck..."
46+ redis-cli -h localhost ping
47+ echo "✅ Redis healthcheck passed"
48+
49+ - name : Inspect container healthcheck config
50+ run : |
51+ echo "Container health configurations:"
52+ echo ""
53+ echo "Minio container:"
54+ docker inspect --format='Healthcheck: {{.Config.Healthcheck}}' $(docker ps -q -f "name=minio") || true
55+ echo ""
56+ echo "Redis container:"
57+ docker inspect --format='Healthcheck: {{.Config.Healthcheck}}' $(docker ps -q -f "name=redis") || true
58+
59+ volumes :
60+ minio-data:
You can’t perform that action at this time.
0 commit comments