-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 900 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (23 loc) · 900 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
SHELL := /usr/bin/env bash
.PHONY: up init produce produce-once consume run-pipeline dashboard test down validate
up:
docker compose up -d postgres minio minio-init kafka airflow-init airflow-webserver airflow-scheduler dashboard
init:
python scripts/seed_reference_data.py
docker compose exec kafka bash /opt/streamcommerce/scripts/init_kafka_topics.sh
produce:
python -m kafka.producers.event_simulator --source customer_events --event-rate 5 --duration 0 --bad-data-percentage 8
produce-once:
python -m kafka.producers.event_simulator --source orders --event-rate 10 --duration 15 --bad-data-percentage 10
consume:
python -m kafka.consumers.s3_landing_consumer --landing-root data/landing
run-pipeline:
bash scripts/run_local_pipeline.sh
dashboard:
python dashboard/app.py
test:
pytest -q
validate:
bash scripts/validate_project.sh
down:
docker compose down --remove-orphans