-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_dev.sh
More file actions
executable file
·56 lines (43 loc) · 1.48 KB
/
start_dev.sh
File metadata and controls
executable file
·56 lines (43 loc) · 1.48 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
#!/bin/bash
# FireBoard Integration - Quick Start Development Script
set -e
# Colors
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo -e "${BLUE}=====================================${NC}"
echo -e "${BLUE}FireBoard Development Environment${NC}"
echo -e "${BLUE}=====================================${NC}\n"
# Check Docker
if ! command -v docker &> /dev/null; then
echo -e "${YELLOW}⚠ Docker is not installed${NC}"
echo "Please install Docker Desktop: https://www.docker.com/products/docker-desktop"
exit 1
fi
echo -e "${GREEN}✓ Docker is installed${NC}"
# Check if Docker is running
if ! docker info &> /dev/null; then
echo -e "${YELLOW}⚠ Docker is not running${NC}"
echo "Please start Docker Desktop"
exit 1
fi
echo -e "${GREEN}✓ Docker is running${NC}\n"
# Start containers
echo -e "${BLUE}Starting Home Assistant...${NC}"
docker-compose up -d
echo ""
echo -e "${GREEN}✓ Home Assistant is starting!${NC}\n"
echo -e "${BLUE}Access Home Assistant at:${NC} http://localhost:8123"
echo ""
echo -e "${YELLOW}First startup takes 2-3 minutes while initializing...${NC}"
echo ""
echo "Commands:"
echo " • View logs: docker-compose logs -f homeassistant"
echo " • Restart: docker-compose restart homeassistant"
echo " • Stop: docker-compose down"
echo " • Shell access: docker exec -it ha-fireboard-dev /bin/bash"
echo ""
echo -e "${BLUE}Opening logs in 5 seconds...${NC}"
sleep 5
docker-compose logs -f homeassistant