Like Prometheus, but for logs.
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.
loki/docs/Makefile

30 lines
919 B

IMAGE = grafana/docs-base:latest
BUILD_IN_CONTAINER ?= true
.PHONY: pull
pull:
docker pull ${IMAGE}
.PHONY: docs
docs: pull
docker run --rm -it -v ${PWD}/sources:/hugo/content/docs/loki/latest -p 3002:3002 $(IMAGE)
.PHONY: docs-next
docs-next: pull
docker run --rm -it -v ${PWD}/sources:/hugo/content/docs/loki/next -p 3002:3002 $(IMAGE)
.PHONY: docs-test
docs-test: pull
docker run --rm -it -v ${PWD}/sources:/hugo/content/docs/loki/latest -p 3002:3002 $(IMAGE) /bin/bash -c 'make prod'
sources/installation/helm/reference.md: ../production/helm/loki/reference.md.gotmpl
ifeq ($(BUILD_IN_CONTAINER),true)
docker run --rm --volume "$(realpath ..):/helm-docs:z" -u "$$(id -u)" "docker.io/jnorwood/helm-docs:v1.11.0" \
-c /helm-docs/production/helm/ \
-t reference.md.gotmpl \
-o reference.md
else
helm-docs -c ../production/helm/ -t reference.md.gotmpl -o reference.md
endif
mv "$(basename $<)" "$@"