-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·67 lines (56 loc) · 1.86 KB
/
start.sh
File metadata and controls
executable file
·67 lines (56 loc) · 1.86 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
60
61
62
63
64
65
66
67
#!/bin/bash
# kindmesh Application Launcher
# This script launches the kindmesh application using Docker Compose
echo "=== KindMesh Application Launcher ==="
# Check if Docker is installed
if ! command -v docker &> /dev/null; then
echo "Error: Docker is not installed or not in PATH"
echo "Please install Docker from https://docs.docker.com/get-docker/"
exit 1
fi
# Check if Docker Compose is installed
if ! command -v docker-compose &> /dev/null; then
echo "Error: Docker Compose is not installed or not in PATH"
echo "Please install Docker Compose from https://docs.docker.com/compose/install/"
exit 1
fi
# Check if the application is already running
if [ "$(docker ps -q -f name=kindmesh-app)" ]; then
echo "KindMesh application is already running!"
echo "You can access it at: http://localhost:8501"
echo ""
echo "To stop the application, run: ./stop.sh"
exit 0
fi
# Start the containers in detached mode
echo "Starting KindMesh application..."
docker-compose up -d
if [ $? -ne 0 ]; then
echo "Error: Failed to start the application"
echo "Please check the error messages above and try again"
exit 1
fi
echo "Waiting for services to be ready..."
sleep 5
# Check if containers are running
if ! [ "$(docker ps -q -f name=kindmesh-neo4j)" ] || ! [ "$(docker ps -q -f name=kindmesh-app)" ]; then
echo "Error: One or more containers failed to start"
docker-compose logs
echo "Stopping containers..."
docker-compose down
exit 1
fi
echo ""
echo "=== KindMesh Application Started Successfully! ==="
echo ""
echo "The application is now running at: http://localhost:8501"
echo ""
echo "Default login credentials:"
echo " Username: Hello"
echo " Password: World!"
echo ""
echo "After logging in, you can create your first user who will become an Admin."
echo ""
echo "To stop the application, run: ./stop.sh"
echo ""
exit 0