-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-start.sh
More file actions
executable file
·54 lines (45 loc) · 1.36 KB
/
dev-start.sh
File metadata and controls
executable file
·54 lines (45 loc) · 1.36 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
#!/bin/bash
# Start local development environment with SAML
set -e
echo "=== SLURM Dashboard Local Development Setup ==="
echo ""
# Check if Docker is running
if ! docker info > /dev/null 2>&1; then
echo "ERROR: Docker is not running!"
echo "Please start Docker Desktop and run this script again."
exit 1
fi
# Remove version warning by creating temporary compose file
sed '/version:/d' docker-compose.dev.yml > docker-compose.dev.tmp.yml
# Build and start containers
echo "Building and starting containers..."
docker-compose -f docker-compose.dev.tmp.yml up --build -d
# Clean up
rm -f docker-compose.dev.tmp.yml
echo ""
echo "=== Containers Starting ==="
echo ""
echo "Waiting for services to be ready..."
sleep 10
# Show container status
echo ""
docker-compose -f docker-compose.dev.yml ps
echo ""
echo "=== Development Environment Ready! ==="
echo ""
echo "Access the services:"
echo " Dashboard: http://localhost:8100"
echo " Frontend Dev: http://localhost:5173 (with hot reload)"
echo " SAML IdP: http://localhost:8080/simplesaml"
echo " API Docs: http://localhost:8100/docs"
echo ""
echo "Test SAML Login:"
echo " Username: admin"
echo " Password: admin"
echo ""
echo "View logs:"
echo " docker-compose -f docker-compose.dev.yml logs -f"
echo ""
echo "Stop environment:"
echo " docker-compose -f docker-compose.dev.yml down"
echo ""