MAKEFLAGS += --silent .PHONY: * REGISTRY=registry.fedy95.com YAMLLINT_TAG=baseimage-yamllint:latest JSONLINT_TAG=baseimage-jsonlint:latest lint: lint-yaml lint-json LINT-YAML-CMD=docker run --rm -it -v $(PWD):/data ${REGISTRY}/${YAMLLINT_TAG} lint-yaml: docker pull ${REGISTRY}/${YAMLLINT_TAG} $(LINT-YAML-CMD) alertmanager/config.yml $(LINT-YAML-CMD) grafana/provisioning/dashboards/dashboard.yml $(LINT-YAML-CMD) grafana/provisioning/datasources/datasource.yml $(LINT-YAML-CMD) prometheus/prometheus.yml $(LINT-YAML-CMD) promtail/etc/promtail/config.yml $(LINT-YAML-CMD) docker-compose.yml LINT-JSON-CMD=docker run --rm -it -v $(PWD):/data ${REGISTRY}/${JSONLINT_TAG} lint-json: docker pull ${REGISTRY}/${JSONLINT_TAG} $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/esxi/cluster.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/esxi/esx.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/esxi/esxi.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/esxi/virtualmachine.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/esxi/vmware-stats_rev1.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/other/docker_containers.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/other/i-o-statistics.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/other/monitor_services.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/other/nexus_host.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/other/nginx_container.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/other/node-exporter.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/other/smart-1.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/other/smart-2.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/other/smart-3.json $(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/other/smart-4.json restart: docker-compose -f docker-compose.yml pull docker-compose -f docker-compose.yml down docker-compose -f docker-compose.yml up -d cleanup: docker system prune --all --force docker system prune --volumes --force .DEFAULT_GOAL := lint