-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 681 Bytes
/
Makefile
File metadata and controls
37 lines (27 loc) · 681 Bytes
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
# Makefile - Chain Abstraction KG Ingestion
# Variables
PYTHON=python3
NEO4J_URI=bolt://localhost:7687
NEO4J_USER=neo4j
NEO4J_PASS=test
DOCKER_COMPOSE=docker-compose
# Install dependencies
install:
uv pip install -r requirements.txt
# Start Neo4j container
start-db:
$(DOCKER_COMPOSE) up -d
# Stop Neo4j container
stop-db:
$(DOCKER_COMPOSE) down
# Run ingestion from sample_run.py
ingest:
$(PYTHON) sample_run.py
run:
$(PYTHON) main.py
# All-in-one command: start DB, install deps, run ingestion
run-all: start-db install run
# Clean only Docker data
clean:
docker volume rm chain_graph_pipeline_neo4j_data || true
.PHONY: install start-db stop-db ingest run clean