-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch-devbench.sh
More file actions
executable file
·34 lines (26 loc) · 1.03 KB
/
launch-devbench.sh
File metadata and controls
executable file
·34 lines (26 loc) · 1.03 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
#!/bin/bash
DEVBENCH_DIR="/home/brett/projects/DevBench/FlutterBench"
CONTAINER_NAME="flutter_bench"
cd "$DEVBENCH_DIR"
echo "🚀 DevFlutter - Starting FlutterBench Container..."
# Check if container is already running
if docker ps --format "table {{.Names}}" | grep -q "^${CONTAINER_NAME}$"; then
echo "✅ Container is already running, connecting..."
else
echo "🔧 Container not running, starting it first..."
./start-monster.sh
# Wait a moment for container to fully start
sleep 3
# Check if it started successfully
if ! docker ps --format "table {{.Names}}" | grep -q "^${CONTAINER_NAME}$"; then
echo "❌ Failed to start container. Check Docker logs."
read -p "Press Enter to exit..."
exit 1
fi
fi
echo "🔗 Connecting to FlutterBench container..."
echo "📁 You'll be in: /workspace (your projects folder)"
echo "🛠️ Available: Flutter, Android SDK, Firebase, Shorebird, and 15+ Flutter tools"
echo ""
# Connect to the container
docker exec -it "$CONTAINER_NAME" zsh