-
Notifications
You must be signed in to change notification settings - Fork 31
/
Makefile
42 lines (33 loc) · 879 Bytes
/
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
.PHONY:
# ==============================================================================
# Docker
local:
@echo Clearing kafka data
rm -rf ./kafka_data
@echo Clearing zookeeper data
rm -rf ./zookeeper
@echo Clearing prometheus data
rm -rf ./prometheus
@echo Starting local docker compose
docker-compose -f docker-compose.yaml up -d --build
clean_docker_data:
@echo Clearing kafka data
rm -rf ./kafka_data
@echo Clearing zookeeper data
rm -rf ./zookeeper
@echo Clearing prometheus data
rm -rf ./prometheus
@echo Clearing pg data
rm -rf ./pgdata
@echo Clearing mongo data
rm -rf ./mongodb_data_container
# ==============================================================================
# Docker support
FILES := $(shell docker ps -aq)
down-local:
docker stop $(FILES)
docker rm $(FILES)
clean:
docker system prune -f
logs-local:
docker logs -f $(FILES)