-
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/workBenches/devBench/pythonBench"
CONTAINER_NAME="python_bench"
cd "$DEVBENCH_DIR"
echo "π DevPython - Starting PythonBench 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 PythonBench container..."
echo "π You'll be in: /workspace (your projects folder)"
echo "π Available: Python 3.12/3.11/3.10, Jupyter, ML/AI libs, and 200+ dev tools"
echo ""
# Connect to the container
docker exec -it "$CONTAINER_NAME" zsh