-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 1.21 KB
/
Copy pathMakefile
File metadata and controls
35 lines (28 loc) · 1.21 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
SHORT_NAME ?= influxdb
BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
DEIS_REGISTRY ?= ${DEV_REGISTRY}
IMAGE_PREFIX ?= deis
IMAGE_LATEST := ${DEIS_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:latest
IMAGE := ${DEIS_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:${BUILD_TAG}
info:
@echo "Build tag: ${BUILD_TAG}"
@echo "Registry: ${DEIS_REGISTRY}"
@echo "Image: ${IMAGE}"
docker-build:
docker build -t $(IMAGE_LATEST) .
docker tag -f $(IMAGE_LATEST) $(IMAGE)
docker-push:
docker push ${IMAGE}
kube-delete: update-manifests
-kubectl delete -f manifests/deis-monitor-influxdb-svc.yaml
-kubectl delete -f manifests/deis-monitor-influxdb-proxy-pod.yaml
-kubectl delete -f manifests/deis-monitor-influxdb-rc.tmp.yaml
kube-create: update-manifests
kubectl create -f manifests/deis-monitor-influxdb-svc.yaml
kubectl create -f manifests/deis-monitor-influxdb-rc.tmp.yaml
kubectl create -f manifests/deis-monitor-influxdb-proxy-pod.yaml
kube-update: update-manifests
kubectl delete -f manifests/deis-monitor-influxdb-rc.tmp.yaml
kubectl create -f manifests/deis-monitor-influxdb-rc.tmp.yaml
update-manifests:
sed 's#\(image:\) .*#\1 $(IMAGE)#' manifests/deis-monitor-influxdb-rc.yaml > manifests/deis-monitor-influxdb-rc.tmp.yaml