22#  WARNING: do not commit to a repository!
33-include  Makefile.local
44
5- .PHONY : all test integration-tests cover clean images protos exes dist doc clean-doc check-doc push-multiarch-build-image license check-license format check-mixin check-mixin-jb check-mixin-mixtool checkin-mixin-playbook build-mixin format-mixin 
5+ .PHONY : all test integration-tests cover clean images protos exes dist doc clean-doc check-doc push-multiarch-build-image license check-license format
66.DEFAULT_GOAL  := all
77
88#  Version number
@@ -25,12 +25,6 @@ GIT_REVISION := $(shell git rev-parse --short HEAD)
2525GIT_BRANCH  := $(shell  git rev-parse --abbrev-ref HEAD) 
2626UPTODATE  := .uptodate
2727
28- #  path to jsonnetfmt
29- JSONNET_FMT  := jsonnetfmt
30- 
31- #  path to the mimir/mixin
32- MIXIN_PATH  := operations/mimir-mixin
33- 
3428.PHONY : image-tag
3529image-tag :
3630	@echo $(IMAGE_TAG ) 
@@ -126,7 +120,7 @@ mimir-build-image/$(UPTODATE): mimir-build-image/*
126120#  All the boiler plate for building golang follows:
127121SUDO  := $(shell  docker info >/dev/null 2>&1 || echo "sudo -E") 
128122BUILD_IN_CONTAINER  := true
129- LATEST_BUILD_IMAGE_TAG  ?= 20211018_import-cortex-mixin-e7b4eab3c 
123+ LATEST_BUILD_IMAGE_TAG  ?= add-prettier-08d2e2a61 
130124
131125#  TTY is parameterized to allow Google Cloud Builder to run builds,
132126#  as it currently disallows TTY devices. This value needs to be overridden
@@ -320,33 +314,6 @@ clean-white-noise:
320314check-white-noise : clean-white-noise
321315	@git diff --exit-code --quiet -- ' *.md' ||  (echo " Please remove trailing whitespaces running 'make clean-white-noise'" &&  false)
322316
323- check-mixin : format-mixin check-mixin-jb check-mixin-mixtool check-mixin-playbook
324- 	@git diff --exit-code --quiet -- $(MIXIN_PATH )  ||  (echo " Please format mixin by running 'make format-mixin'" &&  false)
325- 
326- 	@cd $(MIXIN_PATH) && \
327- 	jb install && \
328- 	mixtool lint mixin.libsonnet
329- 
330- check-mixin-jb :
331- 	@cd $(MIXIN_PATH )  &&  \ 
332- 	jb install
333- 
334- check-mixin-mixtool : check-mixin-jb
335- 	@cd $(MIXIN_PATH )  &&  \ 
336- 	mixtool lint mixin.libsonnet
337- 
338- check-mixin-playbook : build-mixin
339- 	@$(MIXIN_PATH ) /scripts/lint-playbooks.sh
340- 
341- build-mixin : check-mixin-jb
342- 	@rm -rf $(MIXIN_PATH ) /out &&  mkdir $(MIXIN_PATH ) /out
343- 	@cd $(MIXIN_PATH )  &&  \ 
344- 	mixtool generate all --output-alerts out/alerts.yaml --output-rules out/rules.yaml --directory out/dashboards mixin.libsonnet &&  \ 
345- 	zip -q -r mimir-mixin.zip out
346- 
347- format-mixin :
348- 	@find $(MIXIN_PATH )  -type f -name ' *.libsonnet' ' *.jsonnet' |  xargs jsonnetfmt -i
349- 
350317web-serve :
351318	cd  website &&  hugo --config config.toml --minify -v server
352319
0 commit comments