-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
33 lines (25 loc) · 919 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
alertmanager_version := "v0.15.1"
prometheus_version := "v2.3.1"
nats_streaming_version := "0.11.2"
default: install
install: init apply
init:
@terraform init
apply:
@terraform apply
destroy:
@terraform destroy
keys:
@ssh-keygen -t rsa -f ./keys/openfaas
@chmod 400 ./keys/openfaas
@chmod 400 ./keys/openfaas.pub
docker-publish: docker-build
@docker push ewilde/alertmanager:${alertmanager_version}
@docker push ewilde/prometheus:${prometheus_version}
@docker push ewilde/nats-streaming:${nats_streaming_version}
docker-build:
@docker build ./docker/alertmanager/ -t ewilde/alertmanager:${alertmanager_version}
@docker build ./docker/prometheus/ -t ewilde/prometheus:${prometheus_version}
@docker build --build-arg NATS_VERSION=${nats_streaming_version} ./docker/nats-streaming/ -t ewilde/nats-streaming:${nats_streaming_version}
uninstall: destroy
.PHONY: install uninstall keys init apply destroy