You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.5 KiB
38 lines
1.5 KiB
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/docker_containers.json
|
|
$(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/i-o-statistics.json
|
|
$(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/monitor_services.json
|
|
$(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/nexus_host.json
|
|
$(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/nginx_container.json
|
|
$(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/node-exporter.json
|
|
$(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/smart-1.json
|
|
$(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/smart-2.json
|
|
$(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/smart-3.json
|
|
$(LINT-JSON-CMD) -qc grafana/provisioning/dashboards/smart-4.json
|
|
|
|
restart:
|
|
docker-compose -f docker-compose.yml down
|
|
docker-compose -f docker-compose.yml up -d
|
|
|
|
.DEFAULT_GOAL := lint
|