-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 1.05 KB
/
Copy pathMakefile
File metadata and controls
38 lines (28 loc) · 1.05 KB
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
SHELL = /bin/bash
DOCKER_HOST = $(shell echo $$DOCKER_HOST)
BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
SHORT_NAME ?= telegraf
DEIS_REGISTRY ?= ${DEV_REGISTRY}
IMAGE_PREFIX ?= deis
include versioning.mk
build: docker-build
push: docker-push
install: kube-install
uninstall: kube-delete
upgrade: kube-update
docker-build:
docker build -t ${IMAGE} rootfs
docker tag ${IMAGE} ${MUTABLE_IMAGE}
clean: check-docker
docker rmi $(IMAGE)
update-manifests:
sed 's#\(image:\) .*#\1 $(IMAGE)#' manifests/deis-monitor-telegraf-daemon.yaml > manifests/deis-monitor-telegraf-daemon.tmp.yaml
kube-install: update-manifests
kubectl create -f manifests/deis-monitor-telegraf-service-account.yaml
kubectl create -f manifests/deis-monitor-telegraf-daemon.yaml
kube-delete:
kubectl delete -f manifests/deis-monitor-telegraf-service-account.yaml
kubectl delete -f manifests/deis-monitor-telegraf-daemon.yaml
kube-update: update-manifests
kubectl delete -f manifests/deis-monitor-telegraf-daemon.tmp.yaml
kubectl create -f manifests/deis-monitor-telegraf-daemon.tmp.yaml