-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatus.sh
More file actions
executable file
·84 lines (72 loc) · 3.29 KB
/
status.sh
File metadata and controls
executable file
·84 lines (72 loc) · 3.29 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/bash
# Color codes
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
echo -e "${BLUE}╔════════════════════════════════════════════════════════════╗${NC}"
echo -e "${BLUE}║ 🌌 Space Entropy Generator - Development Status ║${NC}"
echo -e "${BLUE}╚════════════════════════════════════════════════════════════╝${NC}"
echo ""
echo -e "${GREEN}✅ Phase 1: COMPLETED${NC}"
echo " • Project structure created"
echo " • Configuration management implemented"
echo " • Image ingestion from NASA SDO working"
echo " • FastAPI application running"
echo " • Docker configuration ready"
echo ""
echo -e "${YELLOW}🚧 Phase 2: Next Steps${NC}"
echo " • Image preprocessing & noise extraction"
echo " • Cryptographic hashing (SHA-256, BLAKE3)"
echo " • Entropy validation (Shannon entropy)"
echo " • Redis entropy pool manager"
echo " • Complete API implementation"
echo ""
echo -e "${BLUE}📋 Phase 3: Planned${NC}"
echo " • Security hardening"
echo " • NIST randomness testing"
echo " • Performance optimization"
echo " • Production deployment"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
# Check if images were downloaded
if [ -d "/tmp/space_entropy_images" ]; then
IMAGE_COUNT=$(ls -1 /tmp/space_entropy_images/*.jpg 2>/dev/null | wc -l)
echo -e "📦 Downloaded images: ${GREEN}${IMAGE_COUNT}${NC}"
fi
# Check if Redis is available
if command -v redis-cli &> /dev/null; then
if redis-cli ping &> /dev/null; then
echo -e "🔴 Redis status: ${GREEN}Connected${NC}"
else
echo -e "🔴 Redis status: ${YELLOW}Not running (start with: redis-server)${NC}"
fi
else
echo -e "🔴 Redis status: ${YELLOW}Not installed${NC}"
fi
# Check Python dependencies
if python -c "import fastapi, cv2, numpy, blake3, redis" 2>/dev/null; then
echo -e "🐍 Python deps: ${GREEN}Installed${NC}"
else
echo -e "🐍 Python deps: ${YELLOW}Missing (run: pip install -r requirements.txt)${NC}"
fi
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo -e "${BLUE}📚 Documentation:${NC}"
echo " • README.md - Project overview"
echo " • NEXT_STEPS.md - Phase 2 implementation guide"
echo " • IMPLEMENTATION_PHASE1.md - Phase 1 summary"
echo ""
echo -e "${BLUE}🛠️ Quick Commands:${NC}"
echo " • python test_ingestion.py - Test image fetching"
echo " • python -m app.main - Run API server"
echo " • docker-compose up -d - Run with Docker"
echo " • pytest -v - Run tests"
echo ""
echo -e "${BLUE}🌐 Endpoints (when running):${NC}"
echo " • http://localhost:8000 - API root"
echo " • http://localhost:8000/docs - Interactive docs"
echo " • http://localhost:8000/api/v1/health - Health check"
echo ""