Replace Portainer container management service with Dockhand: - Update docker-compose.yml.template with Dockhand service definition - Replace portainer_data volume with dockhand_data - Update PORTAINER_PORT to DOCKHAND_PORT in demo.env - Update all script references (demo-stack.sh, demo-test.sh, validate-all.sh) - Update integration test from Portainer to Dockhand - Update documentation files (README.md, AGENTS.md, api-docs, service-guides, troubleshooting) Dockhand provides modern Docker management UI with: - Container lifecycle management - Compose stack orchestration - Git-based deployments - Multi-environment support - Terminal access and log streaming - File browser capabilities Maintains same port (4007) for consistency. 💘 Generated with Crush Assisted-by: GLM-4.7 via Crush <crush@charm.land>
45 lines
1.3 KiB
Bash
Executable File
45 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
# Integration test: Service-to-service communication
|
|
|
|
set -euo pipefail
|
|
|
|
test_grafana_influxdb_integration() {
|
|
# Test Grafana can reach InfluxDB
|
|
# This would be executed after stack deployment
|
|
if docker exec tsysdevstack-supportstack-demo-grafana wget -q --spider http://influxdb:8086/ping; then
|
|
echo "PASS: Grafana-InfluxDB integration"
|
|
return 0
|
|
else
|
|
echo "FAIL: Grafana-InfluxDB integration"
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
test_dockhand_docker_integration() {
|
|
# Test Dockhand can reach Docker socket
|
|
if docker exec tsysdevstack-supportstack-demo-dockhand docker version >/dev/null 2>&1; then
|
|
echo "PASS: Dockhand-Docker integration"
|
|
return 0
|
|
else
|
|
echo "FAIL: Dockhand-Docker integration"
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
test_homepage_discovery() {
|
|
# Test Homepage discovers all services
|
|
local discovered_services
|
|
discovered_services=$(curl -s http://localhost:4000 | grep -c "service" || echo "0")
|
|
if [[ $discovered_services -ge 14 ]]; then
|
|
echo "PASS: Homepage service discovery"
|
|
return 0
|
|
else
|
|
echo "FAIL: Homepage service discovery (found $discovered_services, expected >=14)"
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
# Run integration tests
|
|
test_grafana_influxdb_integration
|
|
test_dockhand_docker_integration
|
|
test_homepage_discovery |