-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
70 lines (49 loc) · 1.27 KB
/
Makefile
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
68
69
70
start:
docker-compose up --build -d
stop:
docker-compose stop
purge:
docker-compose down -v
logs:
docker-compose logs -f
### KAFKA ###
start-kafka:
docker-compose up -d kafka kafdrop
logs-kafka:
docker-compose logs -f kafka
### REDIS
start-redis:
docker-compose up -d redis
logs-redis:
docker-compose logs -f redis
### TRANFORMATIONS ###
start-transformations:
docker-compose up --build -d transformations
stop-transformations:
docker-compose stop transformations
logs-transformations:
docker-compose logs -f transformations
### SINKS ###
start-sinks:
docker-compose up --build -d sinks
stop-sinks:
docker-compose stop sinks
logs-sinks:
docker-compose logs -f sinks
### PRODUCERS ###
build-producer:
docker build -f producer/Dockerfile -t producer:latest producer
produce-orders: build-producer
docker run -v $(PWD)/data:/app/data --network=host producer:latest producer \
--filepath data/orders_100k.json.gz \
--filetype json \
--entity order \
--entity_key order_id \
--timestamp_field order_created_at
produce-status: build-producer
docker run -v $(PWD)/data:/app/data --network=host producer:latest producer \
--filepath data/status_100k.json.gz \
--filetype json \
--entity status \
--entity_key status_id \
--timestamp_field created_at