-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (42 loc) · 1.7 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
APP_TAG = logging
build-all: build-ui build-comment build-post build-prometheus build-blackbox-exporter build-mongodb-exporter build-alertmanager build-fluentd build-telegraf
build-app:
for i in ui post-py comment; do cd src/$i; bash docker_build.sh; cd -; done
build-ui:
docker build -t $(USER_NAME)/ui:$(APP_TAG) src/ui/
build-comment:
docker build -t $(USER_NAME)/comment:$(APP_TAG) src/comment/
build-post:
docker build -t $(USER_NAME)/post:$(APP_TAG) src/post-py/
build-prometheus:
docker build -t $(USER_NAME)/prometheus monitoring/prometheus/
build-blackbox-exporter:
docker build -t $(USER_NAME)/blackbox-exporter:0.14.0 monitoring/blackbox-exporter/
build-mongodb-exporter:
docker build -t $(USER_NAME)/mongodb-exporter:0.8.0 monitoring/mongodb-exporter/
build-alertmanager:
docker build -t $(USER_NAME)/alertmanager monitoring/alertmanager
build-fluentd:
docker build -t $(USER_NAME)/fluentd logging/fluentd
build-telegraf:
docker build -t $(USER_NAME)/telegraf:1.11.1 monitoring/telegraf
push-all: push-ui push-comment push-post push-prometheus push-blackbox-exporter push-mongodb-exporter push-alertmanager push-fluentd push-telegraf
push-app: push-ui push-comment push-post
push-ui:
docker push $(USER_NAME)/ui:$(APP_TAG)
push-comment:
docker push $(USER_NAME)/comment:$(APP_TAG)
push-post:
docker push $(USER_NAME)/post:$(APP_TAG)
push-prometheus:
docker push $(USER_NAME)/prometheus
push-blackbox-exporter:
docker push $(USER_NAME)/blackbox-exporter:0.14.0
push-mongodb-exporter:
docker push $(USER_NAME)/mongodb-exporter:0.8.0
push-alertmanager:
docker push $(USER_NAME)/alertmanager
push-fluentd:
docker push $(USER_NAME)/fluentd
push-telegraf:
docker push ${USER_NAME}/telegraf:1.11.1