-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-entrypoint.sh
More file actions
45 lines (40 loc) · 1.18 KB
/
docker-entrypoint.sh
File metadata and controls
45 lines (40 loc) · 1.18 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
#!/bin/sh
set -e
echo "============================================"
echo "BA Torment Data Processing"
echo "============================================"
echo ""
# Step 1: Update SchaleDB data
echo "[1/3] Updating student data from SchaleDB..."
echo "--------------------------------------------"
/app/bin/batorment update-from-schaledb
if [ $? -eq 0 ]; then
echo "✓ SchaleDB update completed successfully"
else
echo "✗ SchaleDB update failed with exit code $?"
exit 1
fi
echo ""
echo "[2/3] Processing raid data..."
echo "--------------------------------------------"
/app/bin/batorment process-raid
if [ $? -eq 0 ]; then
echo "✓ Raid processing completed successfully"
else
echo "✗ Raid processing failed with exit code $?"
exit 1
fi
echo ""
echo "[3/3] Running total analysis..."
echo "--------------------------------------------"
/app/bin/batorment total-analysis
if [ $? -eq 0 ]; then
echo "✓ Total analysis completed successfully"
else
echo "✗ Total analysis failed with exit code $?"
exit 1
fi
echo ""
echo "============================================"
echo "All tasks completed successfully!"
echo "============================================"