@@ -8,37 +8,34 @@ IMAGE_PREFIX ?= deis
88
99include ../includes.mk
1010include ../versioning.mk
11+ include ../deploy.mk
1112
1213TEST_ENV_PREFIX := docker run --rm -v ${CURDIR}:/bash -w /bash quay.io/deis/shell-dev
1314
1415build : docker-build
1516push : docker-push
16- deploy : check-kubectl docker-build docker-push upgrade
17+ deploy : check-kubectl docker-build docker-push install
1718
1819docker-build :
1920 docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
2021 docker tag ${IMAGE} ${MUTABLE_IMAGE}
2122
2223clean : check-docker
2324 docker rmi $(IMAGE )
24-
25- KD = kubectl --namespace=deis
26- upgrade :
27- ${KD} patch ${RESOURCE_TYPE} deis-monitor-${SHORT_NAME} \
28- --type=' json' \
29- -p=' [ \
30- {" op" : " replace" , " path" : " /spec/strategy" , " value" :{" type" :" Recreate" }}, \
31- {" op" : " replace" , " path" : " /spec/template/spec/containers/0/image" , " value" :" $( IMAGE) " }, \
32- {" op" : " replace" , " path" : " /spec/template/spec/containers/0/imagePullPolicy" , " value" :" Always" } \
33- ]'
34- @if [ " ${RESOURCE_TYPE} " == " daemonset" ]; then \
35- echo " Deleting daemonset pods as they aren't yet recreated when daemonset is patched..." ; \
36- ${KD} delete $$(${KD} get pod -o name | grep "${SHORT_NAME}" ) ; \
37- fi
38-
25+
3926test : test-style
4027
4128test-style :
4229 ${TEST_ENV_PREFIX} shellcheck $(SHELL_SCRIPTS )
4330
4431.PHONY : build push docker-build clean upgrade deploy test test-style
32+
33+ build-all :
34+ docker build ${DOCKER_BUILD_FLAGS} -t ${DEIS_REGISTRY}${IMAGE_PREFIX} /grafana:${VERSION} ../grafana/rootfs
35+ docker build ${DOCKER_BUILD_FLAGS} -t ${DEIS_REGISTRY}${IMAGE_PREFIX} /influxdb:${VERSION} ../influxdb/rootfs
36+ docker build ${DOCKER_BUILD_FLAGS} -t ${DEIS_REGISTRY}${IMAGE_PREFIX} /telegraf:${VERSION} ../telegraf/rootfs
37+
38+ push-all :
39+ docker push ${DEIS_REGISTRY}${IMAGE_PREFIX} /grafana:${VERSION}
40+ docker push ${DEIS_REGISTRY}${IMAGE_PREFIX} /influxdb:${VERSION}
41+ docker push ${DEIS_REGISTRY}${IMAGE_PREFIX} /telegraf:${VERSION}
0 commit comments