-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (30 loc) · 1.1 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
COMMENT_VERSION = 1.0
POST_VERSION = 1.0
UI_VERSION = 1.0
PROMETHEUS_VERSION = 1.0
BLACKBOX_VERSION = 1.0
ALERTMANAGER_VERSION = 1.0
USER_NAME = ilyafedotov
VPATH = src:monitoring
build: comment_build post_build ui_build prometheus_build alertmanager_build
push: comment_push post_push ui_push prometheus_push alertmanager_push
comment_build: comment
docker build -t $(USER_NAME)/comment:$(COMMENT_VERSION) $^
post_build: post-py
docker build -t $(USER_NAME)/post:$(POST_VERSION) $^
ui_build: ui
docker build -t $(USER_NAME)/ui:$(UI_VERSION) $^
prometheus_build: prometheus
docker build -t $(USER_NAME)/prometheus:$(PROMETHEUS_VERSION) $^
alertmanager_build: alertmanager
docker build -t $(USER_NAME)/alertmanager:$(ALERTMANAGER_VERSION) $^
comment_push: comment
docker push $(USER_NAME)/comment:$(COMMENT_VERSION)
post_push: post-py
docker push $(USER_NAME)/post:$(POST_VERSION)
ui_push: ui
docker push $(USER_NAME)/ui:$(UI_VERSION)
prometheus_push: prometheus
docker push $(USER_NAME)/prometheus:$(PROMETHEUS_VERSION)
alertmanager_push: alertmanager
docker push $(USER_NAME)/alertmanager:$(ALERTMANAGER_VERSION)