-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingularity_start.sh
More file actions
executable file
·57 lines (48 loc) · 1.56 KB
/
singularity_start.sh
File metadata and controls
executable file
·57 lines (48 loc) · 1.56 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
#!/bin/bash
# kindmesh Singularity Container Starter
# This script starts the Neo4j Singularity container
echo "=== KindMesh Singularity Container Starter ==="
# Check if Singularity is installed
if ! command -v singularity &> /dev/null; then
echo "Error: Singularity is not installed or not in PATH"
echo "Please install Singularity from https://sylabs.io/guides/latest/user-guide/quick_start.html"
exit 1
fi
# Check if the container exists
if [ ! -f "neo4j.sif" ]; then
echo "Error: Neo4j Singularity container not found"
echo "Please build the container first using: ./singularity_build.sh"
exit 1
fi
# Create directories for data persistence if they don't exist
mkdir -p neo4j_data
mkdir -p neo4j_logs
mkdir -p neo4j_import
mkdir -p neo4j_plugins
# Start the container
echo "Starting Neo4j Singularity container..."
singularity instance start \
--bind neo4j_data:/data \
--bind neo4j_logs:/logs \
--bind neo4j_import:/var/lib/neo4j/import \
--bind neo4j_plugins:/plugins \
neo4j.sif neo4j
if [ $? -ne 0 ]; then
echo "Error: Failed to start the Singularity container"
echo "Please check the error messages above and try again"
exit 1
fi
echo ""
echo "=== Neo4j Singularity Container Started Successfully! ==="
echo ""
echo "Neo4j is now running and accessible at:"
echo " - HTTP: http://localhost:7474"
echo " - Bolt: bolt://localhost:7687"
echo ""
echo "Default credentials:"
echo " - Username: neo4j"
echo " - Password: kindmesh"
echo ""
echo "To stop the container, run: singularity instance stop neo4j"
echo ""
exit 0