-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
48 lines (39 loc) · 1.14 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
.PHONY:
# ==============================================================================
# Docker
local:
@echo Clearing kafka data
rm -rf ./kafka_data
@echo Clearing zookeeper data
rm -rf ./zookeeper
@echo Clearing elasticserach data
rm -rf ./es-data01
@echo Clearing prometheus data
rm -rf ./prometheus
@echo Starting local docker compose
docker-compose -f docker-compose.local.yaml up -d --build
develop:
mvn clean package -Dmaven.test.skip
@echo Clearing kafka data
rm -rf ./kafka_data
@echo Clearing zookeeper data
rm -rf ./zookeeper
@echo Clearing elasticserach data
rm -rf ./es-data01
@echo Clearing prometheus data
rm -rf ./prometheus
@echo Starting local docker compose
docker-compose -f docker-compose.yaml up -d --build
upload:
docker build -t alexanderbryksin/kotlin_search_microservice:latest -f ./Dockerfile .
docker push alexanderbryksin/kotlin_search_microservice:latest
# ==============================================================================
# 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)