Repository navigation
Expand file tree
/
Copy pathquickstart.sh
More file actions
executable file
·60 lines (49 loc) · 1.54 KB
/
Copy pathquickstart.sh
File metadata and controls
executable file
·60 lines (49 loc) · 1.54 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
55
56
57
58
59
#!/bin/bash
set -e
echo "Checking dependencies..."
if ! command -v docker &>/dev/null; then
echo "ERROR: Docker is not installed. Please install Docker first."
echo " Visit: https://docs.docker.com/get-docker/"
exit 1
fi
if ! command -v docker-compose &>/dev/null && ! docker compose version &>/dev/null; then
echo "ERROR: Docker Compose is not installed. Please install Docker Compose first."
echo " Visit: https://docs.docker.com/compose/install/"
exit 1
fi
echo "Building Podrift Docker images..."
cd podrift
if [ -f "./build.sh" ]; then
./build.sh
else
echo "WARNING: build.sh not found"
fi
cd ..
echo ""
echo "Starting Docker services..."
docker compose up -d
echo ""
echo "Waiting for services to be ready..."
sleep 5
if docker compose ps | grep -q "dashboard.*running"; then
echo "Dashboard is running!"
else
echo "WARNING: Dashboard might not be running properly. Check 'docker compose logs dashboard'"
fi
if docker compose ps | grep -q "postgres.*running"; then
echo "Database is running!"
else
echo "WARNING: Database might not be running properly. Check 'docker compose logs postgres'"
fi
echo ""
echo "mathom is ready!"
echo ""
echo "Next steps:"
echo " 1. Open your browser at http://localhost:5050"
echo " 2. Install the CLI: npm install -g mcx"
echo " 3. Authenticate: mcx auth login"
echo " 4. Launch a server: mcx @modelcontextprotocol/server-filesystem"
echo ""
echo "For more information, visit: https://github.com/stephenlacy/mathom"
echo ""
echo "Tip: Run 'docker compose logs -f' to see real-time logs"