-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathvalidate-setup.sh
More file actions
executable file
·67 lines (58 loc) · 1.39 KB
/
validate-setup.sh
File metadata and controls
executable file
·67 lines (58 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# Quick validation script to check all Docker setup files
echo "Validating Gabagool Docker Setup..."
echo ""
ERRORS=0
check_file() {
if [ -f "$1" ]; then
echo "✓ $1"
else
echo "✗ $1 - MISSING"
ERRORS=$((ERRORS + 1))
fi
}
check_executable() {
if [ -x "$1" ]; then
echo "✓ $1 (executable)"
else
echo "✗ $1 - NOT EXECUTABLE"
ERRORS=$((ERRORS + 1))
fi
}
echo "Root Configuration Files:"
check_file "docker-compose.yml"
check_file "Makefile"
check_file ".env.example"
check_file ".gitignore"
check_file "README.md"
check_file "DOCKER_SETUP.md"
check_file "QUICKSTART.md"
echo ""
echo "Docker Configuration:"
check_file "backend/Dockerfile"
check_file "dashboard/Dockerfile"
echo ""
echo "Scripts:"
check_executable "scripts/setup.sh"
check_executable "scripts/start-dev.sh"
echo ""
echo "Validation of docker-compose.yml syntax:"
docker-compose config > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "✓ docker-compose.yml syntax is valid"
else
echo "✗ docker-compose.yml has syntax errors"
ERRORS=$((ERRORS + 1))
fi
echo ""
if [ $ERRORS -eq 0 ]; then
echo "✅ All files present and valid!"
echo ""
echo "Next steps:"
echo " 1. cp .env.example .env"
echo " 2. nano .env (add your credentials)"
echo " 3. ./scripts/start-dev.sh"
else
echo "❌ $ERRORS error(s) found"
exit 1
fi