Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
ref(makefile): Update makefile to work with new chart structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Chauncey committed Apr 13, 2017
1 parent 9caba5d commit 6b7d85a
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,19 @@ include versioning.mk

build: docker-build
push: docker-push
install: kube-install
uninstall: kube-delete
upgrade: kube-update

docker-build:
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
docker tag ${IMAGE} ${MUTABLE_IMAGE}

kube-delete:
-kubectl delete -f manifests/deis-logger-fluentd-daemon.tmp.yaml

kube-install: update-manifests
kubectl create -f manifests/deis-logger-fluentd-daemon.tmp.yaml
test: docker-build
docker run ${IMAGE} /bin/bash -c "cd /opt/fluentd/deis-output && rake test"

kube-update: update-manifests
kubectl delete -f manifests/deis-logger-fluentd-daemon.tmp.yaml
kubectl create -f manifests/deis-logger-fluentd-daemon.tmp.yaml
install:
helm upgrade fluentd charts/fluentd --install --namespace deis --set org=${IMAGE_PREFIX},docker_tag=${VERSION}

update-manifests:
sed 's#\(image:\) .*#\1 $(IMAGE)#' manifests/deis-logger-fluentd-daemon.yaml > manifests/deis-logger-fluentd-daemon.tmp.yaml
upgrade:
helm upgrade fluentd charts/fluentd --namespace deis --set org=${IMAGE_PREFIX},docker_tag=${VERSION}

test: docker-build
docker run ${IMAGE} /bin/bash -c "cd /opt/fluentd/deis-output && rake test"
uninstall:
helm delete fluentd --purge

0 comments on commit 6b7d85a

Please sign in to comment.