Skip to content

Commit

Permalink
feat(Makefile): set docker build flags via environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Jan 20, 2017
1 parent 167e26f commit c58fde6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion grafana/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ uninstall: kube-delete
upgrade: kube-update

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

clean: check-docker
Expand Down
4 changes: 2 additions & 2 deletions influxdb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ uninstall: kube-delete
upgrade: kube-update

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

clean: check-docker
Expand All @@ -36,4 +36,4 @@ kube-delete: update-manifests

kube-update: update-manifests
kubectl delete -f manifests/deis-monitor-influxdb-rc.tmp.yaml
kubectl create -f manifests/deis-monitor-influxdb-rc.tmp.yaml
kubectl create -f manifests/deis-monitor-influxdb-rc.tmp.yaml
2 changes: 1 addition & 1 deletion telegraf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ uninstall: kube-delete
upgrade: kube-update

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

clean: check-docker
Expand Down
2 changes: 1 addition & 1 deletion telegraf/versioning.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ docker-immutable-push:

.PHONY: docker-mutable-push
docker-mutable-push:
docker push ${MUTABLE_IMAGE}
docker push ${MUTABLE_IMAGE}

0 comments on commit c58fde6

Please sign in to comment.