...

Text file src/github.com/prometheus/alertmanager/template/Makefile

Documentation: github.com/prometheus/alertmanager/template

     1DOCKER_IMG := altermanager-template
     2DOCKER_RUN_CURRENT_USER := docker run --user=$(shell id -u $(USER)):$(shell id -g $(USER))
     3DOCKER_CMD := $(DOCKER_RUN_CURRENT_USER) --rm -t -v $(PWD):/app -w /app $(DOCKER_IMG)
     4
     5ifeq ($(NO_DOCKER), true)
     6	DOCKER_CMD=
     7endif
     8
     9template-image:
    10	@(if [ "$(NO_DOCKER)" != "true" ] ; then \
    11		echo ">> build template docker image"; \
    12		docker build -t $(DOCKER_IMG) . > /dev/null; \
    13	fi; )
    14
    15email.tmpl: template-image email.html
    16	@echo ">> inline css for html email template"
    17	$(DOCKER_CMD) ./inline-css.js

View as plain text