-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
56 lines (43 loc) · 1.36 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
# __ __ _ __ _ _
# | \/ | | | / _(_) |
# | \ / | __ _| | _____| |_ _| | ___
# | |\/| |/ _` | |/ / _ \ _| | |/ _ \
# | | | | (_| | < __/ | | | | __/
# |_| |_|\__,_|_|\_\___|_| |_|_|\___|
.PHONY: all
all:
echo hey
# __ __
# | \ |_ \ /
# |__/ |__ \/
#
.PHONY: start
start: stop start-prometheus start-grafana start-weather
.PHONY: stop
stop: stop-prometheus stop-grafana stop-weather
.PHONY: start-grafana
start-grafana: stop-grafana
docker-compose -f grafana/docker-compose.yml up -d
.PHONY: stop-grafana
stop-grafana:
docker-compose -f grafana/docker-compose.yml rm -s -f
.PHONY: start-prometheus
start-prometheus: stop-prometheus
docker-compose -f prometheus/docker-compose.yml up -d
.PHONY: stop-prometheus
stop-prometheus:
docker-compose -f prometheus/docker-compose.yml rm -s -f
.PHONY: start-weather
start-weather: stop-weather
docker-compose -f ./docker-compose.yml up -d
.PHONY: stop-weather
stop-weather:
docker-compose -f ./docker-compose.yml rm -s -f
.PHONY: build
build:
cd ./weather-service; ./gradlew clean assemble
cd ./weather-service; docker build --build-arg target=weather-service -t weather-service -f ./Dockerfile .
.PHONY: build
build-sensor:
cd ./sensors-service; ./gradlew clean assemble
cd ./sensors-service; docker build --build-arg target=sensors-service -t sensors-service -f ./Dockerfile .