-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-monster.sh
More file actions
executable file
Β·44 lines (38 loc) Β· 1.43 KB
/
start-monster.sh
File metadata and controls
executable file
Β·44 lines (38 loc) Β· 1.43 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
#!/bin/bash
# Get current user info
export UID=$(id -u)
export GID=$(id -g)
export USER=$(whoami)
echo "π Starting the Python DevBench Monster Container"
echo " User: $USER (UID: $UID, GID: $GID)"
# Validate we have the required info
if [ -z "$USER" ] || [ -z "$UID" ] || [ -z "$GID" ]; then
echo "β Error: Could not determine user info"
echo " USER=$USER, UID=$UID, GID=$GID"
exit 1
fi
echo "π§ Building container with user mapping..."
# Start the container with proper user mapping
docker-compose -f .devcontainer/docker-compose.yml up -d --build
if [ $? -eq 0 ]; then
echo "β
Container started successfully!"
echo ""
echo "π― Next steps:"
echo " - Open VS Code and select 'Reopen in Container'"
echo " - Or run: docker exec -it python_bench zsh"
echo ""
echo "π To check container status:"
echo " docker ps | grep python_bench"
echo ""
echo "π Python Monster includes:"
echo " - Python 3.12/3.11/3.10 with pyenv"
echo " - Data Science: numpy, pandas, jupyter, sklearn"
echo " - ML/AI: tensorflow, pytorch, transformers"
echo " - Web: FastAPI, Django, Flask, Streamlit"
echo " - Tools: poetry, black, ruff, mypy, pytest"
echo " - Cloud: AWS CLI, Azure CLI, GCP SDK"
echo " - And 200+ more packages!"
else
echo "β Container failed to start. Check Docker logs:"
echo " docker-compose -f .devcontainer/docker-compose.yml logs"
fi