-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-monster.sh
More file actions
executable file
Β·35 lines (29 loc) Β· 1.02 KB
/
start-monster.sh
File metadata and controls
executable file
Β·35 lines (29 loc) Β· 1.02 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
#!/bin/bash
# Get current user info
export UID=$(id -u)
export GID=$(id -g)
export USER=$(whoami)
echo "π Starting the .NET 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 dot_net_bench zsh"
echo ""
echo "π To check container status:"
echo " docker ps | grep dot_net_bench"
else
echo "β Container failed to start. Check Docker logs:"
echo " docker-compose -f .devcontainer/docker-compose.yml logs"
fi